|Compatibility:||IdSurvey 5||IdSurvey 6|
IdSurvey processes pages sequentially: by answering questions on first page and clicking on the “Next” button, you will be directed to second page and so on. With skip conditions you can change and customize this flow according to a specific answer.
When selecting an answer linked to a skip condition and clicking “Next”, IdSurvey will ignore the standard flow and display immediately the question specified in the condition. You can skip to a single question or a sequence of questions. Questions sequence can also be randomized.
Skip conditions can only be enabled in answer options. When you select the answer with skip condition set, IdSurvey will then display the question, page or element specified.
Skip condition may land in:
- group of questions
Skip conditions can be divided into 4 types:
IdSurvey displays question specified. Then the normal questionnaire flow will be followed and next page proposed.
Please note: possible answers to questions skipped will be deleted. If the skip condition lands in a previous question data won’t be deleted.
Skip with sequence
IdSurvey displays questions in the exact order specified in the sequence. Then the normal questionnaire flow will be followed and next page proposed.
GoTo Rnd ‘P18,P19,P20’,P21
IdSurvey randomly displays pages specified between inverted commas.
The last code is the code of the page where the standard flow will be restored.
Skip with condition
if(Q1==3) GoTo P32
When the answer with this skip condition is selected, IdSurvey will check if at question Q1 option 3 was selected. If this condition is true then you will skip to page P32.
You can similarly insert also more complex condition. If you need help with condition syntax please check related article.
Other important informations
- You can use skip conditions to land on previous or following objects. A
GoTodirected to a previous question is useful to force the respondent to correct a contradictory answer. You can learn more on this in the article “How to set a control page”.
- IdSurvey processes one sequence at a time. If, during the flux of a skip condition, IdSurvey finds another skip condition, the first will be ignored and from that point onward, the flux of the second condition will be followed instead.
- When you’re using a lot of skip and display conditions in a questionnaire you have to be careful not to cause loop or clashes. We suggest to always test the questionnaire carefully before starting the survey.