Hiding Required Information Based on Form Input Information
Okay, I am trying to create a form and using jQuery, I have hidden a list of required form fields (ie. <cfinput...required="yes") if the user chooses a cetain radio button/checkbox. The problem is that when that portion of the form is hidden, it, of course does not "hide" the need for the required fields.
I have tried using:
<input name"form_field".... />
<cfif #form.form_field# NEQ "" AND #form.form_field NEQ " ">
<cfinput....required="yes" />
</cfif>
but that does not work, so I thought maybe using a 'isDefined' arguement but it does not recognize that I had enterd anything into the form.form_field input.
Any thoughts? I am sure someone has tried something similar. I cannot be the only idiot out there ![]()
