Remove radiobutton choice
Function: Remove Radiobutton Choice
This action allows you to dynamically remove a specific option from a Radio Button field on your application's forms. This is useful when certain choices become irrelevant or unavailable based on user input or other conditions, ensuring your forms remain clean and relevant.
Input,
- UI element: The specific Radio Button field on your form from which you want to remove an option. This must be a Radio Button type UI element.
- Code of choice to remove: The unique identifier (code) of the specific option you wish to remove from the selected Radio Button field.
Output,
This action does not produce a direct output. Its effect is a modification of the specified Radio Button field on your form.
Execution Flow,
Real-Life Examples,
Here are some examples of how you can use the "Remove Radiobutton Choice" action:
-
Removing an unavailable shipping option:
- Inputs:
- UI element:
ShippingMethodRadioButton(a radio button field for selecting shipping methods) - Code of choice to remove:
express_delivery
- UI element:
- Result: If a customer's address is in a remote area where express delivery isn't available, this action removes the "Express Delivery" option from the
ShippingMethodRadioButtonfield, preventing them from selecting it.
- Inputs:
-
Hiding a product variant that is out of stock:
- Inputs:
- UI element:
ProductColorOptions(a radio button field for selecting product colors) - Code of choice to remove:
blue
- UI element:
- Result: When the "Blue" color variant of a product goes out of stock, this action removes the "Blue" option from the
ProductColorOptionsradio button, so users can only choose available colors.
- Inputs:
-
Adjusting survey options based on previous answers:
- Inputs:
- UI element:
PreferredContactMethod(a radio button field asking how a user prefers to be contacted) - Code of choice to remove:
phone_call
- UI element:
- Result: If a user previously indicated they do not have a phone number, this action removes the "Phone Call" option from the
PreferredContactMethodradio button, ensuring they are only presented with relevant contact choices like "Email" or "SMS".
- Inputs: