To all Questionnaire users.
The skip logic feature has been asked as a desirable feature for the Questionnaire plugin, e.g. here.
I have spent a couple of days of my Xmas holidays to implement a proposal which is available for testing and comment, on my Moodle test site. Login as teacher1, password Teacher1!, go to the Questionnaire Module Demo course where you can take the questionnaire entitled Testing the Skip Logic setting. For a more complete understanding of how the feature works, you can create your own questionnaire from scratch (or make a copy of the Testing the Skip Logic setting questionnaire instance) and add your own questions.
Please read carefully the online help provided for the Yes/No, Dropdown Box and Radio buttons question types, under the Skip Logic help button.
Please report here any remarks, questions, which may help improve this feature, before I commit it, after approval of my co-maintainer, Mike Churchward.
Joseph
An extract from the online Help file follows
Respondents can be routed through a questionnaire using 2 types of branching logic:
1. Skipping specific questions
A skip pattern will jump a respondent over a group of questions that isn't relevant to them. Use a Yes/No question for this.
Example 1
- Page 1
- Question 1 Do you own a car? Yes/No.
- Answer Yes -> go to page 2
- Answer No -> go to page 3 (i.e. skip over irrelevant question(s) in page 2
- Question 1 Do you own a car? Yes/No.
- Page 2
- Question 2: What is the color of your car?
- Question 3: What is the make of your car?
- Question 4: How long have you owned your car?
- Page 3
- Question 5: Where do you work?
- etc.
Procedure to be followed to obtain the above "skip logic" flow
- Create Q1 as a Yes/No question, and set Skip Logic to "Yes" and set Response Required to Yes, of course!
- Insert a Page Break ---
- Create Q2 as a radio button or text or dropdown question type
- Create Q3
- Create Q4 (you can create as many questions as you like on that page)
- Insert a Page Break---
- Now continue creating questions normally, until you want to use Skip Logic again.
2. Conditional branching:
A branch pattern will route a respondent to the appropriate section of the questionnaire: each respondent follows one of the branches. Use a Radio Button or Dropdown Box question for this.
Example 2
- Page 1
- Question 1: Where do you teach? Primary school / Secondary education sector / University.
- Answer: Primary school -> go to page 2
- Answer: Secondary education sector -> go to page 3
- Answer: University -> go to page 4
- Question 1: Where do you teach? Primary school / Secondary education sector / University.
- Page 2
- Question 2: How long have you been a Primary school teacher?
- Question 3: What age groups to you teach? [go to page 5]
- Page 3
- Question 4: How long have you been a Secondary school teacher?
- Question 5: What it your main subject [go to page 5]
- Page 4
- Question 6: How long have you been a University professor?
- Question 7: What is your domain of research? [go to page 5]
- Page 5
- Question 8: Tell us what you think of Moodle in your everyday teaching routine...
- etc.