Hi,
This is probably a very simple question, but for the life of me I can't get it working. I'm trying just validate that the first text field (Enter Name) has been filled in and is not empty. I've used the following in the SSV box. If I submit the form with the field empty, I get the "Please enter your name". However if I fill it in and submit I still get the message. What am I doing wrong? Thanks
This is probably a very simple question, but for the life of me I can't get it working. I'm trying just validate that the first text field (Enter Name) has been filled in and is not empty. I've used the following in the SSV box. If I submit the form with the field empty, I get the "Please enter your name". However if I fill it in and submit I still get the message. What am I doing wrong? Thanks
<?php
if(empty($formVars["text_1"]))
return 'Please enter your name.';
?>