Custom field validation does not work as expected with 1.3.2.1
-
Hello there,
custom field validation with add_filter(‘caldera_forms_validate_field_text’, …); does not work any more. Still working with version 1.3.1.2
add_filter('caldera_forms_validate_field_text', 'isis_forms_validate_field_text', 10, 3); function isis_forms_validate_field_text($entry, $field, $form) { if ($field['slug'] == 'identifier') { $organisation = isis_get_organisation(preg_replace('/ +/', '', $entry)); if (!is_object($organisation)) { return new WP_Error('error', 'Schulkennzahl ungültig!', 'caldera-forms'); } } return $entry; }
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Custom field validation does not work as expected with 1.3.2.1’ is closed to new replies.