Custom Validation Filter
-
I want to add a “re-type phone number” field, similar to the “re-type email” field. I don’t think the plugin can verify one field against another, but there is a validation hook that I think I can use to add my own validation. I don’t see how to access the input values though.
In the includes/class-fscf-process.php file is this:
// filter hook for form input validation self::$form_errors = apply_filters('si_contact_form_validate', self::$form_errors, self::$form_id_num);
If the hook sent self::$email_fields or self::$form_data as a variable, I think I could figure it out, but it only sends self::$form_errors and self::$form_id_num. Any help would be much appreciated!
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Custom Validation Filter’ is closed to new replies.