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 you need to adjust the available choices based on user selections, data availability, or other conditions, ensuring users only see relevant options.
Input
- UI element: (Type: UI element, specifically a Radio Button field) The Radio Button field on your form from which you want to remove an option.
- Code of choice: (Type: Text) The unique identifier (code) of the option you wish to remove from the Radio Button field. This code is typically set when the radio button options are initially configured.
Execution Flow
Real-Life Examples
Example 1: Removing an unavailable shipping option
Imagine you have a shipping method selection where "Express Shipping" is only available for certain product types. If a user selects a product that doesn't qualify for express shipping, you can remove that option.
- Inputs:
- UI element:
ShippingMethodOptions(This refers to your Radio Button field for shipping methods) - Code of choice:
ExpressShipping
- UI element:
- Result: The 'Express Shipping' option is removed from the 'Shipping Method' radio buttons, preventing users from selecting it for the current product.
Example 2: Removing a product size that is out of stock
Consider an e-commerce product page where product sizes are displayed as radio buttons. If a particular size goes out of stock, you can dynamically remove it from the choices.
- Inputs:
- UI element:
ProductSizeSelection(This refers to your Radio Button field for product sizes) - Code of choice:
SizeXL
- UI element:
- Result: The 'XL' size option is removed from the 'Product Size' radio buttons, so customers cannot select an out-of-stock size.
Example 3: Removing a payment method not available for a specific region
If your application allows users to select their region, and certain payment methods are not supported in all regions, you can remove the irrelevant payment options.
- Inputs:
- UI element:
PaymentMethodOptions(This refers to your Radio Button field for payment methods) - Code of choice:
PayPal
- UI element:
- Result: The 'PayPal' option is removed from the 'Payment Method' radio buttons when a user selects a region where PayPal is not supported.