Hi,
I am trying to add server side validation but couldn't get it to work. In Form Wizard or Easy Form Wizard where to add the server side validation code?
In Easy Form Wizard I have added the following codes under "code" tab in "Custom Code - Before Email(s)" but nothing happening.
The form still executing without any error. But If I echo the error message within the condition, it's printing the message.
I am confused where to add the validation code and which are the options need to enable to make it work.
Any help will be appreciated.
Thanks
I am trying to add server side validation but couldn't get it to work. In Form Wizard or Easy Form Wizard where to add the server side validation code?
In Easy Form Wizard I have added the following codes under "code" tab in "Custom Code - Before Email(s)" but nothing happening.
<?php
if ( isset($form->data['input_text_9']) AND $form->data['input_text_9'] != '' ) {
$form->validation_errors[] = 'Do not fill this field';
return false;
}
?>
The form still executing without any error. But If I echo the error message within the condition, it's printing the message.
I am confused where to add the validation code and which are the options need to enable to make it work.
Any help will be appreciated.
Thanks