• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Hour 15. Create a Form and Use It to Col... > Add Radio Buttons and Check Boxes

Add Radio Buttons and Check Boxes

Radio buttons are another type of form element that you can use to collect user input. Radio buttons can be grouped so that the user can only select one button of the group; when the user selects a different member of the group the previously selected button is de-selected. To group radio buttons they all must have the same name. To create a group of radio buttons:

  1. Place the insertion point within a form where the radio buttons will be located.

  2. Select the Radio Button object from the Object palette or select the Radio Button command from the Form Object sub-menu of the Insert menu.

  3. Enter the name of the radio button group into the name box in the far left of the Property inspector as shown in Figure 15.12. Remember that all of the radio buttons in the group need to have the same name.

  4. Enter a checked value for the radio button in the Checked Value box as shown in Figure 15.12. This is the value that gets set to your script or server application that processes the form.

    Figure 15.12. The name of the radio button is the same for all members of a radio button group. The user can select only one member of the group at a time.

  5. Choose whether the button will be checked or unchecked when the user first loads the form by selecting either checked or unchecked beside the Initial State setting.

  6. Place a label beside the button so that it is easy for the user to tell which answer they are choosing.

  7. Repeat steps one through six for all of the members of the radio button group.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint