Ask AI
Skip to main content

Remove dropdown choice

Function: Remove dropdown choice

This action allows you to dynamically remove a specific option from a dropdown list on your forms. This is useful when certain choices become unavailable, irrelevant, or need to be hidden based on other conditions in your application.

Input

  • UI element: The specific dropdown field on your form from which you want to remove an option. This must be a dropdown type UI element.
  • Code of choice: The unique identifier (code) of the option you wish to remove from the dropdown list.

Output

This action does not produce any direct output. Its effect is to modify the specified dropdown field by removing the chosen option.

Execution Flow

Real-Life Examples

Here are some examples of how you might use the "Remove dropdown choice" action in your application:

  1. Removing an "Out of Stock" product option:

    • Scenario: You have a product order form with a dropdown for product options. If a specific product variant goes out of stock, you want to remove it from the list.
    • Inputs:
      • UI element: Product_Options_Dropdown (the dropdown field on your form)
      • Code of choice: SKU_XYZ_OutOfStock (the unique code for the out-of-stock product variant)
    • Result: The "SKU_XYZ_OutOfStock" option is no longer visible or selectable in the Product_Options_Dropdown on the form.
  2. Hiding a "Manager Approval" option for regular users:

    • Scenario: In a workflow approval form, the "Manager Approval" option should only be available to users with a "Manager" role. For regular users, this option should be removed.
    • Inputs:
      • UI element: Approval_Type_Dropdown (the dropdown field for approval types)
      • Code of choice: MANAGER_APPROVAL (the code for the manager approval option)
    • Result: If the current user is not a manager, the MANAGER_APPROVAL option is removed from the Approval_Type_Dropdown, preventing them from selecting it.
  3. Cleaning up old project statuses:

    • Scenario: Your project management application has a dropdown for project statuses. An old status like "On Hold (Legacy)" is no longer used and needs to be removed from active projects.
    • Inputs:
      • UI element: Project_Status_Dropdown (the dropdown field displaying project statuses)
      • Code of choice: ON_HOLD_LEGACY (the code for the outdated status)
    • Result: The ON_HOLD_LEGACY option is removed from the Project_Status_Dropdown for all relevant projects, ensuring users only see current status options.