If you are looking for client side validation, CFFORM/CFINPUT is your friend. You don't need to know any javascript to use it, CF writes the Javascript for you. Check the live- or quick-docs for specific usage.
If you are looking to make things a bit more fancy, you could throw an onChange event on your select list that would have the second fields disabled unless "other" was selected. It would be something like <select name="selectAdmin" onChange="if (this[this.selectedIndex].value != 'xox') {document.formname.adminName.disabled = true; document.formname.adminEMAIL.disabled = true;} else "{document.formname.adminName.disabled = false; document.formname.adminEMAIL.disabled = false;}> That would give your users the info visually that they didn't need to fill out the second fields if they are not "other". You would still need to use CFFORM to do validation on the second two fields in the case of "other". -- Josh ----- Original Message ----- From: "Les Mizzell" <[EMAIL PROTECTED]> To: "CF-Talk" <cf-talk@houseoffusion.com> Sent: Tuesday, October 10, 2006 9:27 AM Subject: Tricky Form validation Question (for me at least) > This is probably going to take more javascript than I know how to do, > since I suck at javascript... > > First page of a multi-part form has a drop-down of admin namex to pick > from. > > > <select name="selectAdmin"> > <option value="xox">Other - Enter Information Below!</option> > <cfloop query="AIData"> > <option value="#MyData.AdminEmail#">#MyData.AdminNam1#</option> > </cfloop> > </select> > > If you ain't in the list, then you should fill in "adminNAME" and > "adminEMAIL" text fields below that. > > > I've not quit figured out how to validate this on one page. If "Other" > is picked in the select, then I need validation for "adminNAME" and > "adminEMAIL" to happen before the form can be submitted. If "Other" > ain't picked, then ignore them... > > I can check for this on the NEXT page of the form and force them to fill > in the blanks there, but I want it to take place all on the first page. > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:256140 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4