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">
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <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.&nbsp;&nbsp;Great Degree</input><br />
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <input type="checkbox" name="Question1" value="Moderate 
Degree">B.&nbsp;&nbsp;Moderate Degree</input><br />
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <input type="checkbox" name="Question1" value="Small 
Degree">C.&nbsp;&nbsp;Small Degree</input><br />
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <input type="checkbox" name="Question1" value="Not At 
All">D.&nbsp;&nbsp;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

Reply via email to