Viewing 1 replies (of 1 total)
  • Hi, I asked Gravity Forms support about this, they have a workaround.
    Maybe the plugin developer can include this code in the next version?

    `add_action(“gform_user_registration_validation”, “validate_multisite_submission”, 10, 3);
    function validate_multisite_submission($form, $config, $pagenum){

    // make sure we only run this code on the specified form ID
    if($form[‘id’] != 1)
    return $form;

    // get the ID of the email field from the User Registration config
    $email_id = $config[‘meta’][’email’];

    // loop through the current form fields
    foreach($form[‘fields’] as &$field) {

    // confirm that we are on the current field ID and that it has failed validation because the email already exists
    if($field->id == $email_id && $field->validation_message == ‘This email address is already registered’)
    $field->failed_validation = false;

    }

    return $form;
    }

Viewing 1 replies (of 1 total)
  • The topic ‘Gravity Forms User Registration Validation’ is closed to new replies.