Ask AI
Skip to main content

Get value of Check box field

Function: Get value of Check box field

This action helps you retrieve the selections made in a specific Checkbox Field on your application's user interface. It gathers all the options that a user has checked and stores them as a list of text values, ready for you to use in subsequent steps of your workflow.

Input

  • UI element
    • Description: This is the specific Checkbox Field on your application's screen from which you want to get the selected options.
    • Type: UI element (specifically a Checkbox Field)
    • Required: Yes

Output

  • Answer
    • Description: This is the name of the variable where the list of selected options (as text) from the Checkbox Field will be stored. You can then use this variable in other actions.
    • Type: List of Text Values
    • Default Value: CHECKBOX_FIELD_ANSWER

Execution Flow

Real-Life Examples

Here are some examples of how you can use the "Get value of Check box field" action:

Example 1: Collecting User Preferences for Email Subscriptions

Imagine you have a form where users can select their preferred newsletter topics using a Checkbox Field.

  • Inputs:
    • UI element: Newsletter_Topics_Checkbox (This refers to the Checkbox Field on your form where users select topics like "Product Updates", "Promotions", "Tutorials").
  • Result: The action will create a variable (e.g., CHECKBOX_FIELD_ANSWER or a custom name like SelectedTopics) containing a list of the user's chosen topics, such as ["Product Updates", "Tutorials"]. You can then use this list to update their subscription preferences in your database.

Example 2: Processing Order Options in an E-commerce Application

Consider an order form where customers can select additional services for their purchase, like "Gift Wrapping" or "Express Delivery," using a Checkbox Field.

  • Inputs:
    • UI element: Order_Addons_Checkbox (This is the Checkbox Field for extra services).
  • Result: A variable (e.g., OrderAddons) will hold a list of the selected services, for instance, ["Gift Wrapping", "Express Delivery"]. This list can then be used to calculate the final order total or trigger specific fulfillment processes.

Example 3: Filtering Data Based on Multiple Criteria

Suppose you have a dashboard where users can filter a list of products by selecting multiple categories (e.g., "Electronics", "Home Goods", "Apparel") from a Checkbox Field.

  • Inputs:
    • UI element: Product_Categories_Filter (The Checkbox Field allowing multiple category selections).
  • Result: A variable (e.g., SelectedCategories) will contain a list like ["Electronics", "Apparel"]. This list can then be passed to another action that filters your product data, displaying only items belonging to the selected categories.