Hello I am trying to verify a field with server side validation using Event Switcher. I am using the following code
<?php
if ( $form->data["serialnumber"] == 'xxxxxx???' ) {
return success;
}else{
return "fail";
?>
The field name is serialnumber. and I just want to verify the first 6 characters. I am testing it out with just displaying a message, but nothing happens. In the Setup of the form everything is not green. The "On fail" part of the Event Switcher is red.