Skip to main content
How to add basic conditional logic

Define how your form behaves by adding conditional logic.

Updated over a week ago

Basic conditional logic is a powerful tool in Formaloo that allows you to dynamically change how your form or survey behaves based on the responses of your participants.

With just a few steps, you can improve the user experience by making forms shorter, more relevant, and easier to complete.

Basic logic

Basic conditional logic lets you control what happens next in your form based on the answers given to previous questions.

For example:

  • If the answer is X -> show Question 1

  • If the answer is Y -> show Question 2

This simple setup makes it easy for users to navigate through the form and ensures that they only see the questions relevant to them.

Let’s walk through how to implement basic logic in Formaloo.

Setting up basic logic

Implementing basic logic is incredibly simple.

set logic

Here’s a step-by-step guide:

  1. Go to your dashboard: In the Formaloo dashboard, select the form or survey you want to edit.

  2. Enter edit mode: Click on the "Edit Base" button to start editing the content of the form.

  3. Select the question: Click on the question to which you'd like to apply conditional logic. Once selected, a sidebar will open, displaying both the "Edit" and "Logic" tabs.

  4. Open the logic tab: Click on the “Logic” tab to start adding your conditions and actions.

  5. Add rules: Now you can add rules to control the behavior of the form based on user responses.

Example:

Let’s imagine you’re organizing an event and need to collect information about attendees' food preferences.

You want to know if they have any dietary restrictions or preferences for sweet or savory snacks. In this case, you would have the following questions:

  1. Do you have any dietary restrictions? (Yes/No field)

  2. What are your dietary restrictions? (Multiple choice field)

  3. Do you prefer sweet or savory snacks? (Single choice field)

Setting up logic

To make this form more efficient for your users, here’s how to set up the logic:

  • Question 1 (Dietary restrictions): You need to create a rule based on the answer to this question.

    • If the answer is Yes, jump to Question 2 (to ask about specific dietary restrictions).

    • If the answer is No, jump to Question 3 (to ask about snack preferences).

Here’s how to do this:

add rule
  1. Select Question 1.

  2. Go to the Logic tab and click on + Add Rule.

  3. Set the condition: If the answer is Yes, jump to Question 2.

  4. Set the fallback rule: If the answer is No, jump to Question 3.

jump logic

completing the logic

For Questions 2 and 3, you can set the logic to Always Submit.

This ensures that after the user answers the relevant questions, they can directly proceed to submit the form.

Without logic, your form could become unnecessarily long, asking participants questions that don’t apply to them.

For example, someone with no dietary restrictions would still have to see and skip over a question about restrictions. With logic, this step is automatically skipped, creating a smoother user experience.

By setting up basic conditional logic:

  • You enhance the user experience by making your forms shorter and more personalized.

  • You reduce friction, leading to better form completion rates and higher conversions.

  • You can easily guide users through a dynamic form that adapts to their responses.

📝 Additional insights:

While Basic logic allows you to set up simple rules for individual questions, Advanced logic in Formaloo lets you create more complex rules, allowing you to set conditions for the entire form or survey.

For example, you can reference responses across multiple fields and create multi-conditional rules using AND/OR operators.

Did this answer your question?