Search the knowledge base, browse our resources, and visit our forum for more detailed information
Last updated: 30 Sep 2025
Skip logic, also known as branching or relevance conditions, controls which questions are displayed in a form. By default, all questions are visible. Skip logic determines under which condition(s) a question should appear. Skip logic conditions are always applied to the question or group that should be conditionally visible.
Note: You can apply skip logic to entire question groups as well as individual questions. This can simplify form logic and make it easier to manage complex questionnaires.
There are two methods for adding skip logic in the Formbuilder: adding a condition via the skip logic builder, or manually entering skip logic in XLSForm code.
This first method allows you to use the skip logic builder to add your conditions. It is recommended for beginners. To add a skip logic condition, follow these steps:
Open the Settings in the right side menu of the question or group to be conditionally displayed.
Select Skip Logic, and click Add a condition.
Select the question in the form that will determine whether the current question is displayed or not.
Choose the appropriate logic operator for your condition (e.g., >, =, !=).
In the response value field, select or type in the response that is required for the condition to be met.
The question will be displayed only when the specified condition is met.
To add multiple conditions, add your first condition, then click the Add another condition button. When using multiple conditions, specify whether at least one of these conditions must be met or all of them.
Note: You can delete skip logic conditions by clicking on the trash can.
For advanced users, skip logic can be entered directly in XLSForm code. The basic structure of the conditions remains unchanged: you will need to identify the controlling question, choose a logic operator, and type in the required response value.
To manually enter skip logic in XLSForm code, follow these steps:
Open the Settings in the right side menu of the question or group to be conditionally displayed.
Select Skip Logic, and click Manually enter your skip logic in XLSForm code.
Enter the condition in XLSForm code.
In XLSForm code, questions are referred to by their question name (Data Column Name) using the format ${question_name}
. For example, if Q2 should be asked only if the answer to Q1 is “Yes”, the skip logic condition for Q2 would be ${Q1} = ‘yes’
.
For more information on XLSForm code and operators, see XLSForm documentation.
Did you find what you were looking for? Was the information clear? Was anything missing?
Share your feedback to help us improve this article!
KoboToolbox is maintained by Kobo Inc.