close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Can't change a form field to be not required

Thread began 1/29/2015 6:35 pm by anonymous | Last modified 1/30/2015 6:39 am by anonymous | 431 views | 1 replies

anonymous

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");
}
}
?>

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...