Hatton, >I've "inherited" a form that is using qForms for validation. The >form includes a series of three checkboxes, all with the same name but >different values, further down there is a textarea. The client has >asked for a validation rule that requires either one of the checkboxes >to be checked, the textarea to contain a value or both. If the user >does not check a box or enter something in the texarea, a validation >message needs to appear. > >I know I can do this in Javascript but I'm hesitant to "roll my own" >when qForms is already validating the rest of the form (some 15 other >required fields). Is there a way to do this in qForms?
This should do what you want: http://www.pengoworks.com/qforms/ext/atLeastOne.htm You can use it like: oForm.textareaName.validateAtLeastOne("checkboxName"); That should enforce that at least the textarea is filled in or one of the checkboxes is checked. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:300547 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4