Can't change a form field to be not required
Hey folks! I used the CSS Form Builder to create a new form and while building it for the first time, I set 2 fields as optional and 2 as required. The form is submitting fine but for some reason, all 4 fields are showing up as required when you fill it out. I tried modifying the WA Server Validations under Server Behaviors but it won't retain the changes.
I haven't done any manual handcoding so what's there is what the extension built. Anyone have any idea why it won't change it? Are you not able to if you use the Form Builder from the SB?
Here's the Validations code at the top of the page. It looks to be correct with the trues and falses, but live all for are required. Any thoughts anyone?
<?php
if ((isset($_POST["Default_submit"]) || isset($_POST["Default_submit_x"]))) {
$WAFV_Redirect = "".(htmlentities($_SERVER["PHP_SELF"], ENT_QUOTES)) ."?invalid=true";
$_SESSION['WAVT_signupforwaitlist_Errors'] = "";
if ($WAFV_Redirect == "") {
$WAFV_Redirect = $_SERVER["PHP_SELF"];
}
$WAFV_Errors = "";
$WAFV_Errors .= WAValidateRQ((isset($_POST["Name"])?$_POST["Name"]:"") . "",true,1);
$WAFV_Errors .= WAValidateRQ((isset($_POST["Phone"])?$_POST["Phone"]:"") . "",false,2);
$WAFV_Errors .= WAValidateRQ((isset($_POST["Email"])?$_POST["Email"]:"") . "",true,3);
$WAFV_Errors .= WAValidateRQ((isset($_POST["Title"])?$_POST["Title"]:"") . "",false,4);
if ($WAFV_Errors != "") {
PostResult($WAFV_Redirect,$WAFV_Errors,"signupforwaitlist");
}
}
?>