Ok, first of all I want to thank all those who have helped me today and you
know who you are.
I have several groups of checkboxes that are grouped together. The idea is to
select one answer for each question. Here is a following example:
<tr>
<td colspan="2"><div align="left">1) To what extent did this program meet
your needs?</div></td>
</tr>
<tr>
<td colspan="2"><div align="left">
<cfparam name="Question1" default="">
<input type="checkbox" name="Question1" value="Great Degree" required="yes"
validateat="onserver" message="Question 1 was not answered and is
required">A. Great Degree</input><br />
<input type="checkbox" name="Question1" value="Moderate
Degree">B. Moderate Degree</input><br />
<input type="checkbox" name="Question1" value="Small
Degree">C. Small Degree</input><br />
<input type="checkbox" name="Question1" value="Not At
All">D. Not At All</input></div>
</td>
</tr>
I tried using the code: <cfparam name="Question1" default="">
in there to add a default value but I don't think it worked. The questions are
in a form that is being sent to another page. How do I make sure that an
answer has been selected before proceeding?
I have tried validating it on the next page with this:
<cfif NOT IsDefined('#Question1#')>
Failure
<cfelse>
Success
</cfif>
but this didn't work either.
Can anyone point me in the right direction?
Thanks,
-Gary
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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-Newbie/message.cfm/messageid:2079
Subscription: http://www.houseoffusion.com/groups/CF-Newbie/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15