This tutorial will show you how to set up Conditional Logic in your questionnaire.
Conditional logic (also known as skip logic or display logic) means we can show or hide elements of our questionnaire on the basis of a participant's previous answers! In the video, our questionnaire has multiple questions, but we don't want to show all of this content to every participant. If a participant responds that they 'Only speak English' to 'Choose what best applies to you:' question, we then ask a relevant follow-up question. Meanwhile, if a participant responds that they 'Can speak multiple languages', we then ask them questions about their language background.
The first step is to have all your questions and stimuli set up in your questionnaire. The first question has two possible answers: 'I only speak English' or 'I can speak multiple languages'. The second question should only show if the participant answers 'I only speak English,' therefore, in the second question's additional settings, we need to turn on the Conditional toggle.
In the Conditional toggle, we have a few different settings. We don't want this question to be visible in the Default State (i.e. when the page loads for the participant), so we can set that to Hide. We want to add Conditions next, so we can set that to show the question if the response to 'Choose what best applies to you:' is equal to the value 'I only speak English'.
We can now apply the same logic to the third question and set it to be hidden at the start and to only show if the answer to the second question is 'Yes'.
If you enter Debug mode, you can see the question is now hidden at the start, and appears if you select 'I only speak English'. If you select 'I can speak multiple languages', we do not see the other questions.
In this example, all the questions are on the same page, but the same method also works if you want to use conditional logic across pages.
You can also set up conditions which a questionnaire item becomes visible or hidden depending on a value saved to the store, e.g., a score. To find out more information on how to set up scores in your questionnaire, check out our scoring tutorial!