Using Group Input Types

Use

The input types List box and Radio button combine two or more fields into a group. All fields with the same group name belong to one group and must have the same input type (list box or radio button).

On the Web form, the user can choose one option from each group (See also: Input Element.

Prerequisites

The text node must have the text type Text element or Text module.

Procedure

  1. If they are not already there, add the fields that you want to use as simple input elements on a Web form to the text element or text module (see: Including Fields in the PC Editor).

  2. Copy the fields that you want to group. Each field corresponds to one option in a list box or to one radio button.

  3. In the form interface, create a field and assign a default value to it. This value will be the group name of your group.

  4. Enter the field name from step 3 into the Group Name column for all fields of your group. The value of this field is used as the group name for the HTML element.

  5. Select the Default checkbox for one of the grouped fields. This field will then be the default option within the group when the form is displayed.

Options Within the List Box

In a group of list box fields, the value of a field corresponds to the text of an option in the list box. Therefore, you have to assign this text to the field before you display the field.

Result

In XSF output, Smart Forms marks the fields you selected as input fields. In HTML output, these fields become HTML input fields.