If you are doing your validation server-side simply check for the existence of the checkbox, if it was not checked, it will not get posted. <cfif StructKeyExists(form,'checkboxname')>
In the same way for client side validation, just alter your validation routines to see if the checkbox is checked first. If(document.formname.checkboxName.check) - Snake -----Original Message----- From: Ali Majdzadeh [mailto:[EMAIL PROTECTED] Sent: 17 September 2006 15:46 To: CF-Talk Subject: Re: show/hide parts of form (div) Hi: That's a great piece of code. That works very well for check uncheck but what should I do about validity? I mean if it is shown it must be required and if it is hidden it shouldn't be rquired? Thanks thanks thanks again Benign ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:253378 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

