Workbench User Guide : Creating and Using Basic Fields : Scalar Fields : Create a Radio Field
 
Share this page          
Create a Radio Field
A radio field appears as a group of buttons, each of which represents an option for users of the application. When the user clicks a radio button, the selected option is turned on and all other options are turned off. You can display the buttons in multiple columns, either vertically or horizontally.
For more information about modifying the available options, see Add and Delete List Field Items.
Note:  You can create Alt speed keys for radio fields. For more information, see How You Can Define an Alt Speed Key.
To create a radio field
1. Open your frame in the Frame Editor (see Open an Existing Frame).
2. Select the Radio Field icon on the field palette.
3. Click to place the radio field on the form.
Note:  When determining the placement of a radio field on a form, keep in mind that its size is determined by its contents.
4. Set the properties for the radio field, including Columns and ValueList.
Note:  For complete descriptions of each field property, see Radio Field Properties and Common Field Properties.
Radio Field Properties
All the properties for radio fields are described under Common Field Properties, with the exception of the following properties or values that are specific to the radio field type:
Columns
Specifies the number of columns in the field
Note:  The columns can be displayed horizontally or vertically, depending on the value of the Orientation property.
Default: 1
ExactWidth
Specifies the exact outer width of the field. If both MinimumWidth and ExactWidth are positive, ExactWidth takes precedence. If both MinimumWidth and ExactWidth are 0, the default width will be just big enough to hold the largest item in the field.
Default: 0
MinimumWidth
Specifies the minimum outer width of the field. If it is smaller than the smallest width of the items in the field, the largest width of the items is used.
Default: 0