Adding conditional logic within forms in Mailmodo
Modified on: Thu, 7 Apr, 2022 at 12:15 AM
Mailmodo provides the functionality to add conditional logic within steps in a form so that the user is directed to a specific set of questions/steps based on their previous responses.
Let's demonstrate this concept by creating an NPS form, wherein the user will be directed to different sets of questions based on the rating provided by them (in step 1).
To do this-
STEP 1- Go to Templates->Create New Template->Blank Template (you can also choose to modify a pre-existing template)
STEP 2- Once you have opened a blank template, click on Form, select NPS ratings from the drop-down list,
Note: Once a dynamic element such as a form is added, do not forget to edit the HTML version of the same by clicking on the 'Show HTML' button next to the form. This version will be displayed to users whose email clients do not support AMP (ex- Outlook)
STEP 3- Once the rating question has been fully configured, add the conditional questions in the succeeding steps. These steps will be selectively displayed to the user based on the ratings given by them.
As an example, let's create 2 different steps (step 2 & 3) after the rating step, with the condition that any user who provides a rating of less than 7 is directed to step 2, and any user who provides a rating of 7 or more is directed to step 3.
(Note: If the selected form type is NPS, by default 2 steps will be added to the form. The questions inside the steps can be modified/deleted by following the steps mentioned above)
STEP 4- To add a new step to the form, click on the + button. Edit/delete the questions in the steps through the process mentioned above.
STEP 5- Once the steps and the questions have been added, configure the logic of the NPS rating step:
- Form Configuration will open. Under Steps logic, click on Step 1->Add condition
Create two conditions as follows-
If How likely would you recommend this to a friend or colleague? (STEP 1) Less than 7 Then go to Step 2
If How likely would you recommend this to a friend or colleague? (STEP 1) More than or equal to 7 Then go to Step 3
STEP 6- The logic is now configured. Upon clicking 'Submit' (after providing the feedback), the user is shown the 'Success' step.
Did you find it helpful?
Sorry we couldn't be helpful. Help us improve this article with your feedback.