Adding Radio Buttons

From Documentation
Jump to: navigation, search

Adding Radio Buttons

Use radio buttons when you want site visitors to choose one option from a group. Clicking one radio button deselects all others in its group. After creating the form as described in Creating a Form:

  1. In Page view, select the Radio Button tool from the Form toolbar.
  2. Draw a rectangle on the form.
  3. Set the Forms Radio Button properties.
    • Group name. Type the name for this group of buttons that's passed to the script processing the form. This should be the same for all buttons in the group.
    • Value. Type the value passed for the button if the site visitor selects it.
    • Default. Choose:
      • Selected to set the button's initial state, which is returned as the response if the site visitor doesn't change it. Remember that only one radio button in a group can be selected at a time and this only works if all buttons in the group have the same group name.
      • Disabled. Click this check box to disable the radio button on the form. The radio button will appear on the form, but site visitors will not be able to select it.
      • Dynamic select to add Data Source content to the radio button. Click the ... button to display the Data Sources dialog.
    • Style. Select a style to apply formatting to the contents of the selected box.
    • HTML. Click to open the Object HTML dialog so you can add your own code to the object's generated code. See Accessing an Object's HTML.
  4. To add a label to the radio button, use the Forms Field Label tool on the Forms toolbar. See Adding Form Labels.