preloader

Reply To: email confirmation field - AppGlut

Home Support FormGlut Feature Request email confirmation field Reply To: email confirmation field

#2817
AppGlut
Keymaster

You can achieve it by putting the below filter code in your active theme functions.php file and adding an extra Email field naming Name Attribute email_1 as I image attached from Advance Option ,

add_filter(‘formglut/validate_input_item_input_email’, function($errorMessage, $field, $formData, $fields, $form) {
    $target_form_id = 261;
    if($form->id != $target_form_id ) {
     return $errorMessage ;
     }
  if( $formData[’email’] !=  $formData[’email_1′]  ){
   $errorMessage =  [‘Error! Email does not match’];
   }
  return $errorMessage; }, 10, 5);

Here please put $target_form_id = 261;
your form id or shortcode id.  Please check and let me know, if it works for you.

Thank you and kind regards

  • This reply was modified 2 months, 3 weeks ago by AppGlut.
  • This reply was modified 2 months, 3 weeks ago by AppGlut.
  • This reply was modified 2 months, 3 weeks ago by AppGlut.
  • This reply was modified 2 months, 3 weeks ago by AppGlut.
  • This reply was modified 2 months, 3 weeks ago by AppGlut.