Other articles in this category
Search More Content
Conditional Logic in Form Confirmations
Sometimes you may want to send a user to a different page or display different information to them based on what they submit within the form. In this article, we will show you how to use conditional logic within your form confirmation messages.
Note: Conditional logic is only available in additional confirmations; the Default Confirmation doesn’t have support for logic. This is intended as the form needs to always process one confirmation. The Default Confirmation will be the one used if the logic failed in additional confirmations.
- Within your form confirmations page, at the bottom, you should notice a heading labeled Conditional Logic.
- The first field you will see is a dropdown in which you can switch between All and Any. Setting this to All will require all rules to match before the confirmation is sent. Conversely, setting it to Any will only require one of the rules to match.
- Below this, you will see another set of fields. The first field will list the form field name, the second field is the comparison operator, and the third field is the value. For example, if you wanted to show a different confirmation for users that selected a particular radio button, you would select the field that contains the radio buttons, then is, and finally the individual radio button option that you want to base the confirmation on. In this scenario, users will receive the custom confirmation only if the particular radio button First Choice is selected.
- If you want to add additional conditions, simply press, the “+” button to the right of your first condition.
You should now know how to use conditional logic within your confirmations in Gravity Forms. From here, you can now display custom information to users based on their selections within the form.