Closed Thread
Results 1 to 2 of 2

Thread: Need help with multiple options in a required field...

  1. #1
    Join Date
    Jun 2008
    Posts
    31

    Question Need help with multiple options in a required field...

    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:
    HTML Code:
    <input type="hidden" name="required" value=star1^star2^star3^star4^star5:my message to the user />
    The value: 'star1' etc; is the html tag name for each radio button on the form.

    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:

    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 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.

    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!

  2. #2
    Join Date
    Jun 2008
    Posts
    31

    Default Re: Need help with multiple options in a required field...

    Problem solved very quickly!
    I used a drop down menu as suggested at this url:http://www.tectite.com/vbforums/showthread.php?p=3733

    It now works the way I would like and is much more functional and attractive with a drop down instead of having 6 radio buttons on my form!
    Last edited by Frypantofire; 07-Oct-2009 at 10:54 AM. Reason: Problem solved

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. Required fields containing default text
    By tvulucy in forum FormMail Subscription Support
    Replies: 9
    Last Post: 08-Oct-2004, 10:26 PM
  2. Multiple selection list
    By GrandpaRob73 in forum FormMail Subscription Support
    Replies: 2
    Last Post: 25-Jun-2004, 01:45 AM
  3. Required Fields not working?
    By zoe77 in forum FormMail Subscription Support
    Replies: 2
    Last Post: 02-Jun-2004, 05:27 PM
  4. required field error
    By Ibis in forum FormMail Subscription Support
    Replies: 18
    Last Post: 02-Mar-2004, 10:04 AM
  5. required does not work ?!
    By flynst4r in forum FormMail Subscription Support
    Replies: 9
    Last Post: 26-Jan-2004, 10:04 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts