Get value of Check box field
Function: Get value of Check box field
This action allows you to retrieve the selections made by a user in a Checkbox Field on your form and store them for use in other parts of your application. It's perfect for capturing multiple choices from a list.
Input,
- UI element (Required): The specific Checkbox Field on your form from which you want to get the selected options. This input must be a Checkbox Field type.
Output,
- Answer (List of Text values): A list of all the options that were selected by the user in the specified Checkbox Field. This list will be stored in a variable, by default named
CHECKBOX_FIELD_ANSWER, which you can then use in subsequent actions.
Execution Flow,
Real-Life Examples,
Example 1: Collecting User Preferences
Imagine you have a customer feedback form where users can select their preferred communication channels.
- Inputs:
- UI element: "Preferred Communication Channels" (This is a Checkbox Field on your form with options like 'Email', 'SMS', 'Phone Call').
- Result: If the user selects 'Email' and 'SMS', the
CHECKBOX_FIELD_ANSWERvariable will contain['Email', 'SMS']. You can then use this list to send notifications only through the chosen channels.
Example 2: Filtering Product Categories
Consider an e-commerce application where users can filter products by selecting multiple categories.
- Inputs:
- UI element: "Product Categories" (This is a Checkbox Field on your product listing page with options like 'Electronics', 'Clothing', 'Books', 'Home Goods').
- Answer variable name:
SelectedCategories
- Result: If the user selects 'Electronics' and 'Books', the
SelectedCategoriesvariable will contain['Electronics', 'Books']. This list can then be used to display only products belonging to these categories.
Example 3: Survey Response Analysis
You're conducting a survey where participants can indicate multiple areas of interest.
- Inputs:
- UI element: "Areas of Interest" (This is a Checkbox Field in your survey form with options like 'Sports', 'Music', 'Reading', 'Travel').
- Answer variable name:
UserInterests
- Result: If a participant selects 'Music' and 'Travel', the
UserInterestsvariable will contain['Music', 'Travel']. This data can then be saved to a database or used to personalize content for the user.