Question: How to create conditional email logic?
In the custom type of form, we have a feature to set conditional email logic based on user-selected value. Follow the steps for guidance –
Step 1. Log in to your Shopify store and navigate to Apps > Form Builder.
Step 2. Create or edit a custom form.
Step 3. Have a glimpse on screenshots as per the example elaborated below –
A. If we have a radio field in the form with three options say A, B, and C along with the corresponding values a,b and c.
B. Now, from Settings > Conditions > Conditional email, rules can be added.
C. Rules such as, if the user selects A then we want to send an email at “firstname.lastname@example.org“, if B then we want to send an email at “email@example.com” and if C we want to send an email at “firstname.lastname@example.org“. So, here the logic will be –
If Radio Group → Is (Equal/less/Greater) → Value a → Then send an email at→ email@example.com
If Radio Group → Is (Equal/less/Greater) → Value b → Then send an email at→ firstname.lastname@example.org
If Radio Group → Is (Equal/less/Greater) → Value c → Then send an email at→ email@example.com
NOTE – If any email logic does not exist then all the emails will be sent to email addresses added in the “To Email” field available in the form settings.