In javascript (client side):

if(!document.myform.mycheck.checked){
        //write your validation for the mandatory fields here
}

In CF (server side):

<cfif NOT IsDefined("form.mycheck")>
        <!--- write your validation for the mandatory fields here --->
</cfif>

Pascal 

-----Original Message-----
From: Tilbrook, Peter [mailto:[EMAIL PROTECTED]] 
Sent: woensdag 17 juli 2002 9:02
To: CF-Talk
Subject: FORM help


I have a form where some of the fields are mandatory.

However at the bottom is a check box to say the the form details are not
required by the application.

How can I test for the mandatory fields but ignore them if they select
that the service is not required and submit the form?

Thanks! :)


______________________________________________________________________
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to