Add a switch
A switch is a logic action that evaluates specific conditions in a flow. Based on the result of the evaluation, the switch directs the flow to different paths called cases.
Remember that you added the Send copy to me check box to your form. To evaluate the value of this check box you need to create a switch and two cases. One case sends an e-mail without a copy, the other case sends an e-mail and a copy.
Under the Get model links action, click
Add. The Add action panel opens.
In the Logic section, click Switch. A switch is created and the Switch panel opens.
Click the Name field and enter Evaluate check box.
Click the Default case field and select None.
Click
Add to add an additional case.
Click the arrows in front of Case 1 and of Case 2.
Enter Check box enabled into the Text field of Case 1 and Check box disabled into the Text field of Case 2.
Specify the condition for the Check box enabled case.
Keep TRUE in the Condition field and click
Open mapping panel. The Define mapping panel opens.
Enable Advanced expression.
trueis preset in the field.Select Send copy to me from the Dynamic content list. The expression for the Send copy to me check box is added to the field.
Click Operator.
Click the == Equals operator.
Your advanced expression is now:
${Model#1.formData.page.CHECKBOX_1}==trueClick Apply. The panel closes.
Specify the condition for the Check box disabled case.
Keep FALSE in the Condition field and click
Open mapping panel. The Define mapping panel opens.
Enable Advanced expression.
falseis preset in the field.Select Send copy to me from the Dynamic content list. The expression for the Send copy to me check box is added to the field.
Click Operator.
Click the == Equals operator.
Your advanced expression is now:
${Model#1.formData.page.CHECKBOX_1}==falseClick Apply. The panel closes.
Close the Switch panel.
Click
Save.
The flow now contains a Switch action that directs the flow to the appropriate path, depending on whether the Send copy to me check box is enabled in the trigger form.