> >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.
I tried this and it does not seem to be working. I'm not getting any errors on the JS Error console so I know it's *working*. I have all of the formfields created, here is the JS call for qForms: <script type="text/javascript"> objForm = new qForm("catrequest"); objForm.catalogtype.description = " catalog type"; objForm.fldComments.description = " general comment"; objForm.catalogtype.validateAtLeastOne("fldComments"); objForm.required("txtFirstName,txtLastName,txtCompany,txtEmail,txtAddress,txtCity,txtState,txtZip,txtCountry,txtPhone"); objForm.txtFirstName.description = " First Name"; objForm.txtLastName.description = " Last Name"; objForm.txtCompany.description = " Company Name"; objForm.txtEmail.description = " email address"; objForm.txtAddress.description = " mailing address"; objForm.txtCity.description = " City"; objForm.txtState.description = " State (or Province)"; objForm.txtZip.description = " Zip or Postal Code"; objForm.txtCountry.description = " country"; objForm.txtPhone.description = " phone number"; objForm.txtFirstName.focus(); </script> Do I need to make any changes to the Form code itself? ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:300646 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4