For example:
1. Screenshot
2. Screenshot
In this case you would like to ask Q2 for all the options selected in Q1. Also, you would like XXXXXXXXXX replaced by the appropriate restaurant name (i.e. Pizza Hut or Dominos etc).
One way to set this up would be to create a separate question Q2-a, Q2-b, Q2-c, etc. for each selection in Q1. However, since the question Q2 is the same for each selection in Q1, we don't need to set up different questions, we can simply use Q2 with looping.
Looping is available only for Multiple Choice Multiple Select (Check Box) type questions.
Enabling Looping will ALWAYS PRODUCE MULTIPLE ROWS for the same response ID - One row for each loop. If you are planning on exporting the data to other statistical packages, please make sure that the other packages are able to handle the data in this format. SPSS does NOT handle the data with multiple rows for each loop.
If you use looping, please check how responses are saved. If there are issues with multiple rows of data for the same response ID we strongly suggest you to not use looping and instead set up a different question for each selection option.
Before you can set up looping first you need to set up questions Q1 and Q2. Since we want to replace the restaurant name in Q2, we can use ${piping_text} in place of XXXXXXXXXXX. Piping text will get automatically replaced with the appropriate restaurant name for each loop.
Step I: To set up the logic click on Add / Update Logic link on Q1.
3. Screenshot
Step II: On the popup screen select the Branching / Skip Logic option.
4. Screenshot
Step III: Select Q2 as the destination (Jump to) question for each answer option in Q1 and set up piping text for each selection option. Enable Looping and click the Update Branching Information button after you are done.
5. Screenshot
Step IV: Now to complete the set up add a page break on Q2 to denote end of loop.
6. Screenshot