- Why would you use a RadioGroup with a set of radio buttons rather than just use the radio button by themselves?
- How do I create a group pf RadioButton?
- How to create a radio button in Salesforce?
Why would you use a RadioGroup with a set of radio buttons rather than just use the radio button by themselves?
To create each radio button option, create a RadioButton in your layout. However, because radio buttons are mutually exclusive, you must group them together inside a RadioGroup . By grouping them together, the system ensures that only one radio button can be selected at a time.
How do I create a group pf RadioButton?
You group radio buttons by drawing them inside a container such as a Panel control, a GroupBox control, or a form. All radio buttons that are added directly to a form become one group. To add separate groups, you must place them inside panels or group boxes.
How to create a radio button in Salesforce?
You can create a radio button with ui:inputRadio , which inherits the behavior and events from ui:input . The value and disabled attributes control the state of a radio button, and events such as click and change determine its behavior.