• Resolved zerobounce

    (@zerobounce)


    So I tried using this hook forminator_custom_form_submit_errors to make a custom validation for email but I get the following error.

    There has been a critical error on this website.
    
    Learn more about troubleshooting WordPress.
    add_filter('forminator_custom_form_submit_errors', 'forminator_email_validator', 15, 3);
    
    public function forminator_form_settings($submit_errors, $form_id, $field_data_array)
    {
        // custom validation
        return $submit_errors
    }
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Custom validation for email fields’ is closed to new replies.