Skip to main content

This content has been archived and is no longer being updated.

Links may not function; however, this content may be relevant to outdated versions of the product.

Using radio buttons to represent a property value

Suggest edit Updated on May 3, 2020

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:

  1. Open a rule and drag the radio button control from the Basic control group to a cell:

Basic

    1. By default, the radio button control uses a placeholder standard property @baseclass.pyTemplateRadioButton .

default radio buttons

  1. 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.
  2. Create the property rule which will used for the radio button control.
    1. Set the Property Mode to Single Value.
    2. Set the Type to Text.
    3. Using the SmartPrompt, set the HTML Property to PromptSearch.
    4. On the Table Edit tab, select Local List as the Type of Table. Enter the values for the radio buttons in the table.

property

    1. 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.

cell properties

    1. 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.
    2. Save the Flow Action form.
    3. 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.

final

Did you find this content helpful? YesNo

10% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Ready to crush complexity?

Experience the benefits of Pega Community when you log in.

We'd prefer it if you saw us at our best.

Pega.com is not optimized for Internet Explorer. For the optimal experience, please use:

Close Deprecation Notice
Contact us