A loop allows for the iteration of a question based on the answers of previous questions. This can also be done with the use of conditions; however, this can be considerably more complicated and time-consuming.

An example: you are interested in which type of fruit the respondent has already eaten (e.g. Q1) and how much the respondent likes this fruit (e.g. Q2). If the respondent chooses multiple options in Q1, you must inquire about each individual type of fruit in Q2. When you are creating Q1 and Q2 in the EDIT’ – ‘Questionnaire tab, use the following procedure:

  1. In the left-hand side menu click on the plus icon, by which a menu with different types of questions will appear. Under the 'Advanced settings' menu, click 'Loop' or drag and drop it into the editor. By doing this, a loop will be added to the questionnaire, which is marked with the elements 'LOOP' and 'END LOOP'.
  2. In the 'Loop for' dropdown menu, select Q1, i.e. which type of fruit the respondent has already eaten.
  3. You must also select the values that you wish to include in the loop. 1KA marks all the available answers by default, which means that the loop will include all the possible answers to the question, in case they are selected by the respondent. If this is the case, simply retain the default settings.
  4. On the right-hand side of the loop window, you can click on the ‘Edit loop’ option, which enables you to set for each possible answer to Q1 in which cases the question should also appear in a loop: when the options are selected, when the options are not selected, always, never. In this case, select the default option ‘Selected’.
  5. You can also set the maximum number of loop iterations at the bottom of the loop window; therefore it is not necessary that the loop is repeated for each answer. In this case, select the default option ‘All’.
  6. Click ‘Close’ in the right-hand side menu ‘Edit loop’.
  7. Click on Q2 and drag it to the loop (before the END LOOP mark).
  8. The loop is now operational.

You can consult the data piping manual for text in Q2, which will help you link the two questions (e.g. “How much do you like #Q1#?”). The respondent is displayed “How much do you like Kiwi?” if they chose this option.

Related content

1KA is free to use for basic users