Click Condiitonal split


Conditional Split is used to create complex logic depending on the user's choices, it can be used with almost all types of nodes under the “New Page” category.

When first adding a conditional split, it will look something like this:


By default, the node is populated with 2 Conditional sets, and a Default set, the default acts like a catch all, if nothing meets the conditional sets, it will automatically go to the default state.

You can rename any condition sets except the Default set, to do that, just click the name of one of the condition sets and rename it.





Clicking the “+Add condition set” adds another condition set.
To remove a condition set, use the

button.


To link a node to a condition set, use the

button, then drag the path to the specific node you wish to link it to. Linking a text node to each conditional set would result in the following:



Now to add our conditions(we call them RULES), hover over a path, and the following icons will appear:


We will click the gear icon (

) to open the settings menu.


Now, when we click the add rule button, the following options will become available to us:


By default, the rule will target the first ever question in your form (The name question in our case). You can target any named question that you have inside your form.


Each type of question will have specific filters available to it, you can view them by clicking the blue arrow between the input fields(Right hand side to the “Equal to” text).


We can add a condition, that any person that has “Formflow” in its name, to be directed to Path 1, like so:


Now we will add a condition for Path 2, that will target the second question “What is your favorite color?” As mentioned before, being a different type node, it has different filters.


We will use “Contains all”, this roughly translates to “If any of these options are selected, then it matches the condition”, so any values you add to this condition, if the user clicks any of them, it will direct it on Path 2.



Ok now our basic Conditional Split is set up.


IMPORTANT: The order of the condition sets matters, in our example, if a user has a name that contains “Formflow” but also chooses the value “Blue”, he will be directed to Path 1, because that is the first condition set we made(Condition Set 1).

If you wish to target even more specific scenarios, you can chain rules together using the buttons below the first rule.

  • AND - all rules must be true

  • OR - at least one of all the rules must be true

The following set of rules can be read as follows: “If the favorite color is Blue, and the name does not contain the letter m.”, if the input from the user meets both criterias, then the user will be directed on the path linked with this specific set of rules.

TO DO: explain how rules are calculated when there are a lot of them chained together

In this article