There are two ways to route a respondent, and both are set on the question in the Survey Builder.
Ask a question only sometimes
- Select the question that should be skipped for some people.
- Under Ask this question only when, change Always ask it to a condition.
- Choose the earlier question, then Which answer?, or type a Value to compare against.
For a condition the lists cannot say, choose Write it as an expression and write it as an XLSForm relevant is written, for example ${age} >= 18 and selected(${services}, 'water'). The builder checks it as you type.
A condition reads the answers given before its question. On the first question there is nothing earlier to read. One that names a question asked later reads it as not yet answered, and the Routing tab lists it.
Jump after an answer
- Select the question whose answer decides the path.
- Under After it is answered, go to, add a rule: an answer, and the question to go to next.
- Add more rules if you need them. They are read in order and the first match wins.
- To stop, choose End the interview.
With no rules, everybody continues in order.
Test it
Open the Routing tab.
- Does the routing resolve? checks that every branch lands somewhere. An instrument with a broken branch cannot be frozen until it is fixed.
- Walk a respondent through it lets you give the answers a respondent would give. It then lists the questions they are asked, in order, and the ones they skip.
Walk at least one path for each branch. A wrong skip looks like a refusal in the data and is only found after fieldwork.