Using radio buttons to represent a property value
Summary
You can use a radio button group to display and input values for a single property.
For example, an insurance application contains a property 'InFloodZone' which has three possible values Yes, No, and Unknown. Using the radio button control, you can display this property on a work object form or flow action with a radio button for each choice.
Suggested Approach
To add a radio button control to a harness, section, or flow action:
- Open a rule and drag the radio button control from the Basic control group to a cell:
- By default, the radio button control uses a placeholder standard property @baseclass.pyTemplateRadioButton .
- To change the property for the radio button control, click the cell containing the radio button controls, then click the magnifying glass icon. The Cell Properties panel appears.
- Create the property rule which will used for the radio button control.
- Set the Property Mode to
Single Value
. - Set the Type to Text.
- Using the SmartPrompt, set the HTML Property to PromptSearch.
- On the Table Edit tab, select Local List as the Type of Table. Enter the values for the radio buttons in the table.
- Set the Property Mode to
- On the Field tab of the Cell Properties panel, clear the default placeholder property name. Use the SmartPrompt to locate the property whose input values you want to present as a radio button group (created in Step 4). Change the label to left of the radio button control to match the label of the property you are using for the radio buttons.
- The radio button control changes to reflect the values given in the Table Edit tab of the property. On that tab, these three values can be listed as either a Local List or a Prompt List.
- Save the Flow Action form.
- Test. At runtime, keyboard navigation is enabled by default for radio button control groups. Once the radio button control group has focus (the first button in the group has a box around it), press the Down or Right arrow keys to advance to the next, and the Up or Left arrow keys to select the previous button. Press the tab key to advance focus to another input field.