Set value of Check box field
Function: Set value of Check box field
This action allows you to select a specific option within a Checkbox field on your application's form. When you use this action, the chosen option will be added to the list of selected options in the specified Checkbox field, and this updated selection will be available for other actions or processes in your application.
Input
- UI element (PART - Checkbox Field): This is the specific Checkbox field on your form where you want to make a selection. You'll need to choose the correct Checkbox field from your application's UI elements. This input is required.
- Answer (STRING): This is the exact text of the option you want to select within the chosen Checkbox field. This value must match one of the available choices in that Checkbox field and cannot be left empty.
Execution Flow
Real-Life Examples
Example 1: Selecting a preferred communication method
Imagine you have a customer registration form, and you want to automatically select "Email" as a preferred communication method for new users.
- Inputs:
- UI element: "Preferred Communication Methods" (a Checkbox field with options like "Email", "SMS", "Phone Call")
- Answer: "Email"
- Result: The "Email" option in the "Preferred Communication Methods" checkbox field will be selected. If other options were already selected (e.g., "SMS"), "Email" will be added to the selection, resulting in both "Email" and "SMS" being selected.
Example 2: Marking a task as completed
In a project management application, you might want to automatically mark a sub-task as "Completed" once all its dependencies are met.
- Inputs:
- UI element: "Task Status" (a Checkbox field with options like "Completed", "In Progress", "Blocked")
- Answer: "Completed"
- Result: The "Completed" option in the "Task Status" checkbox field will be selected. If the task was previously "In Progress", "Completed" will be added to the selection.
Example 3: Choosing dietary restrictions for an event attendee
For an event registration form, if a user indicates they are vegetarian, you might want to automatically select "Vegetarian" in a dietary restrictions checkbox field.
- Inputs:
- UI element: "Dietary Restrictions" (a Checkbox field with options like "Vegetarian", "Vegan", "Gluten-Free", "Dairy-Free")
- Answer: "Vegetarian"
- Result: The "Vegetarian" option in the "Dietary Restrictions" checkbox field will be selected. If the user also manually selected "Gluten-Free", both "Vegetarian" and "Gluten-Free" will now be selected.