I have a form that contains 6 radio buttons.
The 1st radio button is 'button 0' then consecutively 1,2,3,4,5.
What I am attempting to do is force the user to make a selection of either 1 or 2 or 3 or 4 or 5.
The 'button 0' is set at select in my html form so that if the user fails to select one of the options between 1-5 then a result is passed through a required field that the user needs to go back and select one of the radio buttons between 1 & 5.
I have created a hidden field as such:
The value: 'star1' etc; is the html tag name for each radio button on the form.
<input type="hidden" name="required" value=star1^star2^star3^star4^star5:my message to the user />
If the user does not select any of these radio buttons from star 1 - 6, then the error message that is passed through badhandler.php is as follows:
I have tried to think of a way to rename the tag 'star1' so that I can re-write my message to the user in a way that will make sense taking into consideration that they have 5 options and not 2 as suggested above.
The form required some values that you did not seem to provide.
"star1" or "You did not rate the product with a number between 1 and 5 Look for the Gold Stars on the form" (but not both)
I have read the information on using conditions at this url:http://www.tectite.com/fmdoc/creating_forms.php
however I am having trouble understanding how to set up my form using conditions instead of required fields to gain the same result but have more control over my message to the user.
If any one can wrap their head around this and help me then that would be great because I'm going around the loop, the bend and being driven up the wall with this one!
Thanks in advance to any one who can help!