I added this line on Validation Rules tab on a text input element:
The, added this JS code on a Custom JS block:
When submiting the form I get this error:
First question: is it mandatory to have both JS and PHP validation?
I tried to create a PHP function just to pass this validation, but the error keeps showing.
validaCPF:CPF inválido
The, added this JS code on a Custom JS block:
jQuery.fn.form.settings.rules.validaCPF = function(value) { // my code };
When submiting the form I get this error:
PHP Fatal error: Call to undefined method G2\\L\\Validate::validaCPF() in /libraries/cegcore2/admin/extensions/chronofc/functions/validate_fields/validate_fields_output.php on line 61
First question: is it mandatory to have both JS and PHP validation?
I tried to create a PHP function just to pass this validation, but the error keeps showing.