I am using EventSwitcher to validate fields (checksum and other rules).
When no erros is found by my php code the form works fine (event success). However, if an error is identified by my php code, no error message is shown (event fail).
Exemple:
if ($result->qtd >= 1) {
$form->validation_errors['usuario'] = 'My error message!';
return 'fail';
}
How can I show the erro 'My error message!' and other errors and also reload the form?
Ricardo.
When no erros is found by my php code the form works fine (event success). However, if an error is identified by my php code, no error message is shown (event fail).
Exemple:
if ($result->qtd >= 1) {
$form->validation_errors['usuario'] = 'My error message!';
return 'fail';
}
How can I show the erro 'My error message!' and other errors and also reload the form?
Ricardo.