Clear radiobutton choices
Function: Clear radiobutton choices
This action helps you remove all the selection options from a specific Radio button field on your application's screen. It's useful when you need to dynamically update the choices available to your users or reset a form field.
Input
- UI element (Radio button field)
- Description: The specific Radio button field on your page from which you want to remove all current choices.
- Type: UI element (specifically a Radio button field)
- Required: Yes
Output
This action does not produce a direct output value. Instead, it modifies the specified Radio button field by removing all its existing choices. After this action runs, the Radio button field will appear empty, ready for new choices to be added if needed.
Execution Flow
Real-Life Examples
Here are a few ways you might use the "Clear radiobutton choices" action in your application:
-
Resetting a Form Section:
- Scenario: You have a multi-step form, and when a user goes back to a previous step, you want to clear certain selections to ensure they make fresh choices.
- Inputs:
- UI element (Radio button field):
Product Options(a radio button field on your form)
- UI element (Radio button field):
- Result: All previously displayed choices like "Small", "Medium", "Large" will be removed from the
Product Optionsradio button field, making it blank.
-
Dynamically Updating Choices Based on Another Selection:
- Scenario: A user selects a "Category" from a dropdown, and you want the "Sub-Category" radio buttons to show only relevant options. Before adding new sub-category choices, you need to clear the old ones.
- Inputs:
- UI element (Radio button field):
Sub-Category Selection(a radio button field)
- UI element (Radio button field):
- Result: Any existing choices in the
Sub-Category Selectionradio button field (e.g., "Electronics", "Clothing") are cleared, preparing it to display new choices relevant to the selected category.
-
Preparing for New Data Load:
- Scenario: You have a radio button field that displays a list of available delivery slots. When a user changes their delivery date, you first want to clear the old slots before fetching and displaying the new ones.
- Inputs:
- UI element (Radio button field):
Delivery Time Slots(a radio button field)
- UI element (Radio button field):
- Result: All current delivery time slot choices (e.g., "9 AM - 12 PM", "1 PM - 4 PM") are removed from the
Delivery Time Slotsradio button field.