Rules are used to define the conditions for routes.

For example lets say that we are hosting a survey and we are collecting data and we want to show visitors different pages based on their answer after they submit a form.
For the sake of this example lets say that we want to collect name and email address and gender from our visitors, if the visitor selected female on gender then we show them to page A once they submit the form and if the visitor selected male then we show them to page B once they submit the form, so first lets build our for in 2 steps as follow:

What you will need for this?

A defined Route
Form elements( to apply the rules on those inputs data )

Now lets go ahead and setup our rules logic :

Click on the Gear icon on the top right of the page builder then click on rules.

Click on the dropdown menu and add the input params that you want to filter, in this case lets select gender.

And on last field we have to add the same exact values that we have added earlier on our dropdown element, we have added two values 1 for male and 2 for female, in this case we will add 1 to our rules.

Now we will add the desired routes to our rule and click on save.

Lastly lets add a button action as submit integration and match rule.

Now every time a visitor submit this form if he select male on step 2 he will take gotonextstep route and if she selected female she will take upsell route

You can add so many condition to a rule and make it as complex as you want.
Was this article helpful?
Thank you!