close ad
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Required Fields if Checkbox Selected

Thread began 7/01/2013 2:10 pm by Daryl | Last modified 7/15/2013 2:27 pm by Daryl | 2733 views | 23 replies

Jason ByrnesWebAssist

ok, so the required validation for the employers name is at line 22:

$WAFV_Errors .= WAValidateRQ((isset($_POST["EmployersName"])?$_POST["EmployersName"]:"") . "",true,12);

to make that required only if the Employment status is set to employed, change that to:
$WAFV_Errors .= WAValidateRQ(((isset($_POST["EmploymentStatus"]) && $_POST["EmploymentStatus"] == "Employed")?$_POST["EmployersName"]:"") . "NA",true,12);

as for the spry validation, which one is giving the syntax error?

one issue i see in your form is that you have some form element names that are not valid.

for exaample the declaration select lists use numbers and the underscore character as the first character in the name. When naming form elements, you should follow these rules:

1) only use letters and numbers, the only exception is the underscore.
2) The first character of a form element name must be a letter.

NOTE: You will need to delete the following line for spry validation, spry does not support conditional validation:
var EmployersName_Spry = new Spry.Widget.ValidationTextField("EmployersName_Spry", "none",{validateOn:["blur"]});

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





Ease of use


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...