Set values of Check box field
Function: Set values of Check box field
This action allows you to programmatically select specific options within a Checkbox field on your application's forms. It's useful for pre-filling forms, updating user selections based on other data, or controlling form behavior without manual input. Once the values are set, they are stored for any subsequent actions or processing within the current workflow.
Input
- UI element
- Description: The specific Checkbox field on your form where you want to set the selections. You must choose an existing Checkbox field from your application.
- Type: UI element (specifically a Checkbox field)
- Answers
- Description: A list of the exact values you want to select in the chosen Checkbox field. Each value in this list must correspond to an existing option within that Checkbox field.
- Type: List of values
Output
None. This action updates the state of the specified Checkbox field internally, making the selected values available for other actions in your workflow.
Execution Flow
Real-Life Examples
Example 1: Pre-filling a "Preferred Contact Methods" field
Imagine you have a customer onboarding form with a "Preferred Contact Methods" checkbox field (options: Email, Phone, SMS). Based on a customer's previous preferences stored in your database, you want to pre-select "Email" and "SMS".
- Inputs:
- UI element:
Preferred Contact Methods(the specific Checkbox field) - Answers:
["Email", "SMS"]
- UI element:
- Result: The "Email" and "SMS" options in the "Preferred Contact Methods" checkbox field will be automatically selected when the form loads or when this action is triggered.
Example 2: Updating "Product Features" based on subscription level
A user upgrades their subscription, and you want to automatically enable certain "Product Features" in a settings form. The "Product Features" checkbox field has options like "Advanced Reporting", "Priority Support", "Custom Integrations". For a "Premium" subscription, you want to select "Advanced Reporting" and "Priority Support".
- Inputs:
- UI element:
Product Features(the specific Checkbox field) - Answers:
["Advanced Reporting", "Priority Support"]
- UI element:
- Result: The "Advanced Reporting" and "Priority Support" options in the "Product Features" checkbox field will be selected, reflecting the user's new subscription benefits.
Example 3: Resetting "Interests" based on category selection
A user is filling out a profile and selects a "Primary Interest Category" from a dropdown. When they change this category, you want to clear their previous "Specific Interests" (a checkbox field) and pre-select new ones relevant to the new category. If the user selects "Technology", you want to set "AI" and "Cloud Computing" as their specific interests.
- Inputs:
- UI element:
Specific Interests(the specific Checkbox field) - Answers:
["AI", "Cloud Computing"]
- UI element:
- Result: Any previously selected options in the "Specific Interests" checkbox field will be cleared, and then "AI" and "Cloud Computing" will be selected.