How can i test for non blank field and set a varable to 2. I tried the following din custom code in on submit and get no results
<?php
If $form->data['FNAMEG'] == " "
then $form->data['NUMBER'] =2
else
$form->data['NUMBER'] = 1;
?>