Harness and Section forms - Adding a Radio Button control |
Radio button controls present users with a horizontal or vertical list of options, from which the user can select a single option.
You can specify the source of this list as one of the following:
When a radio button control is bound to a data page or report definition that accepts parameters and the parameter value uses a property reference, the radio button group automatically refreshes with new items whenever the property value changes. You can use this functionality to set up cascading radio button lists or any combination of controls — no additional configuration is required.
You can configure events and actions on the radio button control, include a No Selection option, and define styles in the skin, if desired.
Pega 7 includes a new radio button control, pxRadioButton. The pre-Pega 7 radio button control is deprecated. If a section contains a deprecated radio button or another control for which there is an improved alternative, a warning displays, along with an Update Controls button. Click Update Controls to automatically update deprecated controls in the section. Automatic update is not available for all controls; see Upgrading deprecated and outdated controls on the PDN.
If you have a use case that requires a specific configuration of a standard control, such as radio button, you can make a copy of the control and save it using a new name. For example, if you use a Yes/No radio button frequently, you can save a copy of pxRadioButton as pxYesNoRadioButton. Configure pxYesNoRadioButton to display Yes/No radio buttons, and then use pxYesNoRadioButton wherever you'd like it. Do not modify the Control Modes and UI Element settings.
The UI Gallery landing page contains a working sample. To view and interact with the sample, select > User Interface > UI Gallery. In the Components area, select Radio Button.
For more information, see Presenting radio buttons on the PDN.
Copy, delete, duplicate, or move a radio button group
To move a radio button group, hold down the SHIFT
key, select the radio button group in the layout and drag and drop it in the new location.
Radio button control - General tab |