Remove Check box choice
Function: Remove Check box choice
This action allows you to remove a specific option from a Checkbox field on your application's user interface. This is useful when you need to dynamically change the available choices for users, for example, to hide options that are no longer relevant or accessible.
Input
- UI element (PART): The specific Checkbox field on your page from which you want to remove an option. This must be a Checkbox field.
- Code of choice to remove (STRING): The unique identifier (code) of the option you wish to remove from the Checkbox field.
Output
This function does not produce any direct output. Its effect is a change in the specified UI element.
Execution Flow
Real-Life Examples
Here are some practical ways you can use the "Remove Check box choice" action in your application:
Example 1: Removing an outdated product option
Imagine you have a product order form with a checkbox field for "Add-on Services." If a particular service becomes unavailable, you can use this action to remove it dynamically.
- Inputs:
- UI element:
Add_on_Services_Checkbox(the checkbox field on your order form) - Code of choice to remove:
EXTENDED_WARRANTY_2023
- UI element:
- Result: The "Extended Warranty 2023" option is immediately removed from the
Add_on_Services_Checkboxfield, preventing customers from selecting an unavailable service.
Example 2: Dynamically adjusting survey options based on previous answers
Consider a survey where certain options in a checkbox question become irrelevant based on an earlier answer. You can remove those options to streamline the user experience.
- Inputs:
- UI element:
Preferred_Communication_Methods(a checkbox field in your survey) - Code of choice to remove:
FAX_COMMUNICATION
- UI element:
- Result: If a user indicates they don't have a fax machine in a previous question, the
FAX_COMMUNICATIONchoice is removed from thePreferred_Communication_Methodscheckbox, making the survey more relevant for them.
Example 3: Restricting feature access based on user roles
In an internal application, you might have a checkbox field for "Available Features" where some features are only for administrators. For regular users, you can remove the admin-specific options.
- Inputs:
- UI element:
User_Feature_Permissions(a checkbox field on a user profile page) - Code of choice to remove:
MANAGE_GLOBAL_SETTINGS
- UI element:
- Result: When a non-admin user views their profile, the
MANAGE_GLOBAL_SETTINGSchoice is removed from theUser_Feature_Permissionscheckbox, ensuring they cannot accidentally enable or disable admin-level features.