<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://docs.moodle.org/25/en/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Rezeau</id>
	<title>MoodleDocs - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://docs.moodle.org/25/en/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Rezeau"/>
	<link rel="alternate" type="text/html" href="https://docs.moodle.org/25/en/Special:Contributions/Rezeau"/>
	<updated>2026-05-15T16:31:12Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.5</generator>
	<entry>
		<id>https://docs.moodle.org/25/en/index.php?title=Adding/editing_a_questionnaire&amp;diff=107124</id>
		<title>Adding/editing a questionnaire</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/25/en/index.php?title=Adding/editing_a_questionnaire&amp;diff=107124"/>
		<updated>2013-10-28T09:52:32Z</updated>

		<summary type="html">&lt;p&gt;Rezeau: /* Response viewing */ Moved &amp;quot;Never&amp;quot; view ALL responses from Response options setting to Permissions&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Questionnaire}}&lt;br /&gt;
&lt;br /&gt;
==Timing==&lt;br /&gt;
&lt;br /&gt;
Set the date window for when users can complete the questionnaire. You can leave the boxes unchecked if you want the questionnaire to be continually available.&lt;br /&gt;
&lt;br /&gt;
==Response options==&lt;br /&gt;
===Type===&lt;br /&gt;
&lt;br /&gt;
Select whether users will be allowed to respond once, daily, weekly, monthly or an unlimited number of times (&#039;&#039;&#039;many&#039;&#039;&#039;).&lt;br /&gt;
&lt;br /&gt;
===Respondent Type===&lt;br /&gt;
&lt;br /&gt;
You can display your users&#039; full names with each response by setting this to &amp;quot;fullname&amp;quot;.&amp;lt;br /&amp;gt; You can hide your users&#039; identities from the responses by setting this to &amp;quot;anonymous&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Once the &amp;quot;anonymous&amp;quot; option has been set in a questionnaire, it&#039;s impossible to revert to the &amp;quot;fullname&amp;quot; option, for obvious privacy reasons. So be careful when you set your questionnaire to &amp;quot;anonymous&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;.- If your Moodle course allows guests, they will only be allowed to respond to a questionnaire whose responses have been set to &#039;&#039;anonymous&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
===Respondent Eligibility===&lt;br /&gt;
&lt;br /&gt;
Decide whether everyone can answer or whether you want to restrict it to tutor only or student only responses.  For restricted access options remember to assign the correct roles either at the course or activity level.  For example, if you put a questionnaire on the front page, intended for teachers only, then you will have to let Moodle know which users are teachers.&lt;br /&gt;
&lt;br /&gt;
===Response viewing===&lt;br /&gt;
&lt;br /&gt;
You can specify who can see the responses of all respondents to submitted questionnaires (general statistics tables).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039; Students can view ALL responses -&amp;gt; &#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
# &#039;&#039;&#039; After answering the questionnaire&#039;&#039;&#039;. This allows students to see all responses after answering a questionnaire that is set to &#039;&#039;&#039;&#039;&#039;respond once only&#039;&#039;&#039;&#039;&#039;. If a questionnaire is set to respond more than once, then students cannot see all responses unless you use one of the next two options.&lt;br /&gt;
# &#039;&#039;&#039; After the questionnaire is closed&#039;&#039;&#039;.&lt;br /&gt;
# &#039;&#039;&#039; Always.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
{{New features}}&lt;br /&gt;
Note.- If you want the questionnaire respondents to NEVER be able to view ALL responses, use the &#039;&#039;Roles and capabilities system&#039;&#039; to decide which course participants will be allowed to view ALL responses. Go to the Questionnaire &#039;Permissions&#039; settings and Override the Student role by setting &#039;Read response summaries, subject to open times (mod/questionnaire:readallresponses)&#039; from &#039;&#039;Inherit (Allow)&#039;&#039;  to &#039;&#039;Prevent&#039;&#039; or &#039;&#039;Prohibit&#039;&#039;. As for all other Roles and capabilities settings, you can set that permission at site level, course level or activity level.&lt;br /&gt;
&lt;br /&gt;
In Questionnaire 2.5, this option has been moved from Response options setting to Permissions.&lt;br /&gt;
&lt;br /&gt;
===Save/Resume answers===&lt;br /&gt;
&lt;br /&gt;
Setting this option allows users to save their answers to a questionnaire before submitting them. Users can leave the questionnaire unfinished and resume from the save point at a later date.&lt;br /&gt;
&lt;br /&gt;
===Allow branching questions===&lt;br /&gt;
{{New features}}&lt;br /&gt;
The Conditional Branching feature enables the Questionnaire creator to &amp;quot;branch&amp;quot; the respondent to different pages according to their choice of response to Yes/No, Dropdown boxes or Radio button questions. This option is enabled by default when you create a new questionnaire. If you do not plan to use this feature in the questionnaire, you should set it to No.&lt;br /&gt;
&lt;br /&gt;
===Submission grade===&lt;br /&gt;
Unlike the Quiz or Lesson Moodle activities the questionnaire activity is not meant to test the student&#039;s knowledge and therefore the responses cannot/should not be graded as correct or incorrect. However, in order to encourage the students to complete a questionnaire, you may choose to award the student a grade (on a 1-100 scale) upon completion. &lt;br /&gt;
&lt;br /&gt;
==Content Options==&lt;br /&gt;
&lt;br /&gt;
Select one of the radio button options. &#039;Create new&#039; is the default.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039; You can create questionnaires using three different methods: &#039;&#039;&lt;br /&gt;
:&#039;&#039;&#039; Create New: &#039;&#039;&#039;&lt;br /&gt;
::This option allows you to create a completely new questionnaire from scratch.&lt;br /&gt;
:&#039;&#039;&#039; Copy Existing: &#039;&#039;&#039;&lt;br /&gt;
::This option copies a pre-existing questionnaire&#039;s content to a new questionnaire, pre-seeding the content. You can copy questionnaires belonging to the course, or ones specifically marked as &#039;template&#039;.&lt;br /&gt;
:&#039;&#039;&#039; Use Public: &#039;&#039;&#039;&lt;br /&gt;
::If a questionnaire has already been created (in another course on the same Moodle site) with the &amp;quot;public&amp;quot; setting, then you may use that &amp;quot;public&amp;quot; questionnaire in your own course(s). The number of settings available to such questionnaires is limited and you cannot edit its questions nor view the responses. &amp;lt;br /&amp;gt;&#039;&#039;&#039;&#039;&#039; Example &#039;&#039;&#039;&#039;&#039;.- If a public questionnaire has been created in course A, it can be &amp;quot;used&amp;quot; in courses B, C, ... All the responses from courses A, B, C, ... are collected in the public questionnaire created in course A (the original course where it was created) and are viewable there by the person (admin or teacher) who originally created it.&lt;br /&gt;
&lt;br /&gt;
[[Category:Teacher]]&lt;br /&gt;
&lt;br /&gt;
[[fr:Ajouter/modifier un questionnaire]]&lt;/div&gt;</summary>
		<author><name>Rezeau</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/25/en/index.php?title=Setting_up_a_questionnaire&amp;diff=106928</id>
		<title>Setting up a questionnaire</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/25/en/index.php?title=Setting_up_a_questionnaire&amp;diff=106928"/>
		<updated>2013-10-16T11:55:51Z</updated>

		<summary type="html">&lt;p&gt;Rezeau: /* Public questionnaire roll out to multiple courses */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Questionnaire}}&lt;br /&gt;
&lt;br /&gt;
After you have created a questionnaire you can define extra settings in the &#039;&#039;&#039;Advanced settings&#039;&#039;&#039; link/tab.&lt;br /&gt;
&lt;br /&gt;
==Content options==&lt;br /&gt;
===Questionnaire Type===&lt;br /&gt;
There are three types of questionnaires:&lt;br /&gt;
&lt;br /&gt;
# &#039;&#039;&#039; Private &#039;&#039;&#039; - belongs to the course it is defined in only. &amp;lt;br /&amp;gt; This is the standard Moodle module concept. You create a questionnaire and its questions for the course it is defined in. Editing teachers of that course can change the questionnaire and all teachers can review the results.&lt;br /&gt;
# &#039;&#039;&#039; Template &#039;&#039;&#039; - can be copied and edited. &amp;lt;br /&amp;gt; This type of questionnaire cannot be used directly, but its content can be copied into a new questionnaire and edited.&lt;br /&gt;
# &#039;&#039;&#039; Public &#039;&#039;&#039; - can be shared among courses. &amp;lt;br /&amp;gt; If a questionnaire has already been created (in another course on the same Moodle site) with the &amp;quot;public&amp;quot; setting, then you may use that &amp;quot;public&amp;quot; questionnaire in your own course(s). The number of settings available to such questionnaires is limited and you cannot edit its questions nor view the responses. &amp;lt;br /&amp;gt;&#039;&#039;&#039;&#039;&#039;Example&#039;&#039;&#039;&#039;&#039;.- If a public questionnaire has been created in course A, it can be &amp;quot;used&amp;quot; in courses B, C, ... All the responses from courses A, B, C, ... are collected in the public questionnaire created in course A (the original course where it was created) and are viewable there by the person (admin or teacher) who originally created it.&lt;br /&gt;
====Public questionnaire roll out to multiple courses====&lt;br /&gt;
&lt;br /&gt;
It is possible to create a Public questionnaire whose aliases can be placed in several courses. The student responses will only be visible in the course where the original Public questionnaire has been created. There are mainly 2 applications of this setup. &lt;br /&gt;
&lt;br /&gt;
case 1.- An admin may want to see course evaluations by students without the course teachers seeing those evaluations.&lt;br /&gt;
&lt;br /&gt;
case 2.- A teacher teaching several courses may want to &amp;quot;consolidate&amp;quot; the results of a questionnaire into one unique Public questionnaire.&lt;br /&gt;
&lt;br /&gt;
Here&#039;s how you do it (for case1)&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Create a course that will simply be a shell for any public questionnaires. Give it whatever title you like, e.g. PubQuestCourse. You can hide the course entirely. &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Create your questionnaire in this course. Call it e.g. &amp;quot;Public questionnaire01&amp;quot; On the &amp;quot;Advanced settings&amp;quot; page, select &#039;&#039;&#039;Public&#039;&#039;&#039; for the questionnaire type.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Add questions in this public questionnaire.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Navigate to the course where you want to place an alias of that Public questionnaire.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Add an activity or resource: Questionnaire. Edit all the various settings. Name it e.g. Questionnaire01. For Response options|Type, we suggest you select Respond once. &lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:10-10-2013 09-55-37.jpg]]&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
In the Content options section, in the radio buttons list, under Use public, the title of the public questionnaire you created in the other course (PubQuestCourse) will appear (e.g. Public questionnaire01): check its radio button. Then finish editing (click the Save and return to course button).&amp;lt;/li&amp;gt;&lt;br /&gt;
Note.- For options 4-6 above, an admin may ask individual teachers to create those questionnaires based on a public questionnaire in their own courses, giving them detailed instructions on how to proceed. Unfortunately at the moment there is no way to automatically deploy a public questionnaire to other courses, it has to be done &amp;quot;by hand&amp;quot;.&lt;br /&gt;
&amp;lt;li&amp;gt;Student responses will appear in the original questionnaire (e.g. &amp;quot;Public questionnaire01&amp;quot; in course PubQuestCourse), but will not be visible at all in the &amp;quot;local&amp;quot; questionnaire (alias). Teachers will not be able to respond to it or view their students&#039; responses.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;IMPORTANT&#039;&#039;&#039; Please note that when you delete a Public questionnaire, you also delete the links to its &amp;quot;dependent&amp;quot; questionnaires in the other courses on your moodle site. If a Public questionnaire is no longer used, the normal procedure is to go to all the other courses that &amp;quot;use&amp;quot; that Public questionnaire and delete them first.&lt;br /&gt;
&lt;br /&gt;
====Template questionnaire used in multiple courses====&lt;br /&gt;
&lt;br /&gt;
When the responses to your questionnaire should remain accessible in the course in which it resides, but the questionnaire itself will follow a standard format with the same questions, use a template-type of questionnaire. So instead of re-creating the questions for each questionnaire, you can apply the template questionnaire to each one you create.  &lt;br /&gt;
&lt;br /&gt;
Here&#039;s how you do it:&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Create a course that will simply be a shell for any template questionnaires. Give it whatever title you like e.g. TempQuestCourse. You can hide the course entirely. &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Create your questionnaire in this course. On the &amp;quot;Advanced settings&amp;quot; page, select &#039;&#039;&#039;Template&#039;&#039;&#039; for the questionnaire type.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Add questions in this template questionnaire.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Navigate to the course where you want to place an alias of that Template questionnaire.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Add an activity or resource: Questionnaire. Edit all the various settings. Name it e.g. Questionnaire02.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:10-10-2013 10-07-55.jpg]]&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
In the Content options section, in the radio buttons list, under Copy existing, the title of the Template questionnaire you created in the other course (TempQuestCourse) will appear (e.g. Template questionnaire01): check its radio button. Then finish editing (click the Save and return to course button).&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you don&#039;t want your teachers to view or alter questionnaire responses, just define this in the Define Roles settings for Questionnaires. In Define Roles, you can limit teachers from being able to delete responses from the questionnaire, or be able to submit their own questionnaires or view responses.&lt;br /&gt;
&lt;br /&gt;
===Title/Sub-title===&lt;br /&gt;
&lt;br /&gt;
Title of the questionnaire, which will appear at the top of every page. By default Title is set to the questionnaire Name, but you can edit it as you like.&lt;br /&gt;
&lt;br /&gt;
===Additional Info===&lt;br /&gt;
&lt;br /&gt;
Text to be displayed at the top of the first page of the questionnaire. (i.e. instructions, background info, etc.)&lt;br /&gt;
&lt;br /&gt;
==Submission options==&lt;br /&gt;
&lt;br /&gt;
===Confirmation URL/page===&lt;br /&gt;
&lt;br /&gt;
Heading (in bold) and body text for the &amp;quot;Confirmation&amp;quot; page displayed after a user completes this questionnaire. (URL, if present, takes precedence over confirmation text.) If you leave this field empty, a default message will be displayed upon questionnaire completion (&#039;&#039;Thank you for completing this Questionnaire&#039;&#039;).&lt;br /&gt;
===Email===&lt;br /&gt;
Sends a copy of each submission to the specified address or addresses.&lt;br /&gt;
You can provide more than one address by separating them with commas.&lt;br /&gt;
Leave blank for no email backup.&lt;br /&gt;
&lt;br /&gt;
[[Category:Teacher]]&lt;/div&gt;</summary>
		<author><name>Rezeau</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/25/en/index.php?title=Setting_up_a_questionnaire&amp;diff=106927</id>
		<title>Setting up a questionnaire</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/25/en/index.php?title=Setting_up_a_questionnaire&amp;diff=106927"/>
		<updated>2013-10-16T11:51:55Z</updated>

		<summary type="html">&lt;p&gt;Rezeau: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Questionnaire}}&lt;br /&gt;
&lt;br /&gt;
After you have created a questionnaire you can define extra settings in the &#039;&#039;&#039;Advanced settings&#039;&#039;&#039; link/tab.&lt;br /&gt;
&lt;br /&gt;
==Content options==&lt;br /&gt;
===Questionnaire Type===&lt;br /&gt;
There are three types of questionnaires:&lt;br /&gt;
&lt;br /&gt;
# &#039;&#039;&#039; Private &#039;&#039;&#039; - belongs to the course it is defined in only. &amp;lt;br /&amp;gt; This is the standard Moodle module concept. You create a questionnaire and its questions for the course it is defined in. Editing teachers of that course can change the questionnaire and all teachers can review the results.&lt;br /&gt;
# &#039;&#039;&#039; Template &#039;&#039;&#039; - can be copied and edited. &amp;lt;br /&amp;gt; This type of questionnaire cannot be used directly, but its content can be copied into a new questionnaire and edited.&lt;br /&gt;
# &#039;&#039;&#039; Public &#039;&#039;&#039; - can be shared among courses. &amp;lt;br /&amp;gt; If a questionnaire has already been created (in another course on the same Moodle site) with the &amp;quot;public&amp;quot; setting, then you may use that &amp;quot;public&amp;quot; questionnaire in your own course(s). The number of settings available to such questionnaires is limited and you cannot edit its questions nor view the responses. &amp;lt;br /&amp;gt;&#039;&#039;&#039;&#039;&#039;Example&#039;&#039;&#039;&#039;&#039;.- If a public questionnaire has been created in course A, it can be &amp;quot;used&amp;quot; in courses B, C, ... All the responses from courses A, B, C, ... are collected in the public questionnaire created in course A (the original course where it was created) and are viewable there by the person (admin or teacher) who originally created it.&lt;br /&gt;
====Public questionnaire roll out to multiple courses====&lt;br /&gt;
&lt;br /&gt;
It is possible to create a Public questionnaire whose aliases can be placed in several courses. The student responses will only be visible in the course where the original Public questionnaire has been created. There are mainly 2 applications of this setup. &lt;br /&gt;
&lt;br /&gt;
case 1.- An admin may want to see course evaluations by students without the course teachers seeing those evaluations.&lt;br /&gt;
&lt;br /&gt;
case 2.- A teacher teaching several courses may want to &amp;quot;consolidate&amp;quot; the results of a questionnaire into one unique Public questionnaire.&lt;br /&gt;
&lt;br /&gt;
Here&#039;s how you do it (for case1)&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Create a course that will simply be a shell for any public questionnaires. Give it whatever title you like, e.g. PubQuestCourse. You can hide the course entirely. &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Create your questionnaire in this course. Call it e.g. &amp;quot;Public questionnaire01&amp;quot; On the &amp;quot;Advanced settings&amp;quot; page, select &#039;&#039;&#039;Public&#039;&#039;&#039; for the questionnaire type.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Add questions in this public questionnaire.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Navigate to the course where you want to place an alias of that Public questionnaire.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Add an activity or resource: Questionnaire. Edit all the various settings. Name it e.g. Questionnaire01. For Response options|Type, we suggest you select Respond once. &lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:10-10-2013 09-55-37.jpg]]&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
In the Content options section, in the radio buttons list, under Use public, the title of the public questionnaire you created in the other course (PubQuestCourse) will appear (e.g. Public questionnaire01): check its radio button. Then finish editing (click the Save and return to course button).&amp;lt;/li&amp;gt;&lt;br /&gt;
Note.- For options 4-6 above, an admin may ask individual teachers to create those questionnaires based on a public questionnaire in their own courses, giving them detailed instructions on how to proceed. Unfortunately at the moment there is no way to automatically deploy a public questionnaire to other courses, it has to be done &amp;quot;by hand&amp;quot;.&lt;br /&gt;
&amp;lt;li&amp;gt;Student responses will appear in the original questionnaire (e.g. &amp;quot;Public questionnaire01&amp;quot; in course PubQuestCourse), but will not be visible at all in the &amp;quot;local&amp;quot; questionnaire (alias). Teachers will not be able to respond to it or view their students&#039; responses.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Template questionnaire used in multiple courses====&lt;br /&gt;
&lt;br /&gt;
When the responses to your questionnaire should remain accessible in the course in which it resides, but the questionnaire itself will follow a standard format with the same questions, use a template-type of questionnaire. So instead of re-creating the questions for each questionnaire, you can apply the template questionnaire to each one you create.  &lt;br /&gt;
&lt;br /&gt;
Here&#039;s how you do it:&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Create a course that will simply be a shell for any template questionnaires. Give it whatever title you like e.g. TempQuestCourse. You can hide the course entirely. &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Create your questionnaire in this course. On the &amp;quot;Advanced settings&amp;quot; page, select &#039;&#039;&#039;Template&#039;&#039;&#039; for the questionnaire type.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Add questions in this template questionnaire.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Navigate to the course where you want to place an alias of that Template questionnaire.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Add an activity or resource: Questionnaire. Edit all the various settings. Name it e.g. Questionnaire02.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:10-10-2013 10-07-55.jpg]]&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
In the Content options section, in the radio buttons list, under Copy existing, the title of the Template questionnaire you created in the other course (TempQuestCourse) will appear (e.g. Template questionnaire01): check its radio button. Then finish editing (click the Save and return to course button).&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you don&#039;t want your teachers to view or alter questionnaire responses, just define this in the Define Roles settings for Questionnaires. In Define Roles, you can limit teachers from being able to delete responses from the questionnaire, or be able to submit their own questionnaires or view responses.&lt;br /&gt;
&lt;br /&gt;
===Title/Sub-title===&lt;br /&gt;
&lt;br /&gt;
Title of the questionnaire, which will appear at the top of every page. By default Title is set to the questionnaire Name, but you can edit it as you like.&lt;br /&gt;
&lt;br /&gt;
===Additional Info===&lt;br /&gt;
&lt;br /&gt;
Text to be displayed at the top of the first page of the questionnaire. (i.e. instructions, background info, etc.)&lt;br /&gt;
&lt;br /&gt;
==Submission options==&lt;br /&gt;
&lt;br /&gt;
===Confirmation URL/page===&lt;br /&gt;
&lt;br /&gt;
Heading (in bold) and body text for the &amp;quot;Confirmation&amp;quot; page displayed after a user completes this questionnaire. (URL, if present, takes precedence over confirmation text.) If you leave this field empty, a default message will be displayed upon questionnaire completion (&#039;&#039;Thank you for completing this Questionnaire&#039;&#039;).&lt;br /&gt;
===Email===&lt;br /&gt;
Sends a copy of each submission to the specified address or addresses.&lt;br /&gt;
You can provide more than one address by separating them with commas.&lt;br /&gt;
Leave blank for no email backup.&lt;br /&gt;
&lt;br /&gt;
[[Category:Teacher]]&lt;/div&gt;</summary>
		<author><name>Rezeau</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/25/en/index.php?title=Viewing_Questionnaire_responses&amp;diff=106926</id>
		<title>Viewing Questionnaire responses</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/25/en/index.php?title=Viewing_Questionnaire_responses&amp;diff=106926"/>
		<updated>2013-10-16T11:48:28Z</updated>

		<summary type="html">&lt;p&gt;Rezeau: /* Group filtering */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Questionnaire}}&lt;br /&gt;
&lt;br /&gt;
== All responses ==&lt;br /&gt;
On the Questionnaire Report page, users with the necessary permissions can view a statistical Summary of all the responses given to a Questionnaire instance so far.&lt;br /&gt;
&lt;br /&gt;
===Responses display by question type===&lt;br /&gt;
&lt;br /&gt;
====Numeric====&lt;br /&gt;
&lt;br /&gt;
[[Image:05-08-2013 16-34-46.jpg]]&lt;br /&gt;
&lt;br /&gt;
Column 1 displays the number of similar responses. Column 2 displays the responses given. The Total and Average cells are self-explanatory.&lt;br /&gt;
&lt;br /&gt;
====Yes/No====&lt;br /&gt;
&lt;br /&gt;
[[Image:05-08-2013 16-41-00.jpg]]&lt;br /&gt;
&lt;br /&gt;
This screenshot shows that out of 5 respondents who responded to this questionnaire, one did not answer this Yes/No question (which was not set as Required). 3 respondents answered Yes (75%) and 1 answered No (25%). Please note that the percentages are calculated on the actual responses, not the total of those who submitted the questionnaire.&lt;br /&gt;
&lt;br /&gt;
====Radio buttons====&lt;br /&gt;
&lt;br /&gt;
[[Image:05-08-2013 16-46-07.jpg]]&lt;br /&gt;
&lt;br /&gt;
This screenshot shows that 5 our 5 respondents who submitted this questionnaire answered that question (which was Required).&lt;br /&gt;
&lt;br /&gt;
====Check boxes====&lt;br /&gt;
&lt;br /&gt;
[[Image:05-08-2013 16-50-19.jpg]]&lt;br /&gt;
&lt;br /&gt;
This screenshot shows for instance that the Forum and Glossary activities are favoured by 4 respondents (out of 5 who responded), accounting for 27% of the choices each.&lt;br /&gt;
&lt;br /&gt;
====Rate question====&lt;br /&gt;
&lt;br /&gt;
[[Image:05-08-2013 16-54-34.jpg]]&lt;br /&gt;
&lt;br /&gt;
The statistics for Rate questions display 2 tables.&lt;br /&gt;
&lt;br /&gt;
The &#039;&#039;&#039;top table&#039;&#039;&#039; displays the Average rank for each feature. In this screenshot, the &amp;quot;Formatting your course&amp;quot; feature of Moodle was rated on average 1.4 on the 1 to 4 scale of difficulty, i.e. that feature was rated as between &amp;quot;Very...&amp;quot; and &amp;quot;Easy...&amp;quot; to use.&lt;br /&gt;
When creating that Rate question, the following values were entered for each &amp;quot;possible answer&amp;quot;:&lt;br /&gt;
&lt;br /&gt;
* 4=Very easy to use&lt;br /&gt;
* 3=Easy to use&lt;br /&gt;
* 2=Somewhat difficult to use&lt;br /&gt;
* 1=Difficult to use&lt;br /&gt;
&lt;br /&gt;
That is to say that the highest &amp;quot;mark&amp;quot; or &amp;quot;value&amp;quot; was given to the easiest choice.&lt;br /&gt;
So, the average values (between parentheses) immediately after the average ranks are here the inverse of the average ranks.&lt;br /&gt;
&lt;br /&gt;
The &#039;&#039;&#039;bottom table&#039;&#039;&#039; displays for each feature the number and percentage of respondents who selected each choice. For instance, for the &amp;quot;Formatting your course&amp;quot; feature, 3 respondents (60% of respondents to that question) selected the &amp;quot;Very easy to use&amp;quot; choice, and 2 respondents (40% of respondents to that question) selected the &amp;quot;Easy to use&amp;quot; choice. Nobody selected the &amp;quot;Difficult&amp;quot; choices for that feature.&lt;br /&gt;
&lt;br /&gt;
====Essay question====&lt;br /&gt;
&lt;br /&gt;
[[Image:05-08-2013 19-04-02.jpg]]&lt;br /&gt;
&lt;br /&gt;
{{New features}}&lt;br /&gt;
If the questionnaire is set to &amp;quot;full name&amp;quot; (i.e. non anonymous), the respondent&#039;s name will be displayed next to their Essay response. Click on the respondent&#039;s name to view their full submission.&lt;br /&gt;
&lt;br /&gt;
===Group filtering===&lt;br /&gt;
&lt;br /&gt;
[[Image:16-10-2013 13-45-08.jpg]]&lt;br /&gt;
&lt;br /&gt;
If the questionnaire is set to &#039;&#039;&#039;Group Mode&#039;&#039;&#039;: &#039;&#039;Visible groups&#039;&#039;, or is set to &#039;&#039;Separate groups&#039;&#039; and the current user has the &#039;&#039;moodle/site:accessallgroups capability&#039;&#039; (in the current context), and groups have been defined in the current course, then the user has access to a dropdown list of groups. This dropdown list enables the user to &amp;quot;filter&amp;quot; the questionnaire responses by groups. If the setting is &#039;&#039;&#039;Group Mode&#039;&#039;&#039;: &#039;&#039;Separate groups&#039;&#039;, then users who do not have the &#039;&#039;moodle/site:accessallgroups&#039;&#039; capability (usually students, or non-editing teachers, etc.) will only be able to view the responses of the group(s) they belong to.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;All participants&#039;&#039; includes responses from all the people who answered the questionnaire, including people not belonging to any group. &lt;br /&gt;
* &#039;&#039;Members of: All groups&#039;&#039; includes responses from people who belong to any group. &lt;br /&gt;
* And &#039;&#039;People not in a group&#039;&#039; is self-explanatory.;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Important&#039;&#039;&#039;.- After you have used the dropdown list to select a &amp;quot;set of people&amp;quot; for displaying their responses, the &amp;quot;filter&amp;quot; remains active for the following operations: &#039;&#039;&#039;Download in text format&#039;&#039;&#039;, &#039;&#039;&#039;Delete ALL Responses&#039;&#039;&#039; and &#039;&#039;&#039;View by Response&#039;&#039;&#039;. For example, if you selected to display &#039;&#039;&#039;All Responses&#039;&#039;&#039; for group &amp;quot;Sparrows&amp;quot; and then click on the &#039;&#039;&#039;Delete ALL Responses&#039;&#039;&#039; tab link, a confirmation message will ask you to confirm that you want to delete all responses for members of group &amp;quot;Sparrows&amp;quot; and only responses of those participants. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;.- If a participant belongs to more than one group, then deleting all the responses for &#039;&#039;one of the Groups&#039;&#039; he belongs to will of course delete his responses from &#039;&#039;all the other groups&#039;&#039; he belongs to.&lt;br /&gt;
&lt;br /&gt;
===List of responses===&lt;br /&gt;
==== View Individual Responses ====&lt;br /&gt;
&lt;br /&gt;
If the questionnaire &#039;&#039;&#039;Respondent Type&#039;&#039;&#039; was set as “fullname”, users with the necessary permissions (usually only teachers or tutors) can view each response individually. &lt;br /&gt;
On the List of responses page, each respondent&#039;s name is displayed, in alphabetical order of the family name.&lt;br /&gt;
Upon mouseover, a tooltip displays the submission time-stamp. This is especially useful in case the questionnaire is set to answer more than once and some students have submitted more than one response.&lt;br /&gt;
Click on a respondent&#039;s name to display their submission to the questionnaire.&lt;br /&gt;
&lt;br /&gt;
====Individual Responses Navigation====&lt;br /&gt;
[[File:05-08-2013 18-46-20.jpg]]&lt;br /&gt;
{{New features}}&lt;br /&gt;
When you are viewing a respondent&#039;s individual response, use the navigation bar at the top to go to the Previous (in alphabetical order) or Next response. You can go back to the List of responses page at any time.&lt;br /&gt;
&lt;br /&gt;
==== Print this Response ====&lt;br /&gt;
Opens printer-friendly window with current Response.&lt;br /&gt;
&lt;br /&gt;
==== Delete this Response ====&lt;br /&gt;
Deletes current response.&lt;br /&gt;
&lt;br /&gt;
=== Order Responses ===&lt;br /&gt;
When displaying All Responses you can order the choices by number of responses (the Average column) for the following 4 types of questions.&lt;br /&gt;
&lt;br /&gt;
* single choices radio button &lt;br /&gt;
* single choices drop-down list &lt;br /&gt;
* multiple choices (check boxes) &lt;br /&gt;
* rate questions (including Likert scales). &lt;br /&gt;
&lt;br /&gt;
When you arrive on the All Responses page, by default all responses are ordered in the order that the questionnaire creator entered the question choices. You can choose to order them by ascending or descending order.&lt;br /&gt;
&lt;br /&gt;
=== Delete All Responses ===&lt;br /&gt;
Deletes all responses in current questionnaire instance. Can be used to “reset” a questionnaire if you no longer need the current data.&lt;br /&gt;
&lt;br /&gt;
=== Download in text format  ===&lt;br /&gt;
This feature enables you to save all the responses of a questionnaire to a text file (CSV). This file can then be imported into a spreadsheet (e.g. MS Excel or Open Office Calc) or a statistical package for further processing the data.&lt;br /&gt;
&lt;br /&gt;
====Options for text download====&lt;br /&gt;
On the &#039;&#039;&#039;Download in text format&#039;&#039;&#039; page you have a set of 2 options which only concern the output of the radio buttons/single answer question type. Here is how these options work.&lt;br /&gt;
&lt;br /&gt;
Question text: What is your favorite color? Choice: blue, green, red.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border-spacing:0;&amp;quot;&lt;br /&gt;
| style=&amp;quot;border-top:0.092cm double #808080;border-bottom:0.092cm double #808080;border-left:0.092cm double #808080;border-right:none;padding:0.049cm;&amp;quot;| selected color &lt;br /&gt;
| style=&amp;quot;border-top:0.092cm double #808080;border-bottom:0.092cm double #808080;border-left:0.092cm double #808080;border-right:none;padding:0.049cm;&amp;quot;| blue&lt;br /&gt;
| style=&amp;quot;border-top:0.092cm double #808080;border-bottom:0.092cm double #808080;border-left:0.092cm double #808080;border-right:none;padding:0.049cm;&amp;quot;| green&lt;br /&gt;
| style=&amp;quot;border:0.092cm double #808080;padding:0.049cm;&amp;quot;| red&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.092cm double #808080;border-left:0.092cm double #808080;border-right:none;padding:0.049cm;&amp;quot;| Include choice codes&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.092cm double #808080;border-left:0.092cm double #808080;border-right:none;padding:0.049cm;&amp;quot;| 1&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.092cm double #808080;border-left:0.092cm double #808080;border-right:none;padding:0.049cm;&amp;quot;| 2&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.092cm double #808080;border-left:0.092cm double #808080;border-right:0.092cm double #808080;padding:0.049cm;&amp;quot;| 3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.092cm double #808080;border-left:0.092cm double #808080;border-right:none;padding:0.049cm;&amp;quot;| Include choice text&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.092cm double #808080;border-left:0.092cm double #808080;border-right:none;padding:0.049cm;&amp;quot;| blue&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.092cm double #808080;border-left:0.092cm double #808080;border-right:none;padding:0.049cm;&amp;quot;| green&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.092cm double #808080;border-left:0.092cm double #808080;border-right:0.092cm double #808080;padding:0.049cm;&amp;quot;| red&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.092cm double #808080;border-left:0.092cm double #808080;border-right:none;padding:0.049cm;&amp;quot;| Include choice codes + Include choice text &lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.092cm double #808080;border-left:0.092cm double #808080;border-right:none;padding:0.049cm;&amp;quot;| 1&amp;amp;nbsp;:&amp;amp;nbsp;blue &lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.092cm double #808080;border-left:0.092cm double #808080;border-right:none;padding:0.049cm;&amp;quot;| 2&amp;amp;nbsp;:&amp;amp;nbsp;green &lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.092cm double #808080;border-left:0.092cm double #808080;border-right:0.092cm double #808080;padding:0.049cm;&amp;quot;| 3&amp;amp;nbsp;:&amp;amp;nbsp;red &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.092cm double #808080;border-left:0.092cm double #808080;border-right:none;padding:0.049cm;&amp;quot;| No Include box ticked = same as include choice text box ticked &lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.092cm double #808080;border-left:0.092cm double #808080;border-right:none;padding:0.049cm;&amp;quot;| blue&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.092cm double #808080;border-left:0.092cm double #808080;border-right:none;padding:0.049cm;&amp;quot;| green&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.092cm double #808080;border-left:0.092cm double #808080;border-right:0.092cm double #808080;padding:0.049cm;&amp;quot;| red&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
Note that these output options are over-ridden in case you used the &amp;quot;hidden&amp;quot; option when you created your radio button questions, i.e. the named values will be exported as data.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border-spacing:0;&amp;quot;&lt;br /&gt;
| style=&amp;quot;width:33%; border-top:0.092cm double #808080;border-bottom:0.092cm double #808080;border-left:0.092cm double #808080;border-right:none;padding:0.132cm;&amp;quot;| &#039;&#039;Possible answers: &#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Red=the color of blood&lt;br /&gt;
&lt;br /&gt;
Blue=the color of the sky&lt;br /&gt;
&lt;br /&gt;
Black=opposite of white &lt;br /&gt;
| style=&amp;quot;width:33%; border-top:0.092cm double #808080;border-bottom:0.092cm double #808080;border-left:0.092cm double #808080;border-right:none;padding:0.132cm;&amp;quot;| &#039;&#039;&#039;What is your favorite color?&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
the color of blood&lt;br /&gt;
&lt;br /&gt;
the color of the sky&lt;br /&gt;
&lt;br /&gt;
opposite of white &lt;br /&gt;
| style=&amp;quot;width:33%; border:0.092cm double #808080;padding:0.132cm;&amp;quot;| &#039;&#039;Irrespective of the Include choice codes/text options selected on the Download in text format page, this will output the values &#039;&#039;&#039;Red&#039;&#039;&#039;, &#039;&#039;&#039;Blue&#039;&#039;&#039; or &#039;&#039;&#039;Black&#039;&#039;&#039; to the CSV file.&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====The CSV file (how to use it)====&lt;br /&gt;
The text format available here is of the so-called CSV (comma separated values) type. However, for more universal use, the &#039;&#039;&#039;tab&#039;&#039;&#039; (tabulation) separator is used, rather than the comma or semi-colon. &lt;br /&gt;
&lt;br /&gt;
When you click on the &#039;&#039;&#039;Download in text format&#039;&#039;&#039; button, a window opens, asking you whether you&#039;d like to save the data file or open it. Select &#039;&#039;save&#039;&#039;. The data file is named after the name of the current quiz, however you can save it under a different name. The proposed data file extension is *.txt, but you &#039;&#039;can&#039;&#039; rename it. Note that you &#039;&#039;must&#039;&#039; rename it with a *.csv extension for import into &#039;&#039;Open Office Calc&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Then go to your external software, and open the file into it. The following operations depend on the software you are using and on a number of other parameters. If you are using a non-ascii language interface in Moodle or you are using the English language but some of your questionnaire questions (or responses) have non-ascii characters in them, then &#039;&#039;Excel&#039;&#039; (or &#039;&#039;Open Office Calc&#039;&#039;) might be able to &#039;&#039;automatically detect&#039;&#039; that your file is UTF-8 encoded, and decode it accordingly. Please note that if most of your data file is using standard ascii characters and only a very small number of non-ascii characters are present, the automatic detection will not work, and you will have to &#039;&#039;manually&#039;&#039; select the UTF-8 encoding in the list provided by your software.&lt;br /&gt;
&lt;br /&gt;
At the top of the &amp;quot;table&amp;quot; imported into e.g. &#039;&#039;Excel&#039;&#039;, the first line contains the names of all the question fields. This is followed by one line per response. The first 7 fields are as follows (in the English version): &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border-spacing:0;&amp;quot;&lt;br /&gt;
| style=&amp;quot;border-top:0.092cm double #808080;border-bottom:0.092cm double #808080;border-left:0.092cm double #808080;border-right:none;padding:0.079cm;&amp;quot;| Response&lt;br /&gt;
| style=&amp;quot;border-top:0.092cm double #808080;border-bottom:0.092cm double #808080;border-left:0.092cm double #808080;border-right:none;padding:0.079cm;&amp;quot;| Submitted on:&lt;br /&gt;
| style=&amp;quot;border-top:0.092cm double #808080;border-bottom:0.092cm double #808080;border-left:0.092cm double #808080;border-right:none;padding:0.079cm;&amp;quot;| Institution&lt;br /&gt;
| style=&amp;quot;border-top:0.092cm double #808080;border-bottom:0.092cm double #808080;border-left:0.092cm double #808080;border-right:none;padding:0.079cm;&amp;quot;| Department&lt;br /&gt;
| style=&amp;quot;border-top:0.092cm double #808080;border-bottom:0.092cm double #808080;border-left:0.092cm double #808080;border-right:none;padding:0.079cm;&amp;quot;| Course&lt;br /&gt;
| style=&amp;quot;border-top:0.092cm double #808080;border-bottom:0.092cm double #808080;border-left:0.092cm double #808080;border-right:none;padding:0.079cm;&amp;quot;| Group&lt;br /&gt;
| style=&amp;quot;border-top:0.092cm double #808080;border-bottom:0.092cm double #808080;border-left:0.092cm double #808080;border-right:none;padding:0.079cm;&amp;quot;| ID&lt;br /&gt;
| style=&amp;quot;border-top:0.092cm double #808080;border-bottom:0.092cm double #808080;border-left:0.092cm double #808080;border-right:none;padding:0.079cm;&amp;quot;| Full name&lt;br /&gt;
| style=&amp;quot;border:0.092cm double #808080;padding:0.079cm;&amp;quot;| Username&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
The submitted_date field contains the date (and time, i.e. hour minutes seconds) when the response was submitted by respondent. For example: 15/09/2007 15:57. Normally you should be able to use Excel cell formatting to display such dates at will, in your own language formatting conventions, including the seconds, and if you wish full day or months names, while retaining the sorting facility.&lt;br /&gt;
&lt;br /&gt;
If the questionnaire was set as &amp;quot;anonymous responses&amp;quot;, the ID and Username will be empty and the Full name field will display &amp;quot;Anonymous&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
== Your responses ==&lt;br /&gt;
On the Questionnaire Report page, users with the necessary permissions can view their own responses on the page entitled “Your results”. Usually students will be allowed to view their own responses.&lt;br /&gt;
&lt;br /&gt;
If the questionnaire&#039;s settings allow more than one response and more than one response have been entered by the current user, then all of the features of the “View All responses” explained above apply.&lt;br /&gt;
&lt;br /&gt;
However, it is not possible to delete individual responses in this “Your responses” view. And the Download as text format is not available to users with the student role.&lt;br /&gt;
&lt;br /&gt;
=== All your responses ===&lt;br /&gt;
This provides a view of all of a respondent&#039;s responses, on successive dates. This feature may be useful if a questionnaire is used as a kind of portfolio.&lt;br /&gt;
&lt;br /&gt;
== Show Non-Respondents ==&lt;br /&gt;
{{New features}}&lt;br /&gt;
&lt;br /&gt;
This feature allows the teacher to see students who have not yet responded. A reminder message can be sent to individuals or to everyone that hasn’t submitted responses. &lt;br /&gt;
&lt;br /&gt;
The list of &amp;quot;non-respondents&amp;quot; can be filtered by Group (if Groups are enabled for this course and activity).&lt;br /&gt;
&lt;br /&gt;
If the questionnaire&#039;s &#039;&#039;&#039;Save/Resume answers&#039;&#039;&#039; is set to Yes, then the list shows those students who have started but not yet submitted their questionnaire responses.&lt;br /&gt;
&lt;br /&gt;
[[Image:05-08-2013 16-15-58.jpg]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Teacher]]&lt;/div&gt;</summary>
		<author><name>Rezeau</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/25/en/index.php?title=File:16-10-2013_13-45-08.jpg&amp;diff=106925</id>
		<title>File:16-10-2013 13-45-08.jpg</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/25/en/index.php?title=File:16-10-2013_13-45-08.jpg&amp;diff=106925"/>
		<updated>2013-10-16T11:47:36Z</updated>

		<summary type="html">&lt;p&gt;Rezeau: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Rezeau</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/25/en/index.php?title=Setting_up_a_questionnaire&amp;diff=106810</id>
		<title>Setting up a questionnaire</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/25/en/index.php?title=Setting_up_a_questionnaire&amp;diff=106810"/>
		<updated>2013-10-10T08:47:23Z</updated>

		<summary type="html">&lt;p&gt;Rezeau: /* Questionnaire Type */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Questionnaire}}&lt;br /&gt;
&lt;br /&gt;
If you are creating a new survey or editing an existing template you will be able to define the overall settings via the &#039;&#039;&#039;Advanced settings&#039;&#039;&#039; tab.&lt;br /&gt;
&lt;br /&gt;
==Content options==&lt;br /&gt;
===Questionnaire Type===&lt;br /&gt;
There are three types of questionnaires:&lt;br /&gt;
&lt;br /&gt;
# &#039;&#039;&#039; Private &#039;&#039;&#039; - belongs to the course it is defined in only. &amp;lt;br /&amp;gt; This is the standard Moodle module concept. You create a questionnaire and its questionnaire content for the course it is defined in. Editing teachers of that course can change the questionnaire and all teachers can review the results.&lt;br /&gt;
# &#039;&#039;&#039; Template &#039;&#039;&#039; - can be copied and edited. &amp;lt;br /&amp;gt; This type of questionnaire cannot be used directly, but its content can be copied into a new questionnaire and edited.&lt;br /&gt;
# &#039;&#039;&#039; Public &#039;&#039;&#039; - can be shared among courses. &amp;lt;br /&amp;gt; If a questionnaire has already been created (in another course on the same Moodle site) with the &amp;quot;public&amp;quot; setting, then you may use that &amp;quot;public&amp;quot; questionnaire in your own course(s). The number of settings available to such questionnaires is limited and you cannot edit its questions nor view the responses. &amp;lt;br /&amp;gt;&#039;&#039;&#039;&#039;&#039;Example&#039;&#039;&#039;&#039;&#039;.- If a public questionnaire has been created in course A, it can be &amp;quot;used&amp;quot; in courses B, C, ... All the responses from courses A, B, C, ... are collected in the public questionnaire created in course A (the original course where it was created) and are viewable there by the person (admin or teacher) who originally created it.&lt;br /&gt;
====Public questionnaire roll out to multiple courses====&lt;br /&gt;
&lt;br /&gt;
It is possible to create a Public questionnaire whose aliases can be placed in several courses. The student responses will only be visible in the course where the original Public questionnaire has been created. There are mainly 2 applications of this setup. &lt;br /&gt;
&lt;br /&gt;
case 1.- An admin may want to see course evaluations by students without the course teachers seeing those evaluations.&lt;br /&gt;
&lt;br /&gt;
case 2.- A teacher teaching several courses may want to &amp;quot;consolidate&amp;quot; the results of a questionnaire into one unique Public questionnaire.&lt;br /&gt;
&lt;br /&gt;
Here&#039;s how you do it (for case1)&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Create a course that will simply be a shell for any public questionnaires. Give it whatever title you like, e.g. PubQuestCourse. You can hide the course entirely. &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Create your questionnaire in this course. Call it e.g. &amp;quot;Public questionnaire01&amp;quot; On the &amp;quot;Advanced settings&amp;quot; page, select &#039;&#039;&#039;Public&#039;&#039;&#039; for the questionnaire type.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Add questions in this public questionnaire.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Navigate to the course where you want to place an alias of that Public questionnaire.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Add an activity or resource: Questionnaire. Edit all the various settings. Name it e.g. Questionnaire01. For Response options|Type, we suggest you select Respond once. &lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:10-10-2013 09-55-37.jpg]]&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
In the Content options section, in the radio buttons list, under Use public, the title of the public questionnaire you created in the other course (PubQuestCourse) will appear (e.g. Public questionnaire01): check its radio button. Then finish editing (click the Save and return to course button).&amp;lt;/li&amp;gt;&lt;br /&gt;
Note.- For options 4-6 above, an admin may ask individual teachers to create those questionnaires based on a public questionnaire in their own courses, giving them detailed instructions on how to proceed. Unfortunately at the moment there is no way to automatically deploy a public questionnaire to other courses, it has to be done &amp;quot;by hand&amp;quot;.&lt;br /&gt;
&amp;lt;li&amp;gt;Student responses will appear in the original questionnaire (e.g. &amp;quot;Public questionnaire01&amp;quot; in course PubQuestCourse), but will not be visible at all in the &amp;quot;local&amp;quot; questionnaire (alias). Teachers will not be able to respond to it or view their students&#039; responses.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Template questionnaire used in multiple courses====&lt;br /&gt;
&lt;br /&gt;
When the responses to your questionnaire should remain accessible in the course in which it resides, but the questionnaire itself will follow a standard format with the same questions, use a template-type of questionnaire. So instead of re-creating the questions for each questionnaire, you can apply the template questionnaire to each one you create.  &lt;br /&gt;
&lt;br /&gt;
Here&#039;s how you do it:&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Create a course that will simply be a shell for any template questionnaires. Give it whatever title you like e.g. TempQuestCourse. You can hide the course entirely. &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Create your questionnaire in this course. On the &amp;quot;Advanced settings&amp;quot; page, select &#039;&#039;&#039;Template&#039;&#039;&#039; for the questionnaire type.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Add questions in this template questionnaire.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Navigate to the course where you want to place an alias of that Template questionnaire.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Add an activity or resource: Questionnaire. Edit all the various settings. Name it e.g. Questionnaire02.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:10-10-2013 10-07-55.jpg]]&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
In the Content options section, in the radio buttons list, under Copy existing, the title of the Template questionnaire you created in the other course (TempQuestCourse) will appear (e.g. Template questionnaire01): check its radio button. Then finish editing (click the Save and return to course button).&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you don&#039;t want your teachers to view or alter questionnaire responses, just define this in the Define Roles settings for Questionnaires. In Define Roles, you can limit teachers from being able to delete responses from the questionnaire, or be able to submit their own questionnaires or view responses.&lt;br /&gt;
&lt;br /&gt;
===Title/Sub-title===&lt;br /&gt;
&lt;br /&gt;
Title of the questionnaire, which will appear at the top of every page. By default Title is set to the questionnaire Name, but you can edit it as you like.&lt;br /&gt;
&lt;br /&gt;
===Additional Info===&lt;br /&gt;
&lt;br /&gt;
Text to be displayed at the top of the first page of the questionnaire. (i.e. instructions, background info, etc.)&lt;br /&gt;
&lt;br /&gt;
==Submission options==&lt;br /&gt;
&lt;br /&gt;
===Confirmation URL/page===&lt;br /&gt;
&lt;br /&gt;
Heading (in bold) and body text for the &amp;quot;Confirmation&amp;quot; page displayed after a user completes this questionnaire. (URL, if present, takes precedence over confirmation text.) If you leave this field empty, a default message will be displayed upon questionnaire completion (&#039;&#039;Thank you for completing this Questionnaire&#039;&#039;).&lt;br /&gt;
===Email===&lt;br /&gt;
Sends a copy of each submission to the specified address or addresses.&lt;br /&gt;
You can provide more than one address by separating them with commas.&lt;br /&gt;
Leave blank for no email backup.&lt;br /&gt;
&lt;br /&gt;
[[Category:Teacher]]&lt;/div&gt;</summary>
		<author><name>Rezeau</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/25/en/index.php?title=File:10-10-2013_10-07-55.jpg&amp;diff=106809</id>
		<title>File:10-10-2013 10-07-55.jpg</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/25/en/index.php?title=File:10-10-2013_10-07-55.jpg&amp;diff=106809"/>
		<updated>2013-10-10T08:44:57Z</updated>

		<summary type="html">&lt;p&gt;Rezeau: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Rezeau</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/25/en/index.php?title=Setting_up_a_questionnaire&amp;diff=106808</id>
		<title>Setting up a questionnaire</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/25/en/index.php?title=Setting_up_a_questionnaire&amp;diff=106808"/>
		<updated>2013-10-10T08:03:52Z</updated>

		<summary type="html">&lt;p&gt;Rezeau: /* Public questionnaire roll out to multiple courses */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Questionnaire}}&lt;br /&gt;
&lt;br /&gt;
If you are creating a new survey or editing an existing template you will be able to define the overall settings via the &#039;&#039;&#039;Advanced settings&#039;&#039;&#039; tab.&lt;br /&gt;
&lt;br /&gt;
==Content options==&lt;br /&gt;
===Questionnaire Type===&lt;br /&gt;
There are three types of questionnaires:&lt;br /&gt;
&lt;br /&gt;
# &#039;&#039;&#039; Private &#039;&#039;&#039; - belongs to the course it is defined in only. &amp;lt;br /&amp;gt; This is the standard Moodle module concept. You create a questionnaire and its questionnaire content for the course it is defined in. Editing teachers of that course can change the questionnaire and all teachers can review the results.&lt;br /&gt;
# &#039;&#039;&#039; Template &#039;&#039;&#039; - can be copied and edited. &amp;lt;br /&amp;gt; This type of questionnaire cannot be used directly, but its content can be copied into a new questionnaire and edited.&lt;br /&gt;
# &#039;&#039;&#039; Public &#039;&#039;&#039; - can be shared among courses. &amp;lt;br /&amp;gt; If a questionnaire has already been created (in another course on the same Moodle site) with the &amp;quot;public&amp;quot; setting, then you may use that &amp;quot;public&amp;quot; questionnaire in your own course(s). The number of settings available to such questionnaires is limited and you cannot edit its questions nor view the responses. &amp;lt;br /&amp;gt;&#039;&#039;&#039;&#039;&#039;Example&#039;&#039;&#039;&#039;&#039;.- If a public questionnaire has been created in course A, it can be &amp;quot;used&amp;quot; in courses B, C, ... All the responses from courses A, B, C, ... are collected in the public questionnaire created in course A (the original course where it was created) and are viewable there by the person (admin or teacher) who originally created it.&lt;br /&gt;
====Public questionnaire roll out to multiple courses====&lt;br /&gt;
&lt;br /&gt;
It is possible to create a Public questionnaire whose aliases can be placed in several courses. The student responses will only be visible in the course where the original Public questionnaire has been created. There are mainly 2 applications of this setup. &lt;br /&gt;
&lt;br /&gt;
case 1.- An admin may want to see course evaluations by students without the course teachers seeing those evaluations.&lt;br /&gt;
&lt;br /&gt;
case 2.- A teacher teaching several courses may want to &amp;quot;consolidate&amp;quot; the results of a questionnaire into one unique Public questionnaire.&lt;br /&gt;
&lt;br /&gt;
Here&#039;s how you do it (for case1)&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Create a course that will simply be a shell for any public questionnaires. Give it whatever title you like, e.g. PubQuestCourse. You can hide the course entirely. &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Create your questionnaire in this course. Call it e.g. &amp;quot;Public questionnaire01&amp;quot; On the &amp;quot;Advanced settings&amp;quot; page, select &#039;&#039;&#039;Public&#039;&#039;&#039; for the questionnaire type.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Add questions in this public questionnaire.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Navigate to the course where you want to place an alias of that Public questionnaire.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Add an activity or resource: Questionnaire. Edit all the various settings. Name it e.g. Questionnaire01. For Response options|Type, we suggest you select Respond once. &lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:10-10-2013 09-55-37.jpg]]&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
In the Content options section, in the radio buttons list, under Use public, the title of the public questionnaire you created in the other course (PubQuestCourse) will appear (e.g. Public questionnaire01): check its radio button. Then finish editing (click the Save and return to course button).&amp;lt;/li&amp;gt;&lt;br /&gt;
Note.- For options 4-6 above, an admin may ask individual teachers to create those questionnaires based on a public questionnaire in their own courses, giving them detailed instructions on how to proceed. Unfortunately at the moment there is no way to automatically deploy a public questionnaire to other courses, it has to be done &amp;quot;by hand&amp;quot;.&lt;br /&gt;
&amp;lt;li&amp;gt;Student responses will appear in the original questionnaire (e.g. &amp;quot;Public questionnaire01&amp;quot; in course PubQuestCourse), but will not be visible at all in the &amp;quot;local&amp;quot; questionnaire (alias). Teachers will not be able to respond to it or view their students&#039; responses.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Template questionnaire used in multiple courses====&lt;br /&gt;
&lt;br /&gt;
When the responses to your questionnaire should remain accessible in the course in which it resides, but the questionnaire itself will follow a standard format with the same questions, use a template-type of questionnaire. So instead of re-creating the questions for each questionnaire, you can apply the template questionnaire to each one you create.  &lt;br /&gt;
&lt;br /&gt;
Here&#039;s how you do it:&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Create a course that will simply be a shell for any template questionnaires. Give it whatever title you like. You can hide the course entirely. &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Create your questionnaire in this course. Be sure to select &#039;&#039;&#039;Template&#039;&#039;&#039; for the questionnaire type.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Build all of the questionnaire questions in this template questionnaire.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Navigate to the course where you want to place the questionnaire for respondents.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Select the option to add a questionnaire. Complete the creation screen. For Type, select whichever option you like. For Respondent Eligibility, select Students only. Then select the template questionnaire you created in the other course. &#039;&#039;&#039;For Questionnaire type, select Private.&#039;&#039;&#039; &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;After you save your changes, the same screen will appear. Note that the questionnaire type now says &amp;quot;Private&amp;quot; and the selected template questionnaire is shown below.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Test it out! Student responses will appear in the local questionnaire instead of in the template questionnaire you created outside of the course. &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you don&#039;t want your teachers to view or alter questionnaire responses, just define this in the Define Roles settings for Questionnaires. In Define Roles, you can limit teachers from being able to delete responses from the questionnaire, or be able to submit their own questionnaires or view responses.&lt;br /&gt;
&lt;br /&gt;
===Title/Sub-title===&lt;br /&gt;
&lt;br /&gt;
Title of the questionnaire, which will appear at the top of every page. By default Title is set to the questionnaire Name, but you can edit it as you like.&lt;br /&gt;
&lt;br /&gt;
===Additional Info===&lt;br /&gt;
&lt;br /&gt;
Text to be displayed at the top of the first page of the questionnaire. (i.e. instructions, background info, etc.)&lt;br /&gt;
&lt;br /&gt;
==Submission options==&lt;br /&gt;
&lt;br /&gt;
===Confirmation URL/page===&lt;br /&gt;
&lt;br /&gt;
Heading (in bold) and body text for the &amp;quot;Confirmation&amp;quot; page displayed after a user completes this questionnaire. (URL, if present, takes precedence over confirmation text.) If you leave this field empty, a default message will be displayed upon questionnaire completion (&#039;&#039;Thank you for completing this Questionnaire&#039;&#039;).&lt;br /&gt;
===Email===&lt;br /&gt;
Sends a copy of each submission to the specified address or addresses.&lt;br /&gt;
You can provide more than one address by separating them with commas.&lt;br /&gt;
Leave blank for no email backup.&lt;br /&gt;
&lt;br /&gt;
[[Category:Teacher]]&lt;/div&gt;</summary>
		<author><name>Rezeau</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/25/en/index.php?title=File:10-10-2013_09-55-37.jpg&amp;diff=106807</id>
		<title>File:10-10-2013 09-55-37.jpg</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/25/en/index.php?title=File:10-10-2013_09-55-37.jpg&amp;diff=106807"/>
		<updated>2013-10-10T08:00:26Z</updated>

		<summary type="html">&lt;p&gt;Rezeau: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Rezeau</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/25/en/index.php?title=Setting_up_a_questionnaire&amp;diff=106806</id>
		<title>Setting up a questionnaire</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/25/en/index.php?title=Setting_up_a_questionnaire&amp;diff=106806"/>
		<updated>2013-10-10T07:43:22Z</updated>

		<summary type="html">&lt;p&gt;Rezeau: /* Public questionnaire roll out to multiple courses */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Questionnaire}}&lt;br /&gt;
&lt;br /&gt;
If you are creating a new survey or editing an existing template you will be able to define the overall settings via the &#039;&#039;&#039;Advanced settings&#039;&#039;&#039; tab.&lt;br /&gt;
&lt;br /&gt;
==Content options==&lt;br /&gt;
===Questionnaire Type===&lt;br /&gt;
There are three types of questionnaires:&lt;br /&gt;
&lt;br /&gt;
# &#039;&#039;&#039; Private &#039;&#039;&#039; - belongs to the course it is defined in only. &amp;lt;br /&amp;gt; This is the standard Moodle module concept. You create a questionnaire and its questionnaire content for the course it is defined in. Editing teachers of that course can change the questionnaire and all teachers can review the results.&lt;br /&gt;
# &#039;&#039;&#039; Template &#039;&#039;&#039; - can be copied and edited. &amp;lt;br /&amp;gt; This type of questionnaire cannot be used directly, but its content can be copied into a new questionnaire and edited.&lt;br /&gt;
# &#039;&#039;&#039; Public &#039;&#039;&#039; - can be shared among courses. &amp;lt;br /&amp;gt; If a questionnaire has already been created (in another course on the same Moodle site) with the &amp;quot;public&amp;quot; setting, then you may use that &amp;quot;public&amp;quot; questionnaire in your own course(s). The number of settings available to such questionnaires is limited and you cannot edit its questions nor view the responses. &amp;lt;br /&amp;gt;&#039;&#039;&#039;&#039;&#039;Example&#039;&#039;&#039;&#039;&#039;.- If a public questionnaire has been created in course A, it can be &amp;quot;used&amp;quot; in courses B, C, ... All the responses from courses A, B, C, ... are collected in the public questionnaire created in course A (the original course where it was created) and are viewable there by the person (admin or teacher) who originally created it.&lt;br /&gt;
====Public questionnaire roll out to multiple courses====&lt;br /&gt;
&lt;br /&gt;
It is possible to create a Public questionnaire whose aliases can be placed in several courses. The student responses will only be visible in the course where the original Public questionnaire has been created. There are mainly 2 applications of this setup. &lt;br /&gt;
&lt;br /&gt;
case 1.- An admin may want to see course evaluations by students without the course teachers seeing those evaluations.&lt;br /&gt;
&lt;br /&gt;
case 2.- A teacher teaching several courses may want to &amp;quot;consolidate&amp;quot; the results of a questionnaire into one unique Public questionnaire.&lt;br /&gt;
&lt;br /&gt;
Here&#039;s how you do it (for case1)&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Create a course that will simply be a shell for any public questionnaires. Give it whatever title you like, e.g. PubQuestCourse. You can hide the course entirely. &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Create your questionnaire in this course. Call it e.g. &amp;quot;Public questionnaire01&amp;quot; On the &amp;quot;Advanced settings&amp;quot; page, select &#039;&#039;&#039;Public&#039;&#039;&#039; for the questionnaire type.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Build all of the questionnaire questions in this public questionnaire.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Navigate to the course where you want to place an alias of that Public questionnaire.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Add an activity or resource: Questionnaire. Edit all the various settings. Name it e.g. Questionnaire01. For Response options|Type, we suggest you select Respond once. &lt;br /&gt;
&amp;lt;li&amp;gt;In the Content options section, in the radio butons list, under Use public, the title of the public questionnaire you created in the other course (PubQuestCourse) will appear (e.g. Public questionnaire01): check its radio button. Then finish editing (click the Save and return to course button).&amp;lt;/li&amp;gt;&lt;br /&gt;
Note.- For options 4-6 above, an admin may ask individual teachers to create those questionnaires based on a public questionnaire in their own courses, giving them detailed instructions on how to proceed. Unfortunately at the moment there is no way to automatically deploy a public questionnaire to other courses, it has to be done &amp;quot;by hand&amp;quot;.&lt;br /&gt;
&amp;lt;li&amp;gt;Student responses will appear in the original questionnaire (e.g. &amp;quot;Public questionnaire01&amp;quot; in course PubQuestCourse), but will not be visible at all in the &amp;quot;local&amp;quot; questionnaire (alias). Teachers will not be able to respond to it or view their students&#039; responses.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Template questionnaire used in multiple courses====&lt;br /&gt;
&lt;br /&gt;
When the responses to your questionnaire should remain accessible in the course in which it resides, but the questionnaire itself will follow a standard format with the same questions, use a template-type of questionnaire. So instead of re-creating the questions for each questionnaire, you can apply the template questionnaire to each one you create.  &lt;br /&gt;
&lt;br /&gt;
Here&#039;s how you do it:&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Create a course that will simply be a shell for any template questionnaires. Give it whatever title you like. You can hide the course entirely. &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Create your questionnaire in this course. Be sure to select &#039;&#039;&#039;Template&#039;&#039;&#039; for the questionnaire type.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Build all of the questionnaire questions in this template questionnaire.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Navigate to the course where you want to place the questionnaire for respondents.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Select the option to add a questionnaire. Complete the creation screen. For Type, select whichever option you like. For Respondent Eligibility, select Students only. Then select the template questionnaire you created in the other course. &#039;&#039;&#039;For Questionnaire type, select Private.&#039;&#039;&#039; &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;After you save your changes, the same screen will appear. Note that the questionnaire type now says &amp;quot;Private&amp;quot; and the selected template questionnaire is shown below.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Test it out! Student responses will appear in the local questionnaire instead of in the template questionnaire you created outside of the course. &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you don&#039;t want your teachers to view or alter questionnaire responses, just define this in the Define Roles settings for Questionnaires. In Define Roles, you can limit teachers from being able to delete responses from the questionnaire, or be able to submit their own questionnaires or view responses.&lt;br /&gt;
&lt;br /&gt;
===Title/Sub-title===&lt;br /&gt;
&lt;br /&gt;
Title of the questionnaire, which will appear at the top of every page. By default Title is set to the questionnaire Name, but you can edit it as you like.&lt;br /&gt;
&lt;br /&gt;
===Additional Info===&lt;br /&gt;
&lt;br /&gt;
Text to be displayed at the top of the first page of the questionnaire. (i.e. instructions, background info, etc.)&lt;br /&gt;
&lt;br /&gt;
==Submission options==&lt;br /&gt;
&lt;br /&gt;
===Confirmation URL/page===&lt;br /&gt;
&lt;br /&gt;
Heading (in bold) and body text for the &amp;quot;Confirmation&amp;quot; page displayed after a user completes this questionnaire. (URL, if present, takes precedence over confirmation text.) If you leave this field empty, a default message will be displayed upon questionnaire completion (&#039;&#039;Thank you for completing this Questionnaire&#039;&#039;).&lt;br /&gt;
===Email===&lt;br /&gt;
Sends a copy of each submission to the specified address or addresses.&lt;br /&gt;
You can provide more than one address by separating them with commas.&lt;br /&gt;
Leave blank for no email backup.&lt;br /&gt;
&lt;br /&gt;
[[Category:Teacher]]&lt;/div&gt;</summary>
		<author><name>Rezeau</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/25/en/index.php?title=Viewing_Questionnaire_responses&amp;diff=106707</id>
		<title>Viewing Questionnaire responses</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/25/en/index.php?title=Viewing_Questionnaire_responses&amp;diff=106707"/>
		<updated>2013-09-28T08:25:48Z</updated>

		<summary type="html">&lt;p&gt;Rezeau: /* Rate question */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Questionnaire}}&lt;br /&gt;
&lt;br /&gt;
== All responses ==&lt;br /&gt;
On the Questionnaire Report page, users with the necessary permissions can view a statistical Summary of all the responses given to a Questionnaire instance so far.&lt;br /&gt;
&lt;br /&gt;
===Responses display by question type===&lt;br /&gt;
&lt;br /&gt;
====Numeric====&lt;br /&gt;
&lt;br /&gt;
[[Image:05-08-2013 16-34-46.jpg]]&lt;br /&gt;
&lt;br /&gt;
Column 1 displays the number of similar responses. Column 2 displays the responses given. The Total and Average cells are self-explanatory.&lt;br /&gt;
&lt;br /&gt;
====Yes/No====&lt;br /&gt;
&lt;br /&gt;
[[Image:05-08-2013 16-41-00.jpg]]&lt;br /&gt;
&lt;br /&gt;
This screenshot shows that out of 5 respondents who responded to this questionnaire, one did not answer this Yes/No question (which was not set as Required). 3 respondents answered Yes (75%) and 1 answered No (25%). Please note that the percentages are calculated on the actual responses, not the total of those who submitted the questionnaire.&lt;br /&gt;
&lt;br /&gt;
====Radio buttons====&lt;br /&gt;
&lt;br /&gt;
[[Image:05-08-2013 16-46-07.jpg]]&lt;br /&gt;
&lt;br /&gt;
This screenshot shows that 5 our 5 respondents who submitted this questionnaire answered that question (which was Required).&lt;br /&gt;
&lt;br /&gt;
====Check boxes====&lt;br /&gt;
&lt;br /&gt;
[[Image:05-08-2013 16-50-19.jpg]]&lt;br /&gt;
&lt;br /&gt;
This screenshot shows for instance that the Forum and Glossary activities are favoured by 4 respondents (out of 5 who responded), accounting for 27% of the choices each.&lt;br /&gt;
&lt;br /&gt;
====Rate question====&lt;br /&gt;
&lt;br /&gt;
[[Image:05-08-2013 16-54-34.jpg]]&lt;br /&gt;
&lt;br /&gt;
The statistics for Rate questions display 2 tables.&lt;br /&gt;
&lt;br /&gt;
The &#039;&#039;&#039;top table&#039;&#039;&#039; displays the Average rank for each feature. In this screenshot, the &amp;quot;Formatting your course&amp;quot; feature of Moodle was rated on average 1.4 on the 1 to 4 scale of difficulty, i.e. that feature was rated as between &amp;quot;Very...&amp;quot; and &amp;quot;Easy...&amp;quot; to use.&lt;br /&gt;
When creating that Rate question, the following values were entered for each &amp;quot;possible answer&amp;quot;:&lt;br /&gt;
&lt;br /&gt;
* 4=Very easy to use&lt;br /&gt;
* 3=Easy to use&lt;br /&gt;
* 2=Somewhat difficult to use&lt;br /&gt;
* 1=Difficult to use&lt;br /&gt;
&lt;br /&gt;
That is to say that the highest &amp;quot;mark&amp;quot; or &amp;quot;value&amp;quot; was given to the easiest choice.&lt;br /&gt;
So, the average values (between parentheses) immediately after the average ranks are here the inverse of the average ranks.&lt;br /&gt;
&lt;br /&gt;
The &#039;&#039;&#039;bottom table&#039;&#039;&#039; displays for each feature the number and percentage of respondents who selected each choice. For instance, for the &amp;quot;Formatting your course&amp;quot; feature, 3 respondents (60% of respondents to that question) selected the &amp;quot;Very easy to use&amp;quot; choice, and 2 respondents (40% of respondents to that question) selected the &amp;quot;Easy to use&amp;quot; choice. Nobody selected the &amp;quot;Difficult&amp;quot; choices for that feature.&lt;br /&gt;
&lt;br /&gt;
====Essay question====&lt;br /&gt;
&lt;br /&gt;
[[Image:05-08-2013 19-04-02.jpg]]&lt;br /&gt;
&lt;br /&gt;
{{New features}}&lt;br /&gt;
If the questionnaire is set to &amp;quot;full name&amp;quot; (i.e. non anonymous), the respondent&#039;s name will be displayed next to their Essay response. Click on the respondent&#039;s name to view their full submission.&lt;br /&gt;
&lt;br /&gt;
===Group filtering===&lt;br /&gt;
&lt;br /&gt;
[[Image:05-08-2013 16-24-25.jpg]]&lt;br /&gt;
&lt;br /&gt;
If the questionnaire is set to &#039;&#039;&#039;Group Mode&#039;&#039;&#039;: &#039;&#039;Visible groups&#039;&#039;, or is set to &#039;&#039;Separate groups&#039;&#039; and the current user has the &#039;&#039;moodle/site:accessallgroups capability&#039;&#039; (in the current context), and groups have been defined in the current course, then the user has access to a dropdown list of groups. This dropdown list enables the user to &amp;quot;filter&amp;quot; the questionnaire responses by groups. If the setting is &#039;&#039;&#039;Group Mode&#039;&#039;&#039;: &#039;&#039;Separate groups&#039;&#039;, then users who do not have the &#039;&#039;moodle/site:accessallgroups&#039;&#039; capability (usually students, or non-editing teachers, etc.) will only be able to view the responses of the group(s) they belong to.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;All participants&#039;&#039; includes responses from all the people who answered the questionnaire, including people not belonging to any group. &lt;br /&gt;
* &#039;&#039;Members of: All groups&#039;&#039; includes responses from people who belong to any group. &lt;br /&gt;
* And &#039;&#039;People not in a group&#039;&#039; is self-explanatory.;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Important&#039;&#039;&#039;.- After you have used the dropdown list to select a &amp;quot;set of people&amp;quot; for displaying their responses, the &amp;quot;filter&amp;quot; remains active for the following operations: &#039;&#039;&#039;Download in text format&#039;&#039;&#039;, &#039;&#039;&#039;Delete ALL Responses&#039;&#039;&#039; and &#039;&#039;&#039;View by Response&#039;&#039;&#039;. For example, if you selected to display &#039;&#039;&#039;All Responses&#039;&#039;&#039; for group &amp;quot;Sparrows&amp;quot; and then click on the &#039;&#039;&#039;Delete ALL Responses&#039;&#039;&#039; tab link, a confirmation message will ask you to confirm that you want to delete all responses for members of group &amp;quot;Sparrows&amp;quot; and only responses of those participants. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;.- If a participant belongs to more than one group, then deleting all the responses for &#039;&#039;one of the Groups&#039;&#039; he belongs to will of course delete his responses from &#039;&#039;all the other groups&#039;&#039; he belongs to.&lt;br /&gt;
&lt;br /&gt;
===List of responses===&lt;br /&gt;
==== View Individual Responses ====&lt;br /&gt;
&lt;br /&gt;
If the questionnaire &#039;&#039;&#039;Respondent Type&#039;&#039;&#039; was set as “fullname”, users with the necessary permissions (usually only teachers or tutors) can view each response individually. &lt;br /&gt;
On the List of responses page, each respondent&#039;s name is displayed, in alphabetical order of the family name.&lt;br /&gt;
Upon mouseover, a tooltip displays the submission time-stamp. This is especially useful in case the questionnaire is set to answer more than once and some students have submitted more than one response.&lt;br /&gt;
Click on a respondent&#039;s name to display their submission to the questionnaire.&lt;br /&gt;
&lt;br /&gt;
====Individual Responses Navigation====&lt;br /&gt;
[[File:05-08-2013 18-46-20.jpg]]&lt;br /&gt;
{{New features}}&lt;br /&gt;
When you are viewing a respondent&#039;s individual response, use the navigation bar at the top to go to the Previous (in alphabetical order) or Next response. You can go back to the List of responses page at any time.&lt;br /&gt;
&lt;br /&gt;
==== Print this Response ====&lt;br /&gt;
Opens printer-friendly window with current Response.&lt;br /&gt;
&lt;br /&gt;
==== Delete this Response ====&lt;br /&gt;
Deletes current response.&lt;br /&gt;
&lt;br /&gt;
=== Order Responses ===&lt;br /&gt;
When displaying All Responses you can order the choices by number of responses (the Average column) for the following 4 types of questions.&lt;br /&gt;
&lt;br /&gt;
* single choices radio button &lt;br /&gt;
* single choices drop-down list &lt;br /&gt;
* multiple choices (check boxes) &lt;br /&gt;
* rate questions (including Likert scales). &lt;br /&gt;
&lt;br /&gt;
When you arrive on the All Responses page, by default all responses are ordered in the order that the questionnaire creator entered the question choices. You can choose to order them by ascending or descending order.&lt;br /&gt;
&lt;br /&gt;
=== Delete All Responses ===&lt;br /&gt;
Deletes all responses in current questionnaire instance. Can be used to “reset” a questionnaire if you no longer need the current data.&lt;br /&gt;
&lt;br /&gt;
=== Download in text format  ===&lt;br /&gt;
This feature enables you to save all the responses of a questionnaire to a text file (CSV). This file can then be imported into a spreadsheet (e.g. MS Excel or Open Office Calc) or a statistical package for further processing the data.&lt;br /&gt;
&lt;br /&gt;
====Options for text download====&lt;br /&gt;
On the &#039;&#039;&#039;Download in text format&#039;&#039;&#039; page you have a set of 2 options which only concern the output of the radio buttons/single answer question type. Here is how these options work.&lt;br /&gt;
&lt;br /&gt;
Question text: What is your favorite color? Choice: blue, green, red.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border-spacing:0;&amp;quot;&lt;br /&gt;
| style=&amp;quot;border-top:0.092cm double #808080;border-bottom:0.092cm double #808080;border-left:0.092cm double #808080;border-right:none;padding:0.049cm;&amp;quot;| selected color &lt;br /&gt;
| style=&amp;quot;border-top:0.092cm double #808080;border-bottom:0.092cm double #808080;border-left:0.092cm double #808080;border-right:none;padding:0.049cm;&amp;quot;| blue&lt;br /&gt;
| style=&amp;quot;border-top:0.092cm double #808080;border-bottom:0.092cm double #808080;border-left:0.092cm double #808080;border-right:none;padding:0.049cm;&amp;quot;| green&lt;br /&gt;
| style=&amp;quot;border:0.092cm double #808080;padding:0.049cm;&amp;quot;| red&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.092cm double #808080;border-left:0.092cm double #808080;border-right:none;padding:0.049cm;&amp;quot;| Include choice codes&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.092cm double #808080;border-left:0.092cm double #808080;border-right:none;padding:0.049cm;&amp;quot;| 1&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.092cm double #808080;border-left:0.092cm double #808080;border-right:none;padding:0.049cm;&amp;quot;| 2&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.092cm double #808080;border-left:0.092cm double #808080;border-right:0.092cm double #808080;padding:0.049cm;&amp;quot;| 3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.092cm double #808080;border-left:0.092cm double #808080;border-right:none;padding:0.049cm;&amp;quot;| Include choice text&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.092cm double #808080;border-left:0.092cm double #808080;border-right:none;padding:0.049cm;&amp;quot;| blue&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.092cm double #808080;border-left:0.092cm double #808080;border-right:none;padding:0.049cm;&amp;quot;| green&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.092cm double #808080;border-left:0.092cm double #808080;border-right:0.092cm double #808080;padding:0.049cm;&amp;quot;| red&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.092cm double #808080;border-left:0.092cm double #808080;border-right:none;padding:0.049cm;&amp;quot;| Include choice codes + Include choice text &lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.092cm double #808080;border-left:0.092cm double #808080;border-right:none;padding:0.049cm;&amp;quot;| 1&amp;amp;nbsp;:&amp;amp;nbsp;blue &lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.092cm double #808080;border-left:0.092cm double #808080;border-right:none;padding:0.049cm;&amp;quot;| 2&amp;amp;nbsp;:&amp;amp;nbsp;green &lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.092cm double #808080;border-left:0.092cm double #808080;border-right:0.092cm double #808080;padding:0.049cm;&amp;quot;| 3&amp;amp;nbsp;:&amp;amp;nbsp;red &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.092cm double #808080;border-left:0.092cm double #808080;border-right:none;padding:0.049cm;&amp;quot;| No Include box ticked = same as include choice text box ticked &lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.092cm double #808080;border-left:0.092cm double #808080;border-right:none;padding:0.049cm;&amp;quot;| blue&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.092cm double #808080;border-left:0.092cm double #808080;border-right:none;padding:0.049cm;&amp;quot;| green&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.092cm double #808080;border-left:0.092cm double #808080;border-right:0.092cm double #808080;padding:0.049cm;&amp;quot;| red&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
Note that these output options are over-ridden in case you used the &amp;quot;hidden&amp;quot; option when you created your radio button questions, i.e. the named values will be exported as data.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border-spacing:0;&amp;quot;&lt;br /&gt;
| style=&amp;quot;width:33%; border-top:0.092cm double #808080;border-bottom:0.092cm double #808080;border-left:0.092cm double #808080;border-right:none;padding:0.132cm;&amp;quot;| &#039;&#039;Possible answers: &#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Red=the color of blood&lt;br /&gt;
&lt;br /&gt;
Blue=the color of the sky&lt;br /&gt;
&lt;br /&gt;
Black=opposite of white &lt;br /&gt;
| style=&amp;quot;width:33%; border-top:0.092cm double #808080;border-bottom:0.092cm double #808080;border-left:0.092cm double #808080;border-right:none;padding:0.132cm;&amp;quot;| &#039;&#039;&#039;What is your favorite color?&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
the color of blood&lt;br /&gt;
&lt;br /&gt;
the color of the sky&lt;br /&gt;
&lt;br /&gt;
opposite of white &lt;br /&gt;
| style=&amp;quot;width:33%; border:0.092cm double #808080;padding:0.132cm;&amp;quot;| &#039;&#039;Irrespective of the Include choice codes/text options selected on the Download in text format page, this will output the values &#039;&#039;&#039;Red&#039;&#039;&#039;, &#039;&#039;&#039;Blue&#039;&#039;&#039; or &#039;&#039;&#039;Black&#039;&#039;&#039; to the CSV file.&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====The CSV file (how to use it)====&lt;br /&gt;
The text format available here is of the so-called CSV (comma separated values) type. However, for more universal use, the &#039;&#039;&#039;tab&#039;&#039;&#039; (tabulation) separator is used, rather than the comma or semi-colon. &lt;br /&gt;
&lt;br /&gt;
When you click on the &#039;&#039;&#039;Download in text format&#039;&#039;&#039; button, a window opens, asking you whether you&#039;d like to save the data file or open it. Select &#039;&#039;save&#039;&#039;. The data file is named after the name of the current quiz, however you can save it under a different name. The proposed data file extension is *.txt, but you &#039;&#039;can&#039;&#039; rename it. Note that you &#039;&#039;must&#039;&#039; rename it with a *.csv extension for import into &#039;&#039;Open Office Calc&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Then go to your external software, and open the file into it. The following operations depend on the software you are using and on a number of other parameters. If you are using a non-ascii language interface in Moodle or you are using the English language but some of your questionnaire questions (or responses) have non-ascii characters in them, then &#039;&#039;Excel&#039;&#039; (or &#039;&#039;Open Office Calc&#039;&#039;) might be able to &#039;&#039;automatically detect&#039;&#039; that your file is UTF-8 encoded, and decode it accordingly. Please note that if most of your data file is using standard ascii characters and only a very small number of non-ascii characters are present, the automatic detection will not work, and you will have to &#039;&#039;manually&#039;&#039; select the UTF-8 encoding in the list provided by your software.&lt;br /&gt;
&lt;br /&gt;
At the top of the &amp;quot;table&amp;quot; imported into e.g. &#039;&#039;Excel&#039;&#039;, the first line contains the names of all the question fields. This is followed by one line per response. The first 7 fields are as follows (in the English version): &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border-spacing:0;&amp;quot;&lt;br /&gt;
| style=&amp;quot;border-top:0.092cm double #808080;border-bottom:0.092cm double #808080;border-left:0.092cm double #808080;border-right:none;padding:0.079cm;&amp;quot;| Response&lt;br /&gt;
| style=&amp;quot;border-top:0.092cm double #808080;border-bottom:0.092cm double #808080;border-left:0.092cm double #808080;border-right:none;padding:0.079cm;&amp;quot;| Submitted on:&lt;br /&gt;
| style=&amp;quot;border-top:0.092cm double #808080;border-bottom:0.092cm double #808080;border-left:0.092cm double #808080;border-right:none;padding:0.079cm;&amp;quot;| Institution&lt;br /&gt;
| style=&amp;quot;border-top:0.092cm double #808080;border-bottom:0.092cm double #808080;border-left:0.092cm double #808080;border-right:none;padding:0.079cm;&amp;quot;| Department&lt;br /&gt;
| style=&amp;quot;border-top:0.092cm double #808080;border-bottom:0.092cm double #808080;border-left:0.092cm double #808080;border-right:none;padding:0.079cm;&amp;quot;| Course&lt;br /&gt;
| style=&amp;quot;border-top:0.092cm double #808080;border-bottom:0.092cm double #808080;border-left:0.092cm double #808080;border-right:none;padding:0.079cm;&amp;quot;| Group&lt;br /&gt;
| style=&amp;quot;border-top:0.092cm double #808080;border-bottom:0.092cm double #808080;border-left:0.092cm double #808080;border-right:none;padding:0.079cm;&amp;quot;| ID&lt;br /&gt;
| style=&amp;quot;border-top:0.092cm double #808080;border-bottom:0.092cm double #808080;border-left:0.092cm double #808080;border-right:none;padding:0.079cm;&amp;quot;| Full name&lt;br /&gt;
| style=&amp;quot;border:0.092cm double #808080;padding:0.079cm;&amp;quot;| Username&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
The submitted_date field contains the date (and time, i.e. hour minutes seconds) when the response was submitted by respondent. For example: 15/09/2007 15:57. Normally you should be able to use Excel cell formatting to display such dates at will, in your own language formatting conventions, including the seconds, and if you wish full day or months names, while retaining the sorting facility.&lt;br /&gt;
&lt;br /&gt;
If the questionnaire was set as &amp;quot;anonymous responses&amp;quot;, the ID and Username will be empty and the Full name field will display &amp;quot;Anonymous&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
== Your responses ==&lt;br /&gt;
On the Questionnaire Report page, users with the necessary permissions can view their own responses on the page entitled “Your results”. Usually students will be allowed to view their own responses.&lt;br /&gt;
&lt;br /&gt;
If the questionnaire&#039;s settings allow more than one response and more than one response have been entered by the current user, then all of the features of the “View All responses” explained above apply.&lt;br /&gt;
&lt;br /&gt;
However, it is not possible to delete individual responses in this “Your responses” view. And the Download as text format is not available to users with the student role.&lt;br /&gt;
&lt;br /&gt;
=== All your responses ===&lt;br /&gt;
This provides a view of all of a respondent&#039;s responses, on successive dates. This feature may be useful if a questionnaire is used as a kind of portfolio.&lt;br /&gt;
&lt;br /&gt;
== Show Non-Respondents ==&lt;br /&gt;
{{New features}}&lt;br /&gt;
&lt;br /&gt;
This feature allows the teacher to see students who have not yet responded. A reminder message can be sent to individuals or to everyone that hasn’t submitted responses. &lt;br /&gt;
&lt;br /&gt;
The list of &amp;quot;non-respondents&amp;quot; can be filtered by Group (if Groups are enabled for this course and activity).&lt;br /&gt;
&lt;br /&gt;
If the questionnaire&#039;s &#039;&#039;&#039;Save/Resume answers&#039;&#039;&#039; is set to Yes, then the list shows those students who have started but not yet submitted their questionnaire responses.&lt;br /&gt;
&lt;br /&gt;
[[Image:05-08-2013 16-15-58.jpg]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Teacher]]&lt;/div&gt;</summary>
		<author><name>Rezeau</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/25/en/index.php?title=Viewing_Questionnaire_responses&amp;diff=106706</id>
		<title>Viewing Questionnaire responses</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/25/en/index.php?title=Viewing_Questionnaire_responses&amp;diff=106706"/>
		<updated>2013-09-28T08:21:07Z</updated>

		<summary type="html">&lt;p&gt;Rezeau: /* Yes/No */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Questionnaire}}&lt;br /&gt;
&lt;br /&gt;
== All responses ==&lt;br /&gt;
On the Questionnaire Report page, users with the necessary permissions can view a statistical Summary of all the responses given to a Questionnaire instance so far.&lt;br /&gt;
&lt;br /&gt;
===Responses display by question type===&lt;br /&gt;
&lt;br /&gt;
====Numeric====&lt;br /&gt;
&lt;br /&gt;
[[Image:05-08-2013 16-34-46.jpg]]&lt;br /&gt;
&lt;br /&gt;
Column 1 displays the number of similar responses. Column 2 displays the responses given. The Total and Average cells are self-explanatory.&lt;br /&gt;
&lt;br /&gt;
====Yes/No====&lt;br /&gt;
&lt;br /&gt;
[[Image:05-08-2013 16-41-00.jpg]]&lt;br /&gt;
&lt;br /&gt;
This screenshot shows that out of 5 respondents who responded to this questionnaire, one did not answer this Yes/No question (which was not set as Required). 3 respondents answered Yes (75%) and 1 answered No (25%). Please note that the percentages are calculated on the actual responses, not the total of those who submitted the questionnaire.&lt;br /&gt;
&lt;br /&gt;
====Radio buttons====&lt;br /&gt;
&lt;br /&gt;
[[Image:05-08-2013 16-46-07.jpg]]&lt;br /&gt;
&lt;br /&gt;
This screenshot shows that 5 our 5 respondents who submitted this questionnaire answered that question (which was Required).&lt;br /&gt;
&lt;br /&gt;
====Check boxes====&lt;br /&gt;
&lt;br /&gt;
[[Image:05-08-2013 16-50-19.jpg]]&lt;br /&gt;
&lt;br /&gt;
This screenshot shows for instance that the Forum and Glossary activities are favoured by 4 respondents (out of 5 who responded), accounting for 27% of the choices each.&lt;br /&gt;
&lt;br /&gt;
====Rate question====&lt;br /&gt;
&lt;br /&gt;
[[Image:05-08-2013 16-54-34.jpg]]&lt;br /&gt;
&lt;br /&gt;
The statistics for Rate questions display 2 tables.&lt;br /&gt;
&lt;br /&gt;
The &#039;&#039;&#039;top table&#039;&#039;&#039; displays the Average rank for each feature. In this screenshot, the &amp;quot;Formatting your course&amp;quot; feature of Moodle was rated on average 1.4 on the 1 to 4 scale of difficulty, i.e. that feature was rated as between &amp;quot;Very...&amp;quot; and &amp;quot;Easy...&amp;quot; to use.&lt;br /&gt;
When creating that Rate question, the following values were entered for each &amp;quot;possible answer&amp;quot;:&lt;br /&gt;
4=Very easy to use&amp;lt;/ br&amp;gt;&lt;br /&gt;
3=Easy to use&amp;lt;/ br&amp;gt;&lt;br /&gt;
2=Somewhat difficult to use&amp;lt;/ br&amp;gt;&lt;br /&gt;
1=Difficult to use&amp;lt;/ br&amp;gt;&lt;br /&gt;
That is to say that the highest &amp;quot;mark&amp;quot; or &amp;quot;value&amp;quot; was given to the easiest choice.&lt;br /&gt;
So, the average values (between parentheses) immediately after the average ranks are here the inverse of the average ranks.&lt;br /&gt;
&lt;br /&gt;
The &#039;&#039;&#039;bottom table&#039;&#039;&#039; displays for each feature the number and percentage of respondents who selected each choice. For instance, for the &amp;quot;Formatting your course&amp;quot; feature, 3 respondents (60% of respondents to that question) selected the &amp;quot;Very easy to use&amp;quot; choice, and 2 respondents (40% of respondents to that question) selected the &amp;quot;Easy to use&amp;quot; choice. Nobody selected the &amp;quot;Difficult&amp;quot; choices for that feature.&lt;br /&gt;
&lt;br /&gt;
====Essay question====&lt;br /&gt;
&lt;br /&gt;
[[Image:05-08-2013 19-04-02.jpg]]&lt;br /&gt;
&lt;br /&gt;
{{New features}}&lt;br /&gt;
If the questionnaire is set to &amp;quot;full name&amp;quot; (i.e. non anonymous), the respondent&#039;s name will be displayed next to their Essay response. Click on the respondent&#039;s name to view their full submission.&lt;br /&gt;
&lt;br /&gt;
===Group filtering===&lt;br /&gt;
&lt;br /&gt;
[[Image:05-08-2013 16-24-25.jpg]]&lt;br /&gt;
&lt;br /&gt;
If the questionnaire is set to &#039;&#039;&#039;Group Mode&#039;&#039;&#039;: &#039;&#039;Visible groups&#039;&#039;, or is set to &#039;&#039;Separate groups&#039;&#039; and the current user has the &#039;&#039;moodle/site:accessallgroups capability&#039;&#039; (in the current context), and groups have been defined in the current course, then the user has access to a dropdown list of groups. This dropdown list enables the user to &amp;quot;filter&amp;quot; the questionnaire responses by groups. If the setting is &#039;&#039;&#039;Group Mode&#039;&#039;&#039;: &#039;&#039;Separate groups&#039;&#039;, then users who do not have the &#039;&#039;moodle/site:accessallgroups&#039;&#039; capability (usually students, or non-editing teachers, etc.) will only be able to view the responses of the group(s) they belong to.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;All participants&#039;&#039; includes responses from all the people who answered the questionnaire, including people not belonging to any group. &lt;br /&gt;
* &#039;&#039;Members of: All groups&#039;&#039; includes responses from people who belong to any group. &lt;br /&gt;
* And &#039;&#039;People not in a group&#039;&#039; is self-explanatory.;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Important&#039;&#039;&#039;.- After you have used the dropdown list to select a &amp;quot;set of people&amp;quot; for displaying their responses, the &amp;quot;filter&amp;quot; remains active for the following operations: &#039;&#039;&#039;Download in text format&#039;&#039;&#039;, &#039;&#039;&#039;Delete ALL Responses&#039;&#039;&#039; and &#039;&#039;&#039;View by Response&#039;&#039;&#039;. For example, if you selected to display &#039;&#039;&#039;All Responses&#039;&#039;&#039; for group &amp;quot;Sparrows&amp;quot; and then click on the &#039;&#039;&#039;Delete ALL Responses&#039;&#039;&#039; tab link, a confirmation message will ask you to confirm that you want to delete all responses for members of group &amp;quot;Sparrows&amp;quot; and only responses of those participants. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;.- If a participant belongs to more than one group, then deleting all the responses for &#039;&#039;one of the Groups&#039;&#039; he belongs to will of course delete his responses from &#039;&#039;all the other groups&#039;&#039; he belongs to.&lt;br /&gt;
&lt;br /&gt;
===List of responses===&lt;br /&gt;
==== View Individual Responses ====&lt;br /&gt;
&lt;br /&gt;
If the questionnaire &#039;&#039;&#039;Respondent Type&#039;&#039;&#039; was set as “fullname”, users with the necessary permissions (usually only teachers or tutors) can view each response individually. &lt;br /&gt;
On the List of responses page, each respondent&#039;s name is displayed, in alphabetical order of the family name.&lt;br /&gt;
Upon mouseover, a tooltip displays the submission time-stamp. This is especially useful in case the questionnaire is set to answer more than once and some students have submitted more than one response.&lt;br /&gt;
Click on a respondent&#039;s name to display their submission to the questionnaire.&lt;br /&gt;
&lt;br /&gt;
====Individual Responses Navigation====&lt;br /&gt;
[[File:05-08-2013 18-46-20.jpg]]&lt;br /&gt;
{{New features}}&lt;br /&gt;
When you are viewing a respondent&#039;s individual response, use the navigation bar at the top to go to the Previous (in alphabetical order) or Next response. You can go back to the List of responses page at any time.&lt;br /&gt;
&lt;br /&gt;
==== Print this Response ====&lt;br /&gt;
Opens printer-friendly window with current Response.&lt;br /&gt;
&lt;br /&gt;
==== Delete this Response ====&lt;br /&gt;
Deletes current response.&lt;br /&gt;
&lt;br /&gt;
=== Order Responses ===&lt;br /&gt;
When displaying All Responses you can order the choices by number of responses (the Average column) for the following 4 types of questions.&lt;br /&gt;
&lt;br /&gt;
* single choices radio button &lt;br /&gt;
* single choices drop-down list &lt;br /&gt;
* multiple choices (check boxes) &lt;br /&gt;
* rate questions (including Likert scales). &lt;br /&gt;
&lt;br /&gt;
When you arrive on the All Responses page, by default all responses are ordered in the order that the questionnaire creator entered the question choices. You can choose to order them by ascending or descending order.&lt;br /&gt;
&lt;br /&gt;
=== Delete All Responses ===&lt;br /&gt;
Deletes all responses in current questionnaire instance. Can be used to “reset” a questionnaire if you no longer need the current data.&lt;br /&gt;
&lt;br /&gt;
=== Download in text format  ===&lt;br /&gt;
This feature enables you to save all the responses of a questionnaire to a text file (CSV). This file can then be imported into a spreadsheet (e.g. MS Excel or Open Office Calc) or a statistical package for further processing the data.&lt;br /&gt;
&lt;br /&gt;
====Options for text download====&lt;br /&gt;
On the &#039;&#039;&#039;Download in text format&#039;&#039;&#039; page you have a set of 2 options which only concern the output of the radio buttons/single answer question type. Here is how these options work.&lt;br /&gt;
&lt;br /&gt;
Question text: What is your favorite color? Choice: blue, green, red.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border-spacing:0;&amp;quot;&lt;br /&gt;
| style=&amp;quot;border-top:0.092cm double #808080;border-bottom:0.092cm double #808080;border-left:0.092cm double #808080;border-right:none;padding:0.049cm;&amp;quot;| selected color &lt;br /&gt;
| style=&amp;quot;border-top:0.092cm double #808080;border-bottom:0.092cm double #808080;border-left:0.092cm double #808080;border-right:none;padding:0.049cm;&amp;quot;| blue&lt;br /&gt;
| style=&amp;quot;border-top:0.092cm double #808080;border-bottom:0.092cm double #808080;border-left:0.092cm double #808080;border-right:none;padding:0.049cm;&amp;quot;| green&lt;br /&gt;
| style=&amp;quot;border:0.092cm double #808080;padding:0.049cm;&amp;quot;| red&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.092cm double #808080;border-left:0.092cm double #808080;border-right:none;padding:0.049cm;&amp;quot;| Include choice codes&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.092cm double #808080;border-left:0.092cm double #808080;border-right:none;padding:0.049cm;&amp;quot;| 1&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.092cm double #808080;border-left:0.092cm double #808080;border-right:none;padding:0.049cm;&amp;quot;| 2&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.092cm double #808080;border-left:0.092cm double #808080;border-right:0.092cm double #808080;padding:0.049cm;&amp;quot;| 3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.092cm double #808080;border-left:0.092cm double #808080;border-right:none;padding:0.049cm;&amp;quot;| Include choice text&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.092cm double #808080;border-left:0.092cm double #808080;border-right:none;padding:0.049cm;&amp;quot;| blue&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.092cm double #808080;border-left:0.092cm double #808080;border-right:none;padding:0.049cm;&amp;quot;| green&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.092cm double #808080;border-left:0.092cm double #808080;border-right:0.092cm double #808080;padding:0.049cm;&amp;quot;| red&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.092cm double #808080;border-left:0.092cm double #808080;border-right:none;padding:0.049cm;&amp;quot;| Include choice codes + Include choice text &lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.092cm double #808080;border-left:0.092cm double #808080;border-right:none;padding:0.049cm;&amp;quot;| 1&amp;amp;nbsp;:&amp;amp;nbsp;blue &lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.092cm double #808080;border-left:0.092cm double #808080;border-right:none;padding:0.049cm;&amp;quot;| 2&amp;amp;nbsp;:&amp;amp;nbsp;green &lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.092cm double #808080;border-left:0.092cm double #808080;border-right:0.092cm double #808080;padding:0.049cm;&amp;quot;| 3&amp;amp;nbsp;:&amp;amp;nbsp;red &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.092cm double #808080;border-left:0.092cm double #808080;border-right:none;padding:0.049cm;&amp;quot;| No Include box ticked = same as include choice text box ticked &lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.092cm double #808080;border-left:0.092cm double #808080;border-right:none;padding:0.049cm;&amp;quot;| blue&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.092cm double #808080;border-left:0.092cm double #808080;border-right:none;padding:0.049cm;&amp;quot;| green&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.092cm double #808080;border-left:0.092cm double #808080;border-right:0.092cm double #808080;padding:0.049cm;&amp;quot;| red&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
Note that these output options are over-ridden in case you used the &amp;quot;hidden&amp;quot; option when you created your radio button questions, i.e. the named values will be exported as data.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border-spacing:0;&amp;quot;&lt;br /&gt;
| style=&amp;quot;width:33%; border-top:0.092cm double #808080;border-bottom:0.092cm double #808080;border-left:0.092cm double #808080;border-right:none;padding:0.132cm;&amp;quot;| &#039;&#039;Possible answers: &#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Red=the color of blood&lt;br /&gt;
&lt;br /&gt;
Blue=the color of the sky&lt;br /&gt;
&lt;br /&gt;
Black=opposite of white &lt;br /&gt;
| style=&amp;quot;width:33%; border-top:0.092cm double #808080;border-bottom:0.092cm double #808080;border-left:0.092cm double #808080;border-right:none;padding:0.132cm;&amp;quot;| &#039;&#039;&#039;What is your favorite color?&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
the color of blood&lt;br /&gt;
&lt;br /&gt;
the color of the sky&lt;br /&gt;
&lt;br /&gt;
opposite of white &lt;br /&gt;
| style=&amp;quot;width:33%; border:0.092cm double #808080;padding:0.132cm;&amp;quot;| &#039;&#039;Irrespective of the Include choice codes/text options selected on the Download in text format page, this will output the values &#039;&#039;&#039;Red&#039;&#039;&#039;, &#039;&#039;&#039;Blue&#039;&#039;&#039; or &#039;&#039;&#039;Black&#039;&#039;&#039; to the CSV file.&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====The CSV file (how to use it)====&lt;br /&gt;
The text format available here is of the so-called CSV (comma separated values) type. However, for more universal use, the &#039;&#039;&#039;tab&#039;&#039;&#039; (tabulation) separator is used, rather than the comma or semi-colon. &lt;br /&gt;
&lt;br /&gt;
When you click on the &#039;&#039;&#039;Download in text format&#039;&#039;&#039; button, a window opens, asking you whether you&#039;d like to save the data file or open it. Select &#039;&#039;save&#039;&#039;. The data file is named after the name of the current quiz, however you can save it under a different name. The proposed data file extension is *.txt, but you &#039;&#039;can&#039;&#039; rename it. Note that you &#039;&#039;must&#039;&#039; rename it with a *.csv extension for import into &#039;&#039;Open Office Calc&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Then go to your external software, and open the file into it. The following operations depend on the software you are using and on a number of other parameters. If you are using a non-ascii language interface in Moodle or you are using the English language but some of your questionnaire questions (or responses) have non-ascii characters in them, then &#039;&#039;Excel&#039;&#039; (or &#039;&#039;Open Office Calc&#039;&#039;) might be able to &#039;&#039;automatically detect&#039;&#039; that your file is UTF-8 encoded, and decode it accordingly. Please note that if most of your data file is using standard ascii characters and only a very small number of non-ascii characters are present, the automatic detection will not work, and you will have to &#039;&#039;manually&#039;&#039; select the UTF-8 encoding in the list provided by your software.&lt;br /&gt;
&lt;br /&gt;
At the top of the &amp;quot;table&amp;quot; imported into e.g. &#039;&#039;Excel&#039;&#039;, the first line contains the names of all the question fields. This is followed by one line per response. The first 7 fields are as follows (in the English version): &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border-spacing:0;&amp;quot;&lt;br /&gt;
| style=&amp;quot;border-top:0.092cm double #808080;border-bottom:0.092cm double #808080;border-left:0.092cm double #808080;border-right:none;padding:0.079cm;&amp;quot;| Response&lt;br /&gt;
| style=&amp;quot;border-top:0.092cm double #808080;border-bottom:0.092cm double #808080;border-left:0.092cm double #808080;border-right:none;padding:0.079cm;&amp;quot;| Submitted on:&lt;br /&gt;
| style=&amp;quot;border-top:0.092cm double #808080;border-bottom:0.092cm double #808080;border-left:0.092cm double #808080;border-right:none;padding:0.079cm;&amp;quot;| Institution&lt;br /&gt;
| style=&amp;quot;border-top:0.092cm double #808080;border-bottom:0.092cm double #808080;border-left:0.092cm double #808080;border-right:none;padding:0.079cm;&amp;quot;| Department&lt;br /&gt;
| style=&amp;quot;border-top:0.092cm double #808080;border-bottom:0.092cm double #808080;border-left:0.092cm double #808080;border-right:none;padding:0.079cm;&amp;quot;| Course&lt;br /&gt;
| style=&amp;quot;border-top:0.092cm double #808080;border-bottom:0.092cm double #808080;border-left:0.092cm double #808080;border-right:none;padding:0.079cm;&amp;quot;| Group&lt;br /&gt;
| style=&amp;quot;border-top:0.092cm double #808080;border-bottom:0.092cm double #808080;border-left:0.092cm double #808080;border-right:none;padding:0.079cm;&amp;quot;| ID&lt;br /&gt;
| style=&amp;quot;border-top:0.092cm double #808080;border-bottom:0.092cm double #808080;border-left:0.092cm double #808080;border-right:none;padding:0.079cm;&amp;quot;| Full name&lt;br /&gt;
| style=&amp;quot;border:0.092cm double #808080;padding:0.079cm;&amp;quot;| Username&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
The submitted_date field contains the date (and time, i.e. hour minutes seconds) when the response was submitted by respondent. For example: 15/09/2007 15:57. Normally you should be able to use Excel cell formatting to display such dates at will, in your own language formatting conventions, including the seconds, and if you wish full day or months names, while retaining the sorting facility.&lt;br /&gt;
&lt;br /&gt;
If the questionnaire was set as &amp;quot;anonymous responses&amp;quot;, the ID and Username will be empty and the Full name field will display &amp;quot;Anonymous&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
== Your responses ==&lt;br /&gt;
On the Questionnaire Report page, users with the necessary permissions can view their own responses on the page entitled “Your results”. Usually students will be allowed to view their own responses.&lt;br /&gt;
&lt;br /&gt;
If the questionnaire&#039;s settings allow more than one response and more than one response have been entered by the current user, then all of the features of the “View All responses” explained above apply.&lt;br /&gt;
&lt;br /&gt;
However, it is not possible to delete individual responses in this “Your responses” view. And the Download as text format is not available to users with the student role.&lt;br /&gt;
&lt;br /&gt;
=== All your responses ===&lt;br /&gt;
This provides a view of all of a respondent&#039;s responses, on successive dates. This feature may be useful if a questionnaire is used as a kind of portfolio.&lt;br /&gt;
&lt;br /&gt;
== Show Non-Respondents ==&lt;br /&gt;
{{New features}}&lt;br /&gt;
&lt;br /&gt;
This feature allows the teacher to see students who have not yet responded. A reminder message can be sent to individuals or to everyone that hasn’t submitted responses. &lt;br /&gt;
&lt;br /&gt;
The list of &amp;quot;non-respondents&amp;quot; can be filtered by Group (if Groups are enabled for this course and activity).&lt;br /&gt;
&lt;br /&gt;
If the questionnaire&#039;s &#039;&#039;&#039;Save/Resume answers&#039;&#039;&#039; is set to Yes, then the list shows those students who have started but not yet submitted their questionnaire responses.&lt;br /&gt;
&lt;br /&gt;
[[Image:05-08-2013 16-15-58.jpg]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Teacher]]&lt;/div&gt;</summary>
		<author><name>Rezeau</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/25/en/index.php?title=Questionnaire_Conditional_branching&amp;diff=106705</id>
		<title>Questionnaire Conditional branching</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/25/en/index.php?title=Questionnaire_Conditional_branching&amp;diff=106705"/>
		<updated>2013-09-28T08:16:40Z</updated>

		<summary type="html">&lt;p&gt;Rezeau: /* Individual Responses Report */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Questionnaire}}&lt;br /&gt;
{{New features}}&lt;br /&gt;
==Overview==&lt;br /&gt;
&lt;br /&gt;
===Definition===&lt;br /&gt;
Conditional branching (or Skip logic) is a feature that changes what question or page a respondent sees next based on how they answer the current question. Conditional branching creates a custom path through the survey that varies based on a respondent’s answers.&lt;br /&gt;
&lt;br /&gt;
===Organization===&lt;br /&gt;
In the Questionnaire plugin, the Conditional branching path is organized through &#039;&#039;pages&#039;&#039;, containing one or more &amp;quot;child&amp;quot; questions depending on a &amp;quot;parent&amp;quot; question.&lt;br /&gt;
&lt;br /&gt;
===Settings===&lt;br /&gt;
If you want to use the Conditional branching feature in a Questionnaire, when you create or edit the questionnaire, in the Response options section of the settings, you must set the &#039;&#039;&#039;Allow branching questions&#039;&#039;&#039; option to &#039;&#039;Yes&#039;&#039;. Please note that this option is set to &#039;&#039;No&#039;&#039; by default.&lt;br /&gt;
&lt;br /&gt;
==A simple example==&lt;br /&gt;
&lt;br /&gt;
===The flow we want to obtain===&lt;br /&gt;
&lt;br /&gt;
*Page 1&lt;br /&gt;
**Question 1 Do you own a car? Yes/No.&lt;br /&gt;
***Answer Yes -&amp;gt; go to page 2&lt;br /&gt;
***Answer No -&amp;gt; go to page 5 (i.e. skip over irrelevant questions in pages 2 through 4)&lt;br /&gt;
*Page 2&lt;br /&gt;
**Question 2: What is the color of your car?&lt;br /&gt;
**Question 3: Did you buy it new or second-hand?&lt;br /&gt;
***Answer new -&amp;gt; go to page 3&lt;br /&gt;
***Answer second-hand -&amp;gt; go to page 4&lt;br /&gt;
*Page 3&lt;br /&gt;
**Question 4: Did you pay your new car cash or did you get a bank loan?&lt;br /&gt;
*Page 4&lt;br /&gt;
**Question 5: Did you buy your second-hand car from a garage or directly from its previous owner?&lt;br /&gt;
*Page 5&lt;br /&gt;
**Question 6: Do you sometimes use public transport to go to work?&lt;br /&gt;
etc.&lt;br /&gt;
&lt;br /&gt;
===Procedure to obtain that flow===&lt;br /&gt;
&lt;br /&gt;
*Create Q1 as a Yes/No question.&lt;br /&gt;
**&#039;&#039;&#039;Question Name&#039;&#039;&#039;: &#039;&#039;own car&#039;&#039;. Note that you &#039;&#039;must&#039;&#039; give your question a name, as this name will be used later on in the Questionnaire to build the list of available Parent questions. Please keep this name as short as possible.&lt;br /&gt;
**&#039;&#039;&#039;Response Required&#039;&#039;&#039;: &#039;&#039;Yes&#039;&#039;. Since you plan to use question Q1 as a Parent question, it would not make sense to set it as non-required.&lt;br /&gt;
**&#039;&#039;&#039;Question Text&#039;&#039;&#039;: &#039;&#039;Do you own a car?&#039;&#039;&lt;br /&gt;
**Save Q1. No Page break will be inserted at this stage because you have not yet used a Parent question to create one or more Child questions.&lt;br /&gt;
&lt;br /&gt;
*Create Q2 as a Text Box question type&lt;br /&gt;
**&#039;&#039;&#039;Question Name&#039;&#039;&#039;: optional&lt;br /&gt;
**&#039;&#039;&#039;Response Required&#039;&#039;&#039;: &#039;&#039;Yes&#039;&#039; or &#039;&#039;No&#039;&#039; (depending on what you want to do with that question&#039;s answers later on).&lt;br /&gt;
**&#039;&#039;&#039;Parent Question&#039;&#039;&#039; : &#039;&#039;own car-&amp;gt;Yes&#039;&#039;. The Parent question (Q1) option offers 2 choices, since it is a Yes/No question.&lt;br /&gt;
**&#039;&#039;&#039;Question Text&#039;&#039;&#039;: &#039;&#039;What is the colour of your car?&#039;&#039;&lt;br /&gt;
**Save Q2. Upon saving Child question Q2 you notice that a Page break has been automatically inserted between the Parent question Q1 and its Child question Q2.&lt;br /&gt;
&lt;br /&gt;
*Create Q3 as a Radio Buttons (or Dropdown Box) question type&lt;br /&gt;
**&#039;&#039;&#039;Question Name&#039;&#039;&#039;: &#039;&#039;car status&#039;&#039;&lt;br /&gt;
**&#039;&#039;&#039;Response Required&#039;&#039;&#039;: &#039;&#039;Yes&#039;&#039;. We are giving question Q3 a name and setting it as Required because we plan to use it as a Parent question.&lt;br /&gt;
**&#039;&#039;&#039;Parent Question&#039;&#039;&#039;: own car-&amp;gt;Yes&lt;br /&gt;
**&#039;&#039;&#039;Question Text&#039;&#039;&#039;: Did you buy it new or second-hand?&lt;br /&gt;
**&#039;&#039;&#039;Possible answers&#039;&#039;&#039;:&lt;br /&gt;
***&#039;&#039;new::I bought it new&#039;&#039;&lt;br /&gt;
***&#039;&#039;used::I bought it second-hand&#039;&#039;. &lt;br /&gt;
**Please note that in the Possible answers field we are using the &amp;quot;short label&amp;quot; feature. You should use this feature if the full text of your Possible answers choices is fairly long.&lt;br /&gt;
**Save Q3. Upon saving Child question Q3 you notice that no Page break has been inserted. This is because both Q2 and Q3 are Child questions of the same Parent question Q1 and thus will be displayed on the same page of the questionnaire.&lt;br /&gt;
&lt;br /&gt;
*Create Q4 as a Radio Buttons question type&lt;br /&gt;
**&#039;&#039;&#039;Question Name&#039;&#039;&#039;: optional&lt;br /&gt;
**&#039;&#039;&#039;Response Required&#039;&#039;&#039;: Yes or No&lt;br /&gt;
**&#039;&#039;&#039;Parent Question&#039;&#039;&#039;: car status-&amp;gt;new&lt;br /&gt;
&lt;br /&gt;
**Please note that the list of potential Parent question choices displays the &amp;quot;short label&amp;quot; that we entered for the Possible answers in Q3, instead of the full text.&lt;br /&gt;
&lt;br /&gt;
**&#039;&#039;&#039;Question Text&#039;&#039;&#039;: How did you pay for your new car?&lt;br /&gt;
**&#039;&#039;&#039;Possible answers&#039;&#039;&#039;:&lt;br /&gt;
***&#039;&#039;I paid cash&#039;&#039;&lt;br /&gt;
***&#039;&#039;I got a bank loan&#039;&#039;&lt;br /&gt;
**Save Q4. Upon saving Child question Q4 you notice that a Page break has been automatically inserted between Parent question Q3 and its Child question Q4.&lt;br /&gt;
&lt;br /&gt;
*Create Q5 as a Radio Buttons question type&lt;br /&gt;
**&#039;&#039;&#039;Question Name&#039;&#039;&#039;: optional&lt;br /&gt;
**&#039;&#039;&#039;Response Required&#039;&#039;&#039;: Yes or No&lt;br /&gt;
**&#039;&#039;&#039;Parent Question&#039;&#039;&#039;: car status-&amp;gt;used&lt;br /&gt;
**&#039;&#039;&#039;Question Text&#039;&#039;&#039;: Where did you buy your second-hand car? &lt;br /&gt;
**&#039;&#039;&#039;Possible answers&#039;&#039;&#039;:&lt;br /&gt;
***&#039;&#039;I bought it from a garage&#039;&#039;&lt;br /&gt;
***&#039;&#039;I bought it directly from its previous owner&#039;&#039;&lt;br /&gt;
**Save Q5. Upon saving Child question Q5 you notice that a Page break has been automatically inserted between Child question Q4 and Child question Q5 because these two question do not have the same Parent question.&lt;br /&gt;
&lt;br /&gt;
*Create Q6 as YES/NO question type.&lt;br /&gt;
**&#039;&#039;&#039;Question Name&#039;&#039;&#039;: optional&lt;br /&gt;
**&#039;&#039;&#039;Response Required&#039;&#039;&#039;: Yes or No&lt;br /&gt;
**&#039;&#039;&#039;Parent Question&#039;&#039;&#039;: None. &amp;lt;br /&amp;gt;Question 6 is not dependent on any of the previous questions, and it will be displayed to the questionnaire respondent regardless of their previous answers.&lt;br /&gt;
**&#039;&#039;&#039;Question Text&#039;&#039;&#039;: Do you sometimes use public transport to go to work?&lt;br /&gt;
**Save Q6. Upon saving question Q6 you notice that a Page break has been automatically inserted between Child question Q5 and question Q6.&lt;br /&gt;
&lt;br /&gt;
Now continue creating questions normally, until you want to use Conditional branching again.&lt;br /&gt;
&lt;br /&gt;
Here is what your Manage questions section will look like after you have created those first 6 questions.&lt;br /&gt;
&lt;br /&gt;
[[Image:07-08-2013 17-49-53.jpg]]&lt;br /&gt;
&lt;br /&gt;
==Operations on Conditional branching questions==&lt;br /&gt;
===Move===&lt;br /&gt;
By using the standard Moodle &amp;quot;Move&amp;quot; icon you can move your questionnaire questions to different positions. However, due to the special nature of the questionnaire flow when using the Conditional branching feature, there are restrictions on the new positions that you can move our questions to.&lt;br /&gt;
&lt;br /&gt;
*You cannot move a Parent question &#039;&#039;below&#039;&#039; any of its Child questions.&lt;br /&gt;
&lt;br /&gt;
*You cannot move a Child question &#039;&#039;above&#039;&#039; its Parent question.&lt;br /&gt;
&lt;br /&gt;
*You cannot remove those Page breaks which are needed to ensure a correct flow of dependent questions.&lt;br /&gt;
&lt;br /&gt;
[[Image:07-08-2013 18-04-16.jpg]]&lt;br /&gt;
&lt;br /&gt;
Those restrictions will show on the Manage questions screen where the Move icon is replaced with a &amp;quot;Forbidden&amp;quot; (Moodle &amp;quot;block&amp;quot;) icon. They will also operate when you are in &amp;quot;Move question&amp;quot; mode, where the Move to here icon/placeholder will not be displayed in the &amp;quot;forbidden&amp;quot; positions.&lt;br /&gt;
&lt;br /&gt;
===Edit===&lt;br /&gt;
Using the standard Moodle &amp;quot;Edit&amp;quot; icon you may edit any question. However, for those questions which have both a Parent question and one or more Child questions, you cannot change their Parent question &amp;amp; Choice, as that might ruin the consequent flow. The only way to change their Parent is to edit their Child question(s) first.&lt;br /&gt;
&lt;br /&gt;
[[Image:07-08-2013 18-12-59.jpg]]&lt;br /&gt;
&lt;br /&gt;
===Delete===&lt;br /&gt;
You cannot Delete those Page breaks which have been automatically inserted when adding Child questions.&lt;br /&gt;
&lt;br /&gt;
If you try to Delete a Parent question, you will get a warning with the list of its Child questions. If you answer Yes to the warning, the Parent question will be deleted, together with all its Child (and Grand-Child questions).&lt;br /&gt;
&lt;br /&gt;
[[Image:07-08-2013 18-20-29.jpg]]&lt;br /&gt;
&lt;br /&gt;
===Setting as Required/Not required===&lt;br /&gt;
&lt;br /&gt;
As said above, you would normally set all potential Parent questions as Required. However, there might be cases where you want to leave the respondent the choice to respond or not. If you set a question as Not required, then the usual &amp;quot;No answer&amp;quot; button will be displayed (for Yes/No and Radio Buttons questions). If the respondent does not answer a Parent question, all of its Child questions will be skipped over.&lt;br /&gt;
&lt;br /&gt;
==Previewing Questionnaire==&lt;br /&gt;
&lt;br /&gt;
The Previewing Questionnaire page is useful for a Questionnaire creator to test it out before making it available in a course. In the case of a Conditional branching questionnaire, the Preview is especially useful as it will mimic the flow that a respondent will see, by selecting the various choices offered by the Parent questions.&lt;br /&gt;
&lt;br /&gt;
When a Conditional branching questionnaire is first displayed on the Preview page, only those pages containing &amp;quot;top&amp;quot; parent questions are displayed, as well as pages containing questions that do not have a Parent question. &lt;br /&gt;
&lt;br /&gt;
When a choice id made in the Parent questions, the Child question(s) corresponding to that choice is/are displayed.&lt;br /&gt;
&lt;br /&gt;
The following screnshots illustrate the various possible sequences that can be displayed. In this example, we have set Question 3 as Non-required.&lt;br /&gt;
&lt;br /&gt;
[[File:07-08-2013 18-52-40.jpg]]&lt;br /&gt;
&lt;br /&gt;
The only 2 questions displayed are those with no Parent: Q1 and Q6.&lt;br /&gt;
&lt;br /&gt;
[[File:07-08-2013 18-54-36.jpg]]&lt;br /&gt;
&lt;br /&gt;
Upon clicking on Q1 &#039;No&#039;, nothing changes in the display, because in our questionnaire we do not have any Child question dependent on that choice.&lt;br /&gt;
&lt;br /&gt;
[[File:08-08-2013 19-07-13.jpg]]&lt;br /&gt;
&lt;br /&gt;
It is possible for a teacher previewing a questionnaire to &amp;quot;Submit the preview&amp;quot;. This will mimic the behaviour of the real Submit questionnaire process: any required question that has not been responded to or any response that does not conform to the question&#039;s conditions will be marked with a Warning.&lt;br /&gt;
&lt;br /&gt;
[[File:08-08-2013 18-56-25.jpg]]&lt;br /&gt;
&lt;br /&gt;
If all the required questions have been correctly filled in, then upon submitting the preview, a &amp;quot;correct&amp;quot; message will be displayed.&lt;br /&gt;
&lt;br /&gt;
*To simulate a new questionnaire flow, you can either click the Preview link in your course&#039;s navigation bar, or the Preview link in the Questionnaire Administration block or the Reset link at the bottom of the Preview window. &lt;br /&gt;
&lt;br /&gt;
[[File:08-08-2013 22-45-33.jpg]]&lt;br /&gt;
&lt;br /&gt;
Upon clicking the &#039;&#039;Yes&#039;&#039; radio button in answer to Q1, questions Q2 and Q3 on Page 2, which depend on that Q1 &#039;&#039;Yes&#039;&#039; choice are automatically displayed. In &amp;quot;Answer the questions&amp;quot; mode, the respondent would be taken to Page 2 of the questionnaire. Now, if we click on the I bought it new radio button of Q3, Q4 on Page 3 will be displayed, etc.&lt;br /&gt;
&lt;br /&gt;
== Individual Responses Report ==&lt;br /&gt;
&lt;br /&gt;
Branching questionnaire reports display the same as non-Branching ones. The only notable difference is with the Individual Responses Report, where it is possible to view the particular path that a respondent took through the various conditional questions. Here are 2 examples.&lt;br /&gt;
&lt;br /&gt;
[[File:08-08-2013 23-40-12.jpg]]&lt;br /&gt;
&lt;br /&gt;
Respondent &amp;quot;Michael Cane&amp;quot; said he owns a red car, bought it new and paid cash for it. He was not presented with Q5, which is displayed between parentheses and greyed out.&lt;br /&gt;
&lt;br /&gt;
[[File:08-08-2013 23-43-18.jpg]]&lt;br /&gt;
&lt;br /&gt;
Respondent &amp;quot;John Doe&amp;quot; said he does not own a car. He was not presented with any of the dependent questions Q2 through Q5.&lt;/div&gt;</summary>
		<author><name>Rezeau</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/25/en/index.php?title=Questionnaire_Conditional_branching&amp;diff=106704</id>
		<title>Questionnaire Conditional branching</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/25/en/index.php?title=Questionnaire_Conditional_branching&amp;diff=106704"/>
		<updated>2013-09-28T08:16:02Z</updated>

		<summary type="html">&lt;p&gt;Rezeau: /* Individual Responses Report */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Questionnaire}}&lt;br /&gt;
{{New features}}&lt;br /&gt;
==Overview==&lt;br /&gt;
&lt;br /&gt;
===Definition===&lt;br /&gt;
Conditional branching (or Skip logic) is a feature that changes what question or page a respondent sees next based on how they answer the current question. Conditional branching creates a custom path through the survey that varies based on a respondent’s answers.&lt;br /&gt;
&lt;br /&gt;
===Organization===&lt;br /&gt;
In the Questionnaire plugin, the Conditional branching path is organized through &#039;&#039;pages&#039;&#039;, containing one or more &amp;quot;child&amp;quot; questions depending on a &amp;quot;parent&amp;quot; question.&lt;br /&gt;
&lt;br /&gt;
===Settings===&lt;br /&gt;
If you want to use the Conditional branching feature in a Questionnaire, when you create or edit the questionnaire, in the Response options section of the settings, you must set the &#039;&#039;&#039;Allow branching questions&#039;&#039;&#039; option to &#039;&#039;Yes&#039;&#039;. Please note that this option is set to &#039;&#039;No&#039;&#039; by default.&lt;br /&gt;
&lt;br /&gt;
==A simple example==&lt;br /&gt;
&lt;br /&gt;
===The flow we want to obtain===&lt;br /&gt;
&lt;br /&gt;
*Page 1&lt;br /&gt;
**Question 1 Do you own a car? Yes/No.&lt;br /&gt;
***Answer Yes -&amp;gt; go to page 2&lt;br /&gt;
***Answer No -&amp;gt; go to page 5 (i.e. skip over irrelevant questions in pages 2 through 4)&lt;br /&gt;
*Page 2&lt;br /&gt;
**Question 2: What is the color of your car?&lt;br /&gt;
**Question 3: Did you buy it new or second-hand?&lt;br /&gt;
***Answer new -&amp;gt; go to page 3&lt;br /&gt;
***Answer second-hand -&amp;gt; go to page 4&lt;br /&gt;
*Page 3&lt;br /&gt;
**Question 4: Did you pay your new car cash or did you get a bank loan?&lt;br /&gt;
*Page 4&lt;br /&gt;
**Question 5: Did you buy your second-hand car from a garage or directly from its previous owner?&lt;br /&gt;
*Page 5&lt;br /&gt;
**Question 6: Do you sometimes use public transport to go to work?&lt;br /&gt;
etc.&lt;br /&gt;
&lt;br /&gt;
===Procedure to obtain that flow===&lt;br /&gt;
&lt;br /&gt;
*Create Q1 as a Yes/No question.&lt;br /&gt;
**&#039;&#039;&#039;Question Name&#039;&#039;&#039;: &#039;&#039;own car&#039;&#039;. Note that you &#039;&#039;must&#039;&#039; give your question a name, as this name will be used later on in the Questionnaire to build the list of available Parent questions. Please keep this name as short as possible.&lt;br /&gt;
**&#039;&#039;&#039;Response Required&#039;&#039;&#039;: &#039;&#039;Yes&#039;&#039;. Since you plan to use question Q1 as a Parent question, it would not make sense to set it as non-required.&lt;br /&gt;
**&#039;&#039;&#039;Question Text&#039;&#039;&#039;: &#039;&#039;Do you own a car?&#039;&#039;&lt;br /&gt;
**Save Q1. No Page break will be inserted at this stage because you have not yet used a Parent question to create one or more Child questions.&lt;br /&gt;
&lt;br /&gt;
*Create Q2 as a Text Box question type&lt;br /&gt;
**&#039;&#039;&#039;Question Name&#039;&#039;&#039;: optional&lt;br /&gt;
**&#039;&#039;&#039;Response Required&#039;&#039;&#039;: &#039;&#039;Yes&#039;&#039; or &#039;&#039;No&#039;&#039; (depending on what you want to do with that question&#039;s answers later on).&lt;br /&gt;
**&#039;&#039;&#039;Parent Question&#039;&#039;&#039; : &#039;&#039;own car-&amp;gt;Yes&#039;&#039;. The Parent question (Q1) option offers 2 choices, since it is a Yes/No question.&lt;br /&gt;
**&#039;&#039;&#039;Question Text&#039;&#039;&#039;: &#039;&#039;What is the colour of your car?&#039;&#039;&lt;br /&gt;
**Save Q2. Upon saving Child question Q2 you notice that a Page break has been automatically inserted between the Parent question Q1 and its Child question Q2.&lt;br /&gt;
&lt;br /&gt;
*Create Q3 as a Radio Buttons (or Dropdown Box) question type&lt;br /&gt;
**&#039;&#039;&#039;Question Name&#039;&#039;&#039;: &#039;&#039;car status&#039;&#039;&lt;br /&gt;
**&#039;&#039;&#039;Response Required&#039;&#039;&#039;: &#039;&#039;Yes&#039;&#039;. We are giving question Q3 a name and setting it as Required because we plan to use it as a Parent question.&lt;br /&gt;
**&#039;&#039;&#039;Parent Question&#039;&#039;&#039;: own car-&amp;gt;Yes&lt;br /&gt;
**&#039;&#039;&#039;Question Text&#039;&#039;&#039;: Did you buy it new or second-hand?&lt;br /&gt;
**&#039;&#039;&#039;Possible answers&#039;&#039;&#039;:&lt;br /&gt;
***&#039;&#039;new::I bought it new&#039;&#039;&lt;br /&gt;
***&#039;&#039;used::I bought it second-hand&#039;&#039;. &lt;br /&gt;
**Please note that in the Possible answers field we are using the &amp;quot;short label&amp;quot; feature. You should use this feature if the full text of your Possible answers choices is fairly long.&lt;br /&gt;
**Save Q3. Upon saving Child question Q3 you notice that no Page break has been inserted. This is because both Q2 and Q3 are Child questions of the same Parent question Q1 and thus will be displayed on the same page of the questionnaire.&lt;br /&gt;
&lt;br /&gt;
*Create Q4 as a Radio Buttons question type&lt;br /&gt;
**&#039;&#039;&#039;Question Name&#039;&#039;&#039;: optional&lt;br /&gt;
**&#039;&#039;&#039;Response Required&#039;&#039;&#039;: Yes or No&lt;br /&gt;
**&#039;&#039;&#039;Parent Question&#039;&#039;&#039;: car status-&amp;gt;new&lt;br /&gt;
&lt;br /&gt;
**Please note that the list of potential Parent question choices displays the &amp;quot;short label&amp;quot; that we entered for the Possible answers in Q3, instead of the full text.&lt;br /&gt;
&lt;br /&gt;
**&#039;&#039;&#039;Question Text&#039;&#039;&#039;: How did you pay for your new car?&lt;br /&gt;
**&#039;&#039;&#039;Possible answers&#039;&#039;&#039;:&lt;br /&gt;
***&#039;&#039;I paid cash&#039;&#039;&lt;br /&gt;
***&#039;&#039;I got a bank loan&#039;&#039;&lt;br /&gt;
**Save Q4. Upon saving Child question Q4 you notice that a Page break has been automatically inserted between Parent question Q3 and its Child question Q4.&lt;br /&gt;
&lt;br /&gt;
*Create Q5 as a Radio Buttons question type&lt;br /&gt;
**&#039;&#039;&#039;Question Name&#039;&#039;&#039;: optional&lt;br /&gt;
**&#039;&#039;&#039;Response Required&#039;&#039;&#039;: Yes or No&lt;br /&gt;
**&#039;&#039;&#039;Parent Question&#039;&#039;&#039;: car status-&amp;gt;used&lt;br /&gt;
**&#039;&#039;&#039;Question Text&#039;&#039;&#039;: Where did you buy your second-hand car? &lt;br /&gt;
**&#039;&#039;&#039;Possible answers&#039;&#039;&#039;:&lt;br /&gt;
***&#039;&#039;I bought it from a garage&#039;&#039;&lt;br /&gt;
***&#039;&#039;I bought it directly from its previous owner&#039;&#039;&lt;br /&gt;
**Save Q5. Upon saving Child question Q5 you notice that a Page break has been automatically inserted between Child question Q4 and Child question Q5 because these two question do not have the same Parent question.&lt;br /&gt;
&lt;br /&gt;
*Create Q6 as YES/NO question type.&lt;br /&gt;
**&#039;&#039;&#039;Question Name&#039;&#039;&#039;: optional&lt;br /&gt;
**&#039;&#039;&#039;Response Required&#039;&#039;&#039;: Yes or No&lt;br /&gt;
**&#039;&#039;&#039;Parent Question&#039;&#039;&#039;: None. &amp;lt;br /&amp;gt;Question 6 is not dependent on any of the previous questions, and it will be displayed to the questionnaire respondent regardless of their previous answers.&lt;br /&gt;
**&#039;&#039;&#039;Question Text&#039;&#039;&#039;: Do you sometimes use public transport to go to work?&lt;br /&gt;
**Save Q6. Upon saving question Q6 you notice that a Page break has been automatically inserted between Child question Q5 and question Q6.&lt;br /&gt;
&lt;br /&gt;
Now continue creating questions normally, until you want to use Conditional branching again.&lt;br /&gt;
&lt;br /&gt;
Here is what your Manage questions section will look like after you have created those first 6 questions.&lt;br /&gt;
&lt;br /&gt;
[[Image:07-08-2013 17-49-53.jpg]]&lt;br /&gt;
&lt;br /&gt;
==Operations on Conditional branching questions==&lt;br /&gt;
===Move===&lt;br /&gt;
By using the standard Moodle &amp;quot;Move&amp;quot; icon you can move your questionnaire questions to different positions. However, due to the special nature of the questionnaire flow when using the Conditional branching feature, there are restrictions on the new positions that you can move our questions to.&lt;br /&gt;
&lt;br /&gt;
*You cannot move a Parent question &#039;&#039;below&#039;&#039; any of its Child questions.&lt;br /&gt;
&lt;br /&gt;
*You cannot move a Child question &#039;&#039;above&#039;&#039; its Parent question.&lt;br /&gt;
&lt;br /&gt;
*You cannot remove those Page breaks which are needed to ensure a correct flow of dependent questions.&lt;br /&gt;
&lt;br /&gt;
[[Image:07-08-2013 18-04-16.jpg]]&lt;br /&gt;
&lt;br /&gt;
Those restrictions will show on the Manage questions screen where the Move icon is replaced with a &amp;quot;Forbidden&amp;quot; (Moodle &amp;quot;block&amp;quot;) icon. They will also operate when you are in &amp;quot;Move question&amp;quot; mode, where the Move to here icon/placeholder will not be displayed in the &amp;quot;forbidden&amp;quot; positions.&lt;br /&gt;
&lt;br /&gt;
===Edit===&lt;br /&gt;
Using the standard Moodle &amp;quot;Edit&amp;quot; icon you may edit any question. However, for those questions which have both a Parent question and one or more Child questions, you cannot change their Parent question &amp;amp; Choice, as that might ruin the consequent flow. The only way to change their Parent is to edit their Child question(s) first.&lt;br /&gt;
&lt;br /&gt;
[[Image:07-08-2013 18-12-59.jpg]]&lt;br /&gt;
&lt;br /&gt;
===Delete===&lt;br /&gt;
You cannot Delete those Page breaks which have been automatically inserted when adding Child questions.&lt;br /&gt;
&lt;br /&gt;
If you try to Delete a Parent question, you will get a warning with the list of its Child questions. If you answer Yes to the warning, the Parent question will be deleted, together with all its Child (and Grand-Child questions).&lt;br /&gt;
&lt;br /&gt;
[[Image:07-08-2013 18-20-29.jpg]]&lt;br /&gt;
&lt;br /&gt;
===Setting as Required/Not required===&lt;br /&gt;
&lt;br /&gt;
As said above, you would normally set all potential Parent questions as Required. However, there might be cases where you want to leave the respondent the choice to respond or not. If you set a question as Not required, then the usual &amp;quot;No answer&amp;quot; button will be displayed (for Yes/No and Radio Buttons questions). If the respondent does not answer a Parent question, all of its Child questions will be skipped over.&lt;br /&gt;
&lt;br /&gt;
==Previewing Questionnaire==&lt;br /&gt;
&lt;br /&gt;
The Previewing Questionnaire page is useful for a Questionnaire creator to test it out before making it available in a course. In the case of a Conditional branching questionnaire, the Preview is especially useful as it will mimic the flow that a respondent will see, by selecting the various choices offered by the Parent questions.&lt;br /&gt;
&lt;br /&gt;
When a Conditional branching questionnaire is first displayed on the Preview page, only those pages containing &amp;quot;top&amp;quot; parent questions are displayed, as well as pages containing questions that do not have a Parent question. &lt;br /&gt;
&lt;br /&gt;
When a choice id made in the Parent questions, the Child question(s) corresponding to that choice is/are displayed.&lt;br /&gt;
&lt;br /&gt;
The following screnshots illustrate the various possible sequences that can be displayed. In this example, we have set Question 3 as Non-required.&lt;br /&gt;
&lt;br /&gt;
[[File:07-08-2013 18-52-40.jpg]]&lt;br /&gt;
&lt;br /&gt;
The only 2 questions displayed are those with no Parent: Q1 and Q6.&lt;br /&gt;
&lt;br /&gt;
[[File:07-08-2013 18-54-36.jpg]]&lt;br /&gt;
&lt;br /&gt;
Upon clicking on Q1 &#039;No&#039;, nothing changes in the display, because in our questionnaire we do not have any Child question dependent on that choice.&lt;br /&gt;
&lt;br /&gt;
[[File:08-08-2013 19-07-13.jpg]]&lt;br /&gt;
&lt;br /&gt;
It is possible for a teacher previewing a questionnaire to &amp;quot;Submit the preview&amp;quot;. This will mimic the behaviour of the real Submit questionnaire process: any required question that has not been responded to or any response that does not conform to the question&#039;s conditions will be marked with a Warning.&lt;br /&gt;
&lt;br /&gt;
[[File:08-08-2013 18-56-25.jpg]]&lt;br /&gt;
&lt;br /&gt;
If all the required questions have been correctly filled in, then upon submitting the preview, a &amp;quot;correct&amp;quot; message will be displayed.&lt;br /&gt;
&lt;br /&gt;
*To simulate a new questionnaire flow, you can either click the Preview link in your course&#039;s navigation bar, or the Preview link in the Questionnaire Administration block or the Reset link at the bottom of the Preview window. &lt;br /&gt;
&lt;br /&gt;
[[File:08-08-2013 22-45-33.jpg]]&lt;br /&gt;
&lt;br /&gt;
Upon clicking the &#039;&#039;Yes&#039;&#039; radio button in answer to Q1, questions Q2 and Q3 on Page 2, which depend on that Q1 &#039;&#039;Yes&#039;&#039; choice are automatically displayed. In &amp;quot;Answer the questions&amp;quot; mode, the respondent would be taken to Page 2 of the questionnaire. Now, if we click on the I bought it new radio button of Q3, Q4 on Page 3 will be displayed, etc.&lt;br /&gt;
&lt;br /&gt;
== Individual Responses Report ==&lt;br /&gt;
&lt;br /&gt;
Branching questionnaire reports display the same as non-Branching ones. The only notable difference is with the Individual Responses Report, where it is possible to view the particular path that a respondent took through the various conditional questions. Here are 2 examples.&lt;br /&gt;
&lt;br /&gt;
[[File:08-08-2013 23-40-12.jpg]]&lt;br /&gt;
&lt;br /&gt;
Respondent &amp;quot;Michael Cane&amp;quot; said he owns a red car, bought it new and paid cash for it. He was not presented with Q5, which is displayed between parentheses and greyed out.&lt;br /&gt;
&lt;br /&gt;
[[File:08-08-2013 23-43-18.jpg]]&lt;br /&gt;
&lt;br /&gt;
This other respondent said he does not own a car. He was not presented with any of the dependent questions Q2 through Q5.&lt;/div&gt;</summary>
		<author><name>Rezeau</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/25/en/index.php?title=Questionnaire_Conditional_branching&amp;diff=106694</id>
		<title>Questionnaire Conditional branching</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/25/en/index.php?title=Questionnaire_Conditional_branching&amp;diff=106694"/>
		<updated>2013-09-24T13:35:38Z</updated>

		<summary type="html">&lt;p&gt;Rezeau: /* Procedure to obtain that flow */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Questionnaire}}&lt;br /&gt;
{{New features}}&lt;br /&gt;
==Overview==&lt;br /&gt;
&lt;br /&gt;
===Definition===&lt;br /&gt;
Conditional branching (or Skip logic) is a feature that changes what question or page a respondent sees next based on how they answer the current question. Conditional branching creates a custom path through the survey that varies based on a respondent’s answers.&lt;br /&gt;
&lt;br /&gt;
===Organization===&lt;br /&gt;
In the Questionnaire plugin, the Conditional branching path is organized through &#039;&#039;pages&#039;&#039;, containing one or more &amp;quot;child&amp;quot; questions depending on a &amp;quot;parent&amp;quot; question.&lt;br /&gt;
&lt;br /&gt;
===Settings===&lt;br /&gt;
If you want to use the Conditional branching feature in a Questionnaire, when you create or edit the questionnaire, in the Response options section of the settings, you must set the &#039;&#039;&#039;Allow branching questions&#039;&#039;&#039; option to &#039;&#039;Yes&#039;&#039;. Please note that this option is set to &#039;&#039;No&#039;&#039; by default.&lt;br /&gt;
&lt;br /&gt;
==A simple example==&lt;br /&gt;
&lt;br /&gt;
===The flow we want to obtain===&lt;br /&gt;
&lt;br /&gt;
*Page 1&lt;br /&gt;
**Question 1 Do you own a car? Yes/No.&lt;br /&gt;
***Answer Yes -&amp;gt; go to page 2&lt;br /&gt;
***Answer No -&amp;gt; go to page 5 (i.e. skip over irrelevant questions in pages 2 through 4)&lt;br /&gt;
*Page 2&lt;br /&gt;
**Question 2: What is the color of your car?&lt;br /&gt;
**Question 3: Did you buy it new or second-hand?&lt;br /&gt;
***Answer new -&amp;gt; go to page 3&lt;br /&gt;
***Answer second-hand -&amp;gt; go to page 4&lt;br /&gt;
*Page 3&lt;br /&gt;
**Question 4: Did you pay your new car cash or did you get a bank loan?&lt;br /&gt;
*Page 4&lt;br /&gt;
**Question 5: Did you buy your second-hand car from a garage or directly from its previous owner?&lt;br /&gt;
*Page 5&lt;br /&gt;
**Question 6: Do you sometimes use public transport to go to work?&lt;br /&gt;
etc.&lt;br /&gt;
&lt;br /&gt;
===Procedure to obtain that flow===&lt;br /&gt;
&lt;br /&gt;
*Create Q1 as a Yes/No question.&lt;br /&gt;
**&#039;&#039;&#039;Question Name&#039;&#039;&#039;: &#039;&#039;own car&#039;&#039;. Note that you &#039;&#039;must&#039;&#039; give your question a name, as this name will be used later on in the Questionnaire to build the list of available Parent questions. Please keep this name as short as possible.&lt;br /&gt;
**&#039;&#039;&#039;Response Required&#039;&#039;&#039;: &#039;&#039;Yes&#039;&#039;. Since you plan to use question Q1 as a Parent question, it would not make sense to set it as non-required.&lt;br /&gt;
**&#039;&#039;&#039;Question Text&#039;&#039;&#039;: &#039;&#039;Do you own a car?&#039;&#039;&lt;br /&gt;
**Save Q1. No Page break will be inserted at this stage because you have not yet used a Parent question to create one or more Child questions.&lt;br /&gt;
&lt;br /&gt;
*Create Q2 as a Text Box question type&lt;br /&gt;
**&#039;&#039;&#039;Question Name&#039;&#039;&#039;: optional&lt;br /&gt;
**&#039;&#039;&#039;Response Required&#039;&#039;&#039;: &#039;&#039;Yes&#039;&#039; or &#039;&#039;No&#039;&#039; (depending on what you want to do with that question&#039;s answers later on).&lt;br /&gt;
**&#039;&#039;&#039;Parent Question&#039;&#039;&#039; : &#039;&#039;own car-&amp;gt;Yes&#039;&#039;. The Parent question (Q1) option offers 2 choices, since it is a Yes/No question.&lt;br /&gt;
**&#039;&#039;&#039;Question Text&#039;&#039;&#039;: &#039;&#039;What is the colour of your car?&#039;&#039;&lt;br /&gt;
**Save Q2. Upon saving Child question Q2 you notice that a Page break has been automatically inserted between the Parent question Q1 and its Child question Q2.&lt;br /&gt;
&lt;br /&gt;
*Create Q3 as a Radio Buttons (or Dropdown Box) question type&lt;br /&gt;
**&#039;&#039;&#039;Question Name&#039;&#039;&#039;: &#039;&#039;car status&#039;&#039;&lt;br /&gt;
**&#039;&#039;&#039;Response Required&#039;&#039;&#039;: &#039;&#039;Yes&#039;&#039;. We are giving question Q3 a name and setting it as Required because we plan to use it as a Parent question.&lt;br /&gt;
**&#039;&#039;&#039;Parent Question&#039;&#039;&#039;: own car-&amp;gt;Yes&lt;br /&gt;
**&#039;&#039;&#039;Question Text&#039;&#039;&#039;: Did you buy it new or second-hand?&lt;br /&gt;
**&#039;&#039;&#039;Possible answers&#039;&#039;&#039;:&lt;br /&gt;
***&#039;&#039;new::I bought it new&#039;&#039;&lt;br /&gt;
***&#039;&#039;used::I bought it second-hand&#039;&#039;. &lt;br /&gt;
**Please note that in the Possible answers field we are using the &amp;quot;short label&amp;quot; feature. You should use this feature if the full text of your Possible answers choices is fairly long.&lt;br /&gt;
**Save Q3. Upon saving Child question Q3 you notice that no Page break has been inserted. This is because both Q2 and Q3 are Child questions of the same Parent question Q1 and thus will be displayed on the same page of the questionnaire.&lt;br /&gt;
&lt;br /&gt;
*Create Q4 as a Radio Buttons question type&lt;br /&gt;
**&#039;&#039;&#039;Question Name&#039;&#039;&#039;: optional&lt;br /&gt;
**&#039;&#039;&#039;Response Required&#039;&#039;&#039;: Yes or No&lt;br /&gt;
**&#039;&#039;&#039;Parent Question&#039;&#039;&#039;: car status-&amp;gt;new&lt;br /&gt;
&lt;br /&gt;
**Please note that the list of potential Parent question choices displays the &amp;quot;short label&amp;quot; that we entered for the Possible answers in Q3, instead of the full text.&lt;br /&gt;
&lt;br /&gt;
**&#039;&#039;&#039;Question Text&#039;&#039;&#039;: How did you pay for your new car?&lt;br /&gt;
**&#039;&#039;&#039;Possible answers&#039;&#039;&#039;:&lt;br /&gt;
***&#039;&#039;I paid cash&#039;&#039;&lt;br /&gt;
***&#039;&#039;I got a bank loan&#039;&#039;&lt;br /&gt;
**Save Q4. Upon saving Child question Q4 you notice that a Page break has been automatically inserted between Parent question Q3 and its Child question Q4.&lt;br /&gt;
&lt;br /&gt;
*Create Q5 as a Radio Buttons question type&lt;br /&gt;
**&#039;&#039;&#039;Question Name&#039;&#039;&#039;: optional&lt;br /&gt;
**&#039;&#039;&#039;Response Required&#039;&#039;&#039;: Yes or No&lt;br /&gt;
**&#039;&#039;&#039;Parent Question&#039;&#039;&#039;: car status-&amp;gt;used&lt;br /&gt;
**&#039;&#039;&#039;Question Text&#039;&#039;&#039;: Where did you buy your second-hand car? &lt;br /&gt;
**&#039;&#039;&#039;Possible answers&#039;&#039;&#039;:&lt;br /&gt;
***&#039;&#039;I bought it from a garage&#039;&#039;&lt;br /&gt;
***&#039;&#039;I bought it directly from its previous owner&#039;&#039;&lt;br /&gt;
**Save Q5. Upon saving Child question Q5 you notice that a Page break has been automatically inserted between Child question Q4 and Child question Q5 because these two question do not have the same Parent question.&lt;br /&gt;
&lt;br /&gt;
*Create Q6 as YES/NO question type.&lt;br /&gt;
**&#039;&#039;&#039;Question Name&#039;&#039;&#039;: optional&lt;br /&gt;
**&#039;&#039;&#039;Response Required&#039;&#039;&#039;: Yes or No&lt;br /&gt;
**&#039;&#039;&#039;Parent Question&#039;&#039;&#039;: None. &amp;lt;br /&amp;gt;Question 6 is not dependent on any of the previous questions, and it will be displayed to the questionnaire respondent regardless of their previous answers.&lt;br /&gt;
**&#039;&#039;&#039;Question Text&#039;&#039;&#039;: Do you sometimes use public transport to go to work?&lt;br /&gt;
**Save Q6. Upon saving question Q6 you notice that a Page break has been automatically inserted between Child question Q5 and question Q6.&lt;br /&gt;
&lt;br /&gt;
Now continue creating questions normally, until you want to use Conditional branching again.&lt;br /&gt;
&lt;br /&gt;
Here is what your Manage questions section will look like after you have created those first 6 questions.&lt;br /&gt;
&lt;br /&gt;
[[Image:07-08-2013 17-49-53.jpg]]&lt;br /&gt;
&lt;br /&gt;
==Operations on Conditional branching questions==&lt;br /&gt;
===Move===&lt;br /&gt;
By using the standard Moodle &amp;quot;Move&amp;quot; icon you can move your questionnaire questions to different positions. However, due to the special nature of the questionnaire flow when using the Conditional branching feature, there are restrictions on the new positions that you can move our questions to.&lt;br /&gt;
&lt;br /&gt;
*You cannot move a Parent question &#039;&#039;below&#039;&#039; any of its Child questions.&lt;br /&gt;
&lt;br /&gt;
*You cannot move a Child question &#039;&#039;above&#039;&#039; its Parent question.&lt;br /&gt;
&lt;br /&gt;
*You cannot remove those Page breaks which are needed to ensure a correct flow of dependent questions.&lt;br /&gt;
&lt;br /&gt;
[[Image:07-08-2013 18-04-16.jpg]]&lt;br /&gt;
&lt;br /&gt;
Those restrictions will show on the Manage questions screen where the Move icon is replaced with a &amp;quot;Forbidden&amp;quot; (Moodle &amp;quot;block&amp;quot;) icon. They will also operate when you are in &amp;quot;Move question&amp;quot; mode, where the Move to here icon/placeholder will not be displayed in the &amp;quot;forbidden&amp;quot; positions.&lt;br /&gt;
&lt;br /&gt;
===Edit===&lt;br /&gt;
Using the standard Moodle &amp;quot;Edit&amp;quot; icon you may edit any question. However, for those questions which have both a Parent question and one or more Child questions, you cannot change their Parent question &amp;amp; Choice, as that might ruin the consequent flow. The only way to change their Parent is to edit their Child question(s) first.&lt;br /&gt;
&lt;br /&gt;
[[Image:07-08-2013 18-12-59.jpg]]&lt;br /&gt;
&lt;br /&gt;
===Delete===&lt;br /&gt;
You cannot Delete those Page breaks which have been automatically inserted when adding Child questions.&lt;br /&gt;
&lt;br /&gt;
If you try to Delete a Parent question, you will get a warning with the list of its Child questions. If you answer Yes to the warning, the Parent question will be deleted, together with all its Child (and Grand-Child questions).&lt;br /&gt;
&lt;br /&gt;
[[Image:07-08-2013 18-20-29.jpg]]&lt;br /&gt;
&lt;br /&gt;
===Setting as Required/Not required===&lt;br /&gt;
&lt;br /&gt;
As said above, you would normally set all potential Parent questions as Required. However, there might be cases where you want to leave the respondent the choice to respond or not. If you set a question as Not required, then the usual &amp;quot;No answer&amp;quot; button will be displayed (for Yes/No and Radio Buttons questions). If the respondent does not answer a Parent question, all of its Child questions will be skipped over.&lt;br /&gt;
&lt;br /&gt;
==Previewing Questionnaire==&lt;br /&gt;
&lt;br /&gt;
The Previewing Questionnaire page is useful for a Questionnaire creator to test it out before making it available in a course. In the case of a Conditional branching questionnaire, the Preview is especially useful as it will mimic the flow that a respondent will see, by selecting the various choices offered by the Parent questions.&lt;br /&gt;
&lt;br /&gt;
When a Conditional branching questionnaire is first displayed on the Preview page, only those pages containing &amp;quot;top&amp;quot; parent questions are displayed, as well as pages containing questions that do not have a Parent question. &lt;br /&gt;
&lt;br /&gt;
When a choice id made in the Parent questions, the Child question(s) corresponding to that choice is/are displayed.&lt;br /&gt;
&lt;br /&gt;
The following screnshots illustrate the various possible sequences that can be displayed. In this example, we have set Question 3 as Non-required.&lt;br /&gt;
&lt;br /&gt;
[[File:07-08-2013 18-52-40.jpg]]&lt;br /&gt;
&lt;br /&gt;
The only 2 questions displayed are those with no Parent: Q1 and Q6.&lt;br /&gt;
&lt;br /&gt;
[[File:07-08-2013 18-54-36.jpg]]&lt;br /&gt;
&lt;br /&gt;
Upon clicking on Q1 &#039;No&#039;, nothing changes in the display, because in our questionnaire we do not have any Child question dependent on that choice.&lt;br /&gt;
&lt;br /&gt;
[[File:08-08-2013 19-07-13.jpg]]&lt;br /&gt;
&lt;br /&gt;
It is possible for a teacher previewing a questionnaire to &amp;quot;Submit the preview&amp;quot;. This will mimic the behaviour of the real Submit questionnaire process: any required question that has not been responded to or any response that does not conform to the question&#039;s conditions will be marked with a Warning.&lt;br /&gt;
&lt;br /&gt;
[[File:08-08-2013 18-56-25.jpg]]&lt;br /&gt;
&lt;br /&gt;
If all the required questions have been correctly filled in, then upon submitting the preview, a &amp;quot;correct&amp;quot; message will be displayed.&lt;br /&gt;
&lt;br /&gt;
*To simulate a new questionnaire flow, you can either click the Preview link in your course&#039;s navigation bar, or the Preview link in the Questionnaire Administration block or the Reset link at the bottom of the Preview window. &lt;br /&gt;
&lt;br /&gt;
[[File:08-08-2013 22-45-33.jpg]]&lt;br /&gt;
&lt;br /&gt;
Upon clicking the &#039;&#039;Yes&#039;&#039; radio button in answer to Q1, questions Q2 and Q3 on Page 2, which depend on that Q1 &#039;&#039;Yes&#039;&#039; choice are automatically displayed. In &amp;quot;Answer the questions&amp;quot; mode, the respondent would be taken to Page 2 of the questionnaire. Now, if we click on the I bought it new radio button of Q3, Q4 on Page 3 will be displayed, etc.&lt;br /&gt;
&lt;br /&gt;
== Individual Responses Report ==&lt;br /&gt;
&lt;br /&gt;
Branching questionnaire reports display the same as non-Branching ones. The only notable difference is with the Individual Responses Report, where it is possible to view the particular path that a respondent took through the various conditional questions. Here are 2 examples.&lt;br /&gt;
&lt;br /&gt;
[[File:08-08-2013 23-40-12.jpg]]&lt;br /&gt;
&lt;br /&gt;
This respondent said he owns a red car, bought it new and paid cash for it. He was not presented with Q5, which is displayed between parentheses and greyed out.&lt;br /&gt;
&lt;br /&gt;
[[File:08-08-2013 23-43-18.jpg]]&lt;br /&gt;
&lt;br /&gt;
This other respondent said he does not own a car. He was not presented with any of the dependent questions Q2 through Q5.&lt;/div&gt;</summary>
		<author><name>Rezeau</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/25/en/index.php?title=Regular_Expression_Short-Answer_question_type&amp;diff=106497</id>
		<title>Regular Expression Short-Answer question type</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/25/en/index.php?title=Regular_Expression_Short-Answer_question_type&amp;diff=106497"/>
		<updated>2013-08-30T13:57:07Z</updated>

		<summary type="html">&lt;p&gt;Rezeau: /* Downloads */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===The RegExp Short Answer Question===&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;IMPORTANT NOTE&#039;&#039;&#039;&lt;br /&gt;
** The RegExp Short Answer question described in this documentation page is a 3rd-party plugin, which allows you to create questions for the &#039;&#039;&#039;&#039;&#039;Quiz&#039;&#039;&#039;&#039;&#039; activity. It is &#039;&#039;different&#039;&#039; from the &amp;quot;Use regular expressions&amp;quot; option in the &#039;&#039;&#039;&#039;&#039;Lesson&#039;&#039;&#039;&#039;&#039; module.&lt;br /&gt;
** The documentation for the &amp;quot;Use regular expressions&amp;quot; option in the &#039;&#039;&#039;&#039;&#039;Lesson&#039;&#039;&#039;&#039;&#039; module is to be found at: [https://docs.moodle.org/en/Short_answer_analysis Short answer analysis].&lt;br /&gt;
&lt;br /&gt;
Like the Short Answer question, the RegExp Short Answer question expects the respondent to answer an &amp;quot;open&amp;quot; question with a word or a short phrase. However, the RegExp system system gives you access to a more powerful system for &#039;&#039;analyzing the student&#039;s answers&#039;&#039; with the aim of &#039;&#039;providing more relevant immediate feedback&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
===Correct answer matching a regular expression pattern===&lt;br /&gt;
&lt;br /&gt;
It is not possible to give complete examples of the vast possibilities offered by this system, and the following are just some possibilities.&lt;br /&gt;
&lt;br /&gt;
====&#039;&#039;&#039;Example 1.&#039;&#039;&#039;====&lt;br /&gt;
&lt;br /&gt;
Suppose your question was &amp;quot;What are the colors of the French flag?&amp;quot;. In the Answer 1 box you would type the &amp;quot;best&amp;quot; answer, e.g. &amp;quot;it&#039;s blue, white and red&amp;quot;. For more details, see [[#firstcorrect|First correct answer]] below.&lt;br /&gt;
&lt;br /&gt;
*In the Answer 2 box you would type this regular expression: &amp;quot;it&#039;s blue, white(,| and) red&amp;quot; (quotes should not be typed, of course).&lt;br /&gt;
* If [[#casesensivity|Case sensivity]] is set to &amp;quot;No&amp;quot;, this will match any of those 4 responses:&lt;br /&gt;
    it&#039;s blue, white, red&lt;br /&gt;
    it&#039;s blue, white and red&lt;br /&gt;
    It&#039;s blue, white, red&lt;br /&gt;
    It&#039;s blue, white and red&lt;br /&gt;
&lt;br /&gt;
====&#039;&#039;&#039;Example 2&#039;&#039;&#039;.====&lt;br /&gt;
&lt;br /&gt;
Question: &amp;quot;What are blue, red and yellow?&amp;quot;. &lt;br /&gt;
* Answer 1: &amp;quot;they are colours&amp;quot;. &lt;br /&gt;
* Answer 2: &amp;quot;(|they(&#039;| a)re )colou?rs&amp;quot;. &lt;br /&gt;
* This will match any of those 6 responses:&lt;br /&gt;
    colours&lt;br /&gt;
    colors&lt;br /&gt;
    they&#039;re colours&lt;br /&gt;
    they&#039;re colors&lt;br /&gt;
    they are colours&lt;br /&gt;
    they are colors&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;Note&#039;&#039;&#039;&#039;&#039;.- The beginning of this regular expression &amp;quot;(|they(&#039;| a)re )&amp;quot; will match either nothing or &amp;quot;they&#039;re &amp;quot; or &amp;quot;they are &amp;quot;. In &amp;quot;colou?r&amp;quot;, the question-mark means: the preceding character (or parenthesized group of characters) zero or one time; it is used here to match British English as well as US spelling. &lt;br /&gt;
&lt;br /&gt;
====&#039;&#039;&#039;Example 3.&#039;&#039;&#039;====&lt;br /&gt;
&lt;br /&gt;
Question: &amp;quot;Name an animal whose name consists of 3 letters and the middle letter is the vowel &#039;&#039;a&#039;&#039;&amp;quot;.&lt;br /&gt;
* Answer 1: &amp;quot;cat&amp;quot;&lt;br /&gt;
* Answer 2: &amp;quot;[bcr]at&amp;quot;. &lt;br /&gt;
* This will match: bat, cat or rat.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;Note&#039;&#039;&#039;&#039;&#039;.- In Regular Expression syntax, the inclusion of characters between square brackets means than ANY of those characters can be used. So, in the above example, the regular expression &amp;quot;[bcr]at&amp;quot; is the exact equivalent of &amp;quot;(b|c|r)at&amp;quot;. Be careful NOT to include the pipe character as separator in your [...] regular expressions. For instance, &amp;quot;[b|c|r]at&amp;quot; will NOT WORK CORRECTLY.&lt;br /&gt;
&lt;br /&gt;
====&#039;&#039;&#039;Example 4.&#039;&#039;&#039;====&lt;br /&gt;
&lt;br /&gt;
The &#039;permutation&#039; feature (introduced in regexp version &#039;&#039;&#039;2012102900&#039;&#039;&#039; for Moodle 2.3+)&lt;br /&gt;
&lt;br /&gt;
Question: &amp;quot;What are the colours of the French flag (in any order)&amp;quot;.&lt;br /&gt;
* Answer 1: &amp;quot;it&#039;s blue, white and red&amp;quot;&lt;br /&gt;
* Answer 2: &amp;lt;nowiki&amp;gt;&amp;quot;it&#039;s [[_blue_, _white_(,| and) _red_]]&amp;quot;.&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
Upon saving the question, Answer 2 will be automatically re-written as Answer 2b:&lt;br /&gt;
&lt;br /&gt;
it&#039;s (blue, white(,| and) red|blue, red(,| and) white|white, red(,| and) blue|white, blue(,| and) red|red, blue(,| and) white|red, white(,| and) blue) &lt;br /&gt;
&lt;br /&gt;
and it will match all the following answers:&lt;br /&gt;
    it&#039;s blue, white, red&lt;br /&gt;
    it&#039;s blue, white and red&lt;br /&gt;
    it&#039;s blue, red, white&lt;br /&gt;
    it&#039;s blue, red and white&lt;br /&gt;
    it&#039;s white, red, blue&lt;br /&gt;
    it&#039;s white, red and blue&lt;br /&gt;
    it&#039;s white, blue, red&lt;br /&gt;
    it&#039;s white, blue and red&lt;br /&gt;
    it&#039;s red, blue, white&lt;br /&gt;
    it&#039;s red, blue and white&lt;br /&gt;
    it&#039;s red, white, blue&lt;br /&gt;
    it&#039;s red, white and blue&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;Note&#039;&#039;&#039;&#039;&#039;.- This &#039;permutation feature&#039; has been asked quite a few times by regexp users. It is definitely &#039;&#039;not&#039;&#039; possible to obtain it by using standard Regular Expressions syntax. &lt;br /&gt;
&lt;br /&gt;
It is possible (but tedious) to write a regular expression including all the possible permutations - as in Answer 2b above - but the &#039;&#039;ad hoc&#039;&#039; syntax I am offering makes it easier to write... provided you strictly adhere to that syntax!&lt;br /&gt;
&lt;br /&gt;
Include within double square brackets the part of the Answer which will contain &#039;permutable&#039; words or phrases. You are actually allowed to have a maximum of 2 such sets of &#039;permutable&#039; words or phrases. But you cannot embed one set within another!&lt;br /&gt;
&lt;br /&gt;
Then, use pairs of underscores (the _ character) to delimit each &#039;permutable&#039; word or phrase. You can still use any of the accepted Regular Expressions characters, as explained here, in your Answers which contain one (or two) such sets of &#039;permutable&#039; words or phrases. If your Answer does not contain an even number of underscores, an Error warning will be displayed upon clicking the Show Alternate Answers button or when trying to Save your question.&lt;br /&gt;
&lt;br /&gt;
====&#039;&#039;&#039;Example 5.&#039;&#039;&#039;====&lt;br /&gt;
&lt;br /&gt;
Another &#039;permutation&#039; example&lt;br /&gt;
&lt;br /&gt;
Question: &amp;quot;Quote the English proverb that is an encouragement to hard, diligent work.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
* Answer 1: &amp;quot;Early to bed and early to rise makes an ma healthy, wealthy and wise&amp;quot;&lt;br /&gt;
* Answer 2: &amp;quot;Early to &amp;lt;nowiki&amp;gt;[[_bed_ and early to _rise_]], makes a man [[_healthy_, _wealthy_ and _wise_]]&amp;lt;/nowiki&amp;gt;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Upon saving the question, Answer 2 will be automatically re-written as Answer 2b:&lt;br /&gt;
&lt;br /&gt;
Early to (bed and early to rise|rise and early to bed) makes a man (healthy, wealthy and wise|healthy, wise and wealthy|wealthy, wise and healthy|wealthy, healthy and wise|wise, healthy and wealthy|wise, wealthy and healthy)&lt;br /&gt;
&lt;br /&gt;
and it will match all the following answers:&lt;br /&gt;
&lt;br /&gt;
    Early to bed and early to rise makes a man healthy, wealthy and wise&lt;br /&gt;
    Early to bed and early to rise makes a man healthy, wise and wealthy&lt;br /&gt;
    Early to bed and early to rise makes a man wealthy, wise and healthy&lt;br /&gt;
    Early to bed and early to rise makes a man wealthy, healthy and wise&lt;br /&gt;
    Early to bed and early to rise makes a man wise, healthy and wealthy&lt;br /&gt;
    Early to bed and early to rise makes a man wise, wealthy and healthy&lt;br /&gt;
    Early to rise and early to bed makes a man healthy, wealthy and wise&lt;br /&gt;
    Early to rise and early to bed makes a man healthy, wise and wealthy&lt;br /&gt;
    Early to rise and early to bed makes a man wealthy, wise and healthy&lt;br /&gt;
    Early to rise and early to bed makes a man wealthy, healthy and wise&lt;br /&gt;
    Early to rise and early to bed makes a man wise, healthy and wealthy&lt;br /&gt;
    Early to rise and early to bed makes a man wise, wealthy and healthy&lt;br /&gt;
&lt;br /&gt;
===Escaping metacharacters===&lt;br /&gt;
&lt;br /&gt;
====Definition====&lt;br /&gt;
In the Regular Expressions syntax, a number of special characters or &#039;&#039;meta characters&#039;&#039; have special functions; but it is possible to force these special characters to be interpreted as normal (or &#039;&#039;literal&#039;&#039;) characters by preceding them with a so-called &#039;&#039;escape&#039;&#039; character, the backslash &amp;quot;\&amp;quot;. &lt;br /&gt;
Below is a (partial) list of those &#039;&#039;meta characters&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;. ^ $ * ( ) [ ] + ? | { } \ /&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
====In Accepted Answers====&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Accepted Answers&#039;&#039;&#039; are Answers which have a grade greater than zero, i.e. are &#039;&#039;totally&#039;&#039; (grade = 100%) or &#039;&#039;partially&#039;&#039; (grade &amp;gt; 0% &amp;lt; 100%) &#039;&#039;correct Answers&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
In those Answers, if you need to use one or more &#039;&#039;meta characters&#039;&#039; for their &#039;&#039;literal&#039;&#039; value, you &#039;&#039;&#039;must&#039;&#039;&#039; &#039;&#039;escape&#039;&#039; them (i.e. precede them with a backslash). &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example 1.-&#039;&#039;&#039; If you want to accept the answer &amp;quot;This computer costs 1000$ in the US.&amp;quot;, you must write the Answer as &amp;quot;This computer costs 1000\$ in the US\.&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example 2.-&#039;&#039;&#039; If you want to accept the answer &amp;quot;Desktop computers are (usually) more powerful than laptops.&amp;quot;, you must write the Answer as &amp;quot;Desktop computers are \(usually\) more powerful than laptops\.&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
* You can mix metacharacters that have a special function with others that have a literal value, within one Answer.&lt;br /&gt;
&#039;&#039;&#039;Example 3.-&#039;&#039;&#039; If you want to accept both answers &amp;quot;Computers are (usually) cheaper than cars.&amp;quot; and &amp;quot;Computers are (usually) less expensive than cars.&amp;quot;, you must write the Answer as &amp;quot;&amp;quot;Computers are \(usually\) (cheaper|less expensive) than cars.&amp;quot;&amp;quot;. &lt;br /&gt;
* In the &#039;&#039;&#039;Accepted Answers&#039;&#039;&#039; boxes you can only enter regular expressions which can generate a finite number of sentences. That is why you will not be allowed to use some &#039;&#039;meta characters&#039;&#039; which match a potentially infinite number of sentences.&lt;br /&gt;
* List of &#039;&#039;meta characters&#039;&#039; which you &#039;&#039;&#039;can&#039;&#039;&#039; use for their RegExp functions:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;( ) [ ] ? |&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* List of &#039;&#039;meta characters&#039;&#039; which you &#039;&#039;&#039;cannot&#039;&#039;&#039; use for their RegExp functions, and can only be used for their &#039;&#039;literal&#039;&#039; value (and must be &#039;&#039;escaped&#039;&#039;).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;. ^ $ * + { } \ /&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* The question mark (?) can be used either for its RegExp function OR, if escaped, for its &#039;&#039;literal&#039;&#039; value.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example 4.-&#039;&#039;&#039; &amp;quot;Do you like Jack(ie)?\?&amp;quot; will accept both &amp;quot;Do you like Jack?&amp;quot; and &amp;quot;Do you like Jackie?&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
====In Incorrect Answers====&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Incorrect Answers&#039;&#039;&#039; are Answers which have a grade equal to zero (or None).&lt;br /&gt;
When you write those Incorrect Answers, you can use the whole range of &#039;&#039;meta characters&#039;&#039; for their special function value:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;. ^ $ * ( ) [ ] + ? | { } \ /&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
For examples of use, see &#039;&#039;&#039;Detecting missing required words or character strings&#039;&#039;&#039; below.&lt;br /&gt;
&lt;br /&gt;
====Answers Validation====&lt;br /&gt;
&lt;br /&gt;
When you validate your Question, the question engine checks the validity of your expression, according to the features explained above. If an error is found, an ERROR message is displayed above the erroneous Answer(s) and you cannot save the Question until that error has been corrected.&lt;br /&gt;
&lt;br /&gt;
The validation system also checks that your parentheses and square brackets are correctly balanced.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note.-&#039;&#039;&#039; The faulty Answer text is &amp;quot;underlined&amp;quot; with the list of errors, as shown below.&lt;br /&gt;
&lt;br /&gt;
[[Image:Errors_en.jpg]]&lt;br /&gt;
&lt;br /&gt;
===Detecting missing required words or character strings===&lt;br /&gt;
&lt;br /&gt;
This is a powerful feature of the RegExp question type. It will analyse the student&#039;s answer for words that are required for the answer to be correct. There are 2 ways to do this.&lt;br /&gt;
* Use what is called &amp;quot;negative lookahead assertion&amp;quot; in regular expressions syntax: &#039;&#039;&#039;^(?!.*required.*)&#039;&#039;&#039;&lt;br /&gt;
* or use an &#039;&#039;ad hoc&#039;&#039; pseudo-syntax provided in RegExp (an initial double hyphen): &#039;&#039;&#039;--.*required.*&#039;&#039;&#039;.&lt;br /&gt;
In the examples below, we shall be using the &#039;ad hoc&#039; RegExp pseudo-syntax, and sometimes give the &amp;quot;negative lookahead assertion&amp;quot; equivalent for anyone interested.&lt;br /&gt;
&lt;br /&gt;
Any Teacher Answer which begins with a double hyphen will analyse the student’s response to find out whether the following string is present or absent. If present, the analysis continues to the next question; if absent, the analysis stops and the relevant feedback message is displayed.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example 4. &#039;&#039;&#039; Question &amp;quot;What are the colors of the French flag?&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
* Teacher Answer 2: --.*blue.*&lt;br /&gt;
* Sample student Response: &amp;quot;it&#039;s red and white&amp;quot;&lt;br /&gt;
* Feedback 2: The color of the sky is missing!&lt;br /&gt;
&lt;br /&gt;
Here, the . (dot) stands for “any character” and the * (asterisk) means “preceding special character repeated any number of times”. The Teacher Answer 2 regular expression above means: check whether the character string &amp;quot;blue&amp;quot;, preceded with anything and followed by anything is absent from the student&#039;s answer. Please note that the use of the asterisk is different in Moodle&#039;s &amp;quot;normal&amp;quot; Short Answer question type and in the RegExp question type.&lt;br /&gt;
&lt;br /&gt;
Actually, this syntax is not sufficient to track the absence of the word &amp;quot;blue&amp;quot; in a student&#039;s answer such as &amp;quot;it&#039;s blueish, white and red&amp;quot;. To make sure that we want to track the absence of &amp;quot;blue&amp;quot; as a word(and not just as part of a word), we must use the metacharacter \b which is an anchor which matches at a position that is called a &amp;quot;word boundary&amp;quot;. Hence the new version of our Example 4:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example 4b. &#039;&#039;&#039; Question &amp;quot;What are the colors of the French flag?&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
* Teacher Answer 2: --.*\bblue\b.*&lt;br /&gt;
* Sample student Response: &amp;quot;it&#039;s blueish, white and red&amp;quot;&lt;br /&gt;
* Feedback 2: The color of the sky is missing!&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note.-&#039;&#039;&#039;&lt;br /&gt;
Using the &amp;quot;negative lookahead assertion&amp;quot; syntax mentioned at the beginning of this section, Teacher Answer 2 would look like this:&lt;br /&gt;
* Teacher Answer 2: &#039;&#039;&#039;^(?!&#039;&#039;&#039;.*\blue\b.*&#039;&#039;&#039;)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example 5.&#039;&#039;&#039; Question: &amp;quot;Name an animal whose name consists of 3 letters and the middle letter is the vowel &#039;&#039;a&#039;&#039;&amp;quot;. &lt;br /&gt;
* Teacher Answer: &amp;quot;--^[bcr]&amp;quot;. &#039;&#039;&#039;OR&#039;&#039;&#039; * Teacher Answer: &amp;quot;--^(b|c|r)&amp;quot;.&lt;br /&gt;
* Sample student Response: &amp;quot;dog&amp;quot;&lt;br /&gt;
* Feedback: &amp;quot;Your answer should start with one of these letters: b, c or r&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note.-&#039;&#039;&#039;&lt;br /&gt;
In regular expressions syntax, the caret ^ stands for &amp;quot;beginning of character string to be matched&amp;quot;, while the dollar sign $ stands for &amp;quot;end of character string&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example 6.&#039;&#039;&#039; Question &amp;quot;What are the colors of the French flag?&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
* Teacher Answer: &amp;quot;--.*(blue|red|white).*&amp;quot;&lt;br /&gt;
* Sample student Response #1: &amp;quot;It&#039;s black and orange.&amp;quot;&lt;br /&gt;
* Feedback: &amp;quot;You have not even found one of the colors of the French flag!&amp;quot;&lt;br /&gt;
* Sample student Response #2: &amp;quot;It&#039;s blue and orange.&amp;quot;&lt;br /&gt;
* Feedback: None, the analysis continues to the next Teacher Answer expression.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;Explanation&#039;&#039;&#039;&#039;&#039;.- The regular expression looks for a missing word among those listed between brackets and separated by the | sign. As soon as one of those words is found, the &amp;quot;missing condition&amp;quot; is considered false, and the response analysis continues to the next Answer&#039;s regular expression.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note.-&#039;&#039;&#039;&lt;br /&gt;
Using the &amp;quot;negative lookahead assertion&amp;quot; syntax, Teacher Answer would look like this: &#039;&#039;&#039;^(?!.*(blue|red|white).*)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example 7.&#039;&#039;&#039; Question &amp;quot;What are the colors of the French flag?&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
* Teacher Answer: &amp;quot;--.*(&#039;&#039;&#039;&amp;amp;&amp;amp;&#039;&#039;&#039;blue&#039;&#039;&#039;&amp;amp;&amp;amp;&#039;&#039;&#039;red&#039;&#039;&#039;&amp;amp;&amp;amp;&#039;&#039;&#039;white).*&amp;quot;&lt;br /&gt;
* Sample student Response #1: &amp;quot;It&#039;s blue and orange.&amp;quot;&lt;br /&gt;
* Feedback: &amp;quot;You have not found all the colors of the French flag&amp;quot;.&lt;br /&gt;
* Sample student Response #2: &amp;quot;white blue red&amp;quot;.&lt;br /&gt;
* Feedback: None, the analysis continues to the next Teacher Answer expression.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;Explanation&#039;&#039;&#039;&#039;&#039;.- The regular expression looks for a missing word among all of those listed between brackets and separated by the &amp;amp;&amp;amp; double character combination. Only if all of those words are present, will the &amp;quot;missing condition&amp;quot; be considered false, and the response analysis continue to the next Answer&#039;s regular expression. Please note that the list of parenthesized words must begin with the &amp;amp;&amp;amp; character sequence.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note.-&#039;&#039;&#039;&lt;br /&gt;
Using the &amp;quot;negative lookahead assertion&amp;quot; syntax, Teacher Answer would look like this: &#039;&#039;&#039;(^(?!.*(blue).*)|^(?!.*(white).*)|^(?!.*(red).*))&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
===Editing a regular expression question===&lt;br /&gt;
&lt;br /&gt;
[[Image:settings01.jpg]]&lt;br /&gt;
&lt;br /&gt;
====Help Button Mode====&lt;br /&gt;
&lt;br /&gt;
Selecting a mode other than &#039;&#039;None&#039;&#039; will display a button to enable the student to get the next letter or word (including the very first letter or word).&lt;br /&gt;
&lt;br /&gt;
In &#039;&#039;Adaptive mode&#039;&#039; the button displayed will say &amp;quot;Buy next letter&amp;quot; or &amp;quot;Buy next word&amp;quot; according to the mode selected by the teacher. For setting the &amp;quot;cost&amp;quot; of buying a letter or word, see the &#039;&#039;Penalty for incorrect tries and Buying a letter or word&#039;&#039; settings further down the Edit form.&lt;br /&gt;
&lt;br /&gt;
In &#039;&#039;Adaptive No penalty&#039;&#039; mode the button displayed will say &amp;quot;Get next letter&amp;quot; or &amp;quot;Get next word&amp;quot;&lt;br /&gt;
&lt;br /&gt;
By default the Help button mode value is set at &#039;&#039;&#039;None&#039;&#039;&#039;. The Help button will only be available to quizzes that have their &#039;&#039;&#039;Question behaviour&#039;&#039;&#039; mode set to &#039;&#039;Adaptive&#039;&#039; or &#039;&#039;Adaptive (no penalties)&#039;&#039; as it does not make sense to enable the Help button for non-adaptive tests.&lt;br /&gt;
&lt;br /&gt;
====&amp;lt;span id=&amp;quot;casesensivity&amp;quot;&amp;gt;Case sensitivity&amp;lt;/span&amp;gt;====&lt;br /&gt;
&lt;br /&gt;
The editing form features a &#039;&#039;Case sensitivity&#039;&#039; setting, which is valid for &#039;&#039;all of the answers&#039;&#039; of the current question. You should not add an &#039;&#039;&#039;/i&#039;&#039;&#039; parameter at the end of your regular expressions. You may need to edit questions authored in 1.9 when you upgrade to 2.0 and remove any &#039;&#039;&#039;/i&#039;&#039;&#039; parameters from your regular expressions.&lt;br /&gt;
&lt;br /&gt;
====Show alternate answers to student====&lt;br /&gt;
Show all correct alternative answers to student when on review page? If there are a lot of automatically generated correct alternative answers, displaying them all can make the review page quite long. So, you may wish to &#039;&#039;not&#039;&#039; display all those alternative correct answers. The first correct answer will always be displayed, under the label &amp;quot;The best correct answer is:&amp;quot;&lt;br /&gt;
&lt;br /&gt;
====&amp;lt;span id=&amp;quot;firstcorrect&amp;quot;&amp;gt;First correct answer&amp;lt;/span&amp;gt;====&lt;br /&gt;
&lt;br /&gt;
For Answer 1 you must enter an answer text which a) is the &amp;quot;best&amp;quot; possible answer; b) is &#039;&#039;&#039;not&#039;&#039;&#039; a regular expression or - more exactly - &#039;&#039;will not be interpreted as a regular expression&#039;&#039; but &amp;quot;as is&amp;quot; and c) has a Grade value of 100%. You will notice that when you create a new RegExp question the Grade value for Answer 1 is already automatically set at 100% and cannot be changed.&lt;br /&gt;
&lt;br /&gt;
Note.- There are two ways to enter an answer containing meta characters, according to whether this is Answer 1 or any of the subsequent Answers. Exemple question: how much did your computer cost?&lt;br /&gt;
&lt;br /&gt;
Answer 1: It cost $1,000.&lt;br /&gt;
&lt;br /&gt;
Answer 2: It cost ( me)?\$1,000\.&lt;br /&gt;
&lt;br /&gt;
In Anwer 1 you just type the expected answer &amp;quot;as is&amp;quot;. The text in Answer 2 will be interpreted as a regular expression, and thus you need to escape the two meta characters (the $ sign and the end-of-sentence full stop). Note that here I have added the optional pronoun &amp;quot;me&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
====Other answers====&lt;br /&gt;
&lt;br /&gt;
Any answers with a Grade higher than 0% must be entered as valid regular expressions &#039;&#039;which can yield acceptable alternative answers&#039;&#039; (regardless of the Grade being less than 100%).&lt;br /&gt;
&lt;br /&gt;
For example, you cannot enter the following Answer with a grade greater than zero:&lt;br /&gt;
&lt;br /&gt;
.*blue, white(,| and) red.*&lt;br /&gt;
&lt;br /&gt;
The reason is that this expression would accept as correct (with a non-null grade) an infinity of answers, many of which would be incorrect, e.g.: &amp;quot;My hat it blue, white, red and orange&amp;quot;, &amp;quot;The French flag is blue, white, red, black and nice&amp;quot; etc.&lt;br /&gt;
&lt;br /&gt;
If you try to do so, validation of your question will fail and an error message will be displayed to tell you where you went wrong.&lt;br /&gt;
&lt;br /&gt;
This means that some regular expressions, which are perfectly valid and would correctly analyse the student&#039;s (correct) answer are not recommended. The only case where they would work is a) if your question&#039;s &#039;&#039;&#039;Display Hint Button&#039;&#039;&#039; is set at No and b) your quiz &#039;&#039;&#039;Adaptative Mode&#039;&#039;&#039; is set at No. This means that you must &#039;&#039;not&#039;&#039; enter as an answer with a grade higher than 0% a regular expression beginning with a double hyphen &amp;quot;--&amp;quot;, used for detecting missing character strings.&lt;br /&gt;
&lt;br /&gt;
====Show/Hide alternate answers====&lt;br /&gt;
&lt;br /&gt;
When you are creating (or modifying) a RegExp question, you may want to make sure that all the alternative correct answers that you have created in the Answers fields will work. You can click the &#039;&#039;&#039;Show alternate answers&#039;&#039;&#039; button to calculate and display all the correct answers in the form you are editing. This may take quite some time on your server, depending on the number and complexity of the regular expressions you have entered in the Answer fields!&lt;br /&gt;
&lt;br /&gt;
On the other hand, it is the recommended way to check that your &amp;quot;correct answers&amp;quot; expressions are correctly written. Here is an example.&lt;br /&gt;
&lt;br /&gt;
Please remember that only Answers regular expressions with a score greater than zero will be used to calculate those alternative answers.&lt;br /&gt;
&lt;br /&gt;
Please note that clicking the &#039;&#039;&#039;Show alternate answers&#039;&#039;&#039; button will perform an analysis of all the regular expressions you entered in the Answers field. If a syntax error is detected at this stage, the alternative correct answers will &#039;&#039;not&#039;&#039; be displayed, and an &#039;&#039;ad hoc&#039;&#039; error message will displayed above the faulty regular expression.&lt;br /&gt;
&lt;br /&gt;
[[Image:showhidealternateanswers.jpg]]&lt;br /&gt;
&lt;br /&gt;
===Previewing questions in popup window (teacher only)===&lt;br /&gt;
&lt;br /&gt;
When the teacher previews a question in the popup preview question window they can display all of the acceptable alternative answers. Those alternative answers are automatically generated from the regular expressions you have entered when creating the question which carry a grade higher than 0%. The very first acceptable answer is printed as is at the top of the list. This is followed by all the other alternative acceptable answers, consisting of a) the Grade attributed; b) a reminder of the regular expression you entered and c) a list of all alternative answers.&lt;br /&gt;
&lt;br /&gt;
[[Image:alternate_answers.jpg]]&lt;br /&gt;
&lt;br /&gt;
===Automatic formatted extra feedback===&lt;br /&gt;
Please note that the RegExp question can be used in any &#039;&#039;&#039;Question behaviour&#039;&#039;&#039; mode. However, it is advised to create quizzes containing only RegExp questions or containing other types of questions, but &#039;&#039;preferably&#039;&#039; if the quiz&#039;s &#039;&#039;&#039;&#039;&#039;Question behaviour / How questions behave&#039;&#039;&#039;&#039;&#039; setting is set to &#039;&#039;Adaptive mode&#039;&#039; (with or without penalty).&lt;br /&gt;
&lt;br /&gt;
When a student (or teacher in Preview Question mode) submits a response to a RegExp question, 3 types of feedback messages are displayed (in Adaptive mode).&lt;br /&gt;
&lt;br /&gt;
* (line 3) The standard correct/incorrect Quiz message (plus the color associated with either state).&lt;br /&gt;
* (line 2) The Feedback message entered by the question creator for each Teacher Answer.&lt;br /&gt;
* (line 1) An extra feedback system is automatically provided, displaying the student&#039;s submitted response, with the following format codes:&lt;br /&gt;
** the beginning of the student&#039;s submitted response which best matches one of the Alternate Answers is displayed in blue;&lt;br /&gt;
** any words from the submitted response which are present in the potential Alternate Answers following the initial correct part submitted are colored in red;&lt;br /&gt;
** any words not present in the potential Alternate Answers following the initial correct part submitted are colored in red and formatted as strike-through.&lt;br /&gt;
The meaning of those colors etc. may need to be explained to the student before they take the quiz, especially the difference between &amp;quot;red&amp;quot; and &amp;quot;red plus strike-through&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
[[Image:regexp_colored_feedback_21.jpg]]&lt;br /&gt;
&lt;br /&gt;
===Feedback given by the Help button===&lt;br /&gt;
&lt;br /&gt;
Each time a student clicks the &#039;&#039;&#039;Buy/Get next letter/word&#039;&#039;&#039; button to buy/get a letter/word, that letter or word is added to his response. The last line of the feedback zone shows the following information: added letter/word; penalty cost (if applicable); total penalties so far (if applicable). Note that if the total of penalties exceeds 1 (i.e. 100%), that total is displayed in red. &lt;br /&gt;
&lt;br /&gt;
When the teacher views the quiz results, on the &#039;&#039;&#039;&#039;Review Attempt&#039;&#039;&#039;&#039; pages, &#039;&#039;&#039;&#039;History of responses&#039;&#039;&#039;&#039; section, the response history shows &#039;&#039;Submit (with a request for help)&#039;&#039; with the response states before and after the letter/word was added.&lt;br /&gt;
&lt;br /&gt;
[[Image:21-addedletterhistory.jpg]]&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
[[Image:21-addedwordhistory.jpg]]&lt;br /&gt;
----&lt;br /&gt;
If the student clicked the &#039;&#039;&#039;Buy/Get next word&#039;&#039;&#039; button while his current submitted answer contained the beginning of a (correct) word, the full correct word is displayed in the Answer field, and the feedback message says &amp;quot;&#039;&#039;Completed&#039;&#039; word&amp;quot; rather than &amp;quot;&#039;&#039;Added&#039;&#039; word&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
[[Image:21-completedwordhistory.jpg]]&lt;br /&gt;
&lt;br /&gt;
===Display right answers===&lt;br /&gt;
&lt;br /&gt;
If your Quiz settings &#039;&#039;Review options&#039;&#039; are set to display the Right answer (During the attempt or Immediately after the attempt etc.), and your question&#039;s &#039;&#039;Show alternate answers to student&#039;&#039; setting is set to &#039;&#039;&#039;Yes&#039;&#039;&#039;, when the student has submitted his attempt, and is reviewing his answers, all of the possible answers will be displayed, as shown in this screenshot. Correct responses with a grade &amp;lt; 100% are also listed, with their grade value.&lt;br /&gt;
&lt;br /&gt;
Please note that the &#039;&#039;teacher&#039;&#039; will always be able to see that &amp;quot;other accepted answers&amp;quot; section when reviewing the Quiz answers.&lt;br /&gt;
&lt;br /&gt;
[[Image:23 correct responses.jpg]]&lt;br /&gt;
&lt;br /&gt;
===Inserting RegExp sub-questions in Cloze type questions===&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;nicetable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!Important notice&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
The RegExp question type is &#039;&#039;&#039;&#039;&#039;not&#039;&#039;&#039;&#039;&#039; recognized by the standard Moodle Cloze question type. If you want to use it you&#039;ll have to replace 2 files (&#039;&#039;renderer.php&#039;&#039; and &#039;&#039;questiontype.php&#039;&#039;) on your &#039;&#039;&amp;lt;yourmoodle&amp;gt;/question/type/multianswer&#039;&#039; with the hacked files available from the links below.&lt;br /&gt;
&lt;br /&gt;
https://raw.github.com/rezeau/moodle/multianswer_regexp-25/question/type/multianswer/questiontype.php&lt;br /&gt;
&lt;br /&gt;
https://raw.github.com/rezeau/moodle/multianswer_regexp-25/question/type/multianswer/renderer.php&lt;br /&gt;
&lt;br /&gt;
Note.- If you are interested in comparing the 2 &amp;quot;standard&amp;quot; Moodle 2.5 multianswer files with the &amp;quot;RegExp hacked&amp;quot; files, go to &lt;br /&gt;
&lt;br /&gt;
https://github.com/rezeau/moodle/compare/MOODLE_25_STABLE...multianswer_regexp-25&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Syntax for inserting RegExp sub-questions in Cloze type questions.&lt;br /&gt;
&lt;br /&gt;
Use &#039;&#039;&#039;REGEXP&#039;&#039;&#039; or shorter &#039;&#039;&#039;RX&#039;&#039;&#039; coding for questions which ignore case&lt;br /&gt;
&lt;br /&gt;
* The colors of the French flag are {:REGEXP:=blue, white and red#Correct!}.&lt;br /&gt;
* The colors of the French flag are {:RX:=blue, white and red#Correct!}.&lt;br /&gt;
&lt;br /&gt;
Will accept &amp;quot;blue, white and red&amp;quot; as a correct answer as well as &amp;quot;Blue, White and Red&amp;quot;&lt;br /&gt;
&lt;br /&gt;
use &#039;&#039;&#039;REGEXP_C&#039;&#039;&#039; or shorter &#039;&#039;&#039;RXC&#039;&#039;&#039; coding for questions in which case matters&lt;br /&gt;
* The colors of the French flag are {:REGEXP_C:=blue, white and red#Correct!}.&lt;br /&gt;
* The colors of the French flag are {:RXC:=blue, white and red#Correct!}.&lt;br /&gt;
&lt;br /&gt;
Will not accept &amp;quot;Blue, White and Red&amp;quot; as a correct answer (wrong capital letters).&lt;br /&gt;
&lt;br /&gt;
Please note that, as explained above, the very first answer &#039;&#039;must&#039;&#039; be Graded 100% (in Cloze type question syntax, all correct is either &#039;&#039;&#039;=&#039;&#039;&#039; or &#039;&#039;&#039;100%&#039;&#039;&#039;) and it must &#039;&#039;not&#039;&#039; be a regular expression.&lt;br /&gt;
&lt;br /&gt;
Please note that the syntax of the sub-questions inside a Cloze-type question must be followed exactly and that you must never ever copy and paste any question text from e.g. a word-processor into the Cloze-type question editing window. Quite often Cloze-type questions yield errors because extraneous blank spaces, new lines, or any odd formatting character has made its way into the question text.&lt;br /&gt;
&lt;br /&gt;
Note that the &#039;&#039;Hint&#039;&#039; button is not available for a RegExp question embedded in a Cloze-type question.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
====Downloads====&lt;br /&gt;
* Download [http://moodle.org/plugins/view.php?plugin=qtype_regexp the Regexp question type] from the Moodle Plugins repository.&lt;br /&gt;
* IMPORTANT : Starting with the 2.2 version of REGEXP, if you want the Help feature, you must also download and install the following 2 &amp;quot;question behaviours&amp;quot; from the Moodle Plugins repository: [http://moodle.org/plugins/view.php?plugin=qbehaviour_regexpadaptivewithhelp RegExp Adaptive mode with Help]  and [http://moodle.org/plugins/view.php?plugin=qbehaviour_regexpadaptivewithhelpnopenalty RegExp Adaptive mode with Help (no penalties)].&lt;br /&gt;
&lt;br /&gt;
====Installation====&lt;br /&gt;
-------------------------------&lt;br /&gt;
If you have downloaded the zip archive from the new moodle.org plugins page&lt;br /&gt;
&lt;br /&gt;
1.- Unzip the zip archive to your local computer.&lt;br /&gt;
&lt;br /&gt;
2.- This will give you a folder named &amp;quot;regexp&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
3.- GO TO STEP 4 below&lt;br /&gt;
---&lt;br /&gt;
&lt;br /&gt;
If you have downloaded the zip archive from https://github.com/rezeau/moodle-qtype_regexp (&#039;&#039;&#039;for latest developments&#039;&#039;&#039;)&lt;br /&gt;
&lt;br /&gt;
1.- Unzip the zip archive to your local computer.&lt;br /&gt;
&lt;br /&gt;
2.- This will give you a folder named something like &amp;quot;rezeau-moodle_qtype_regexp-ff8c6a1&amp;quot;. The end of the name may vary.&lt;br /&gt;
&lt;br /&gt;
3.- ***Rename*** that folder to &amp;quot;regexp&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
---&lt;br /&gt;
&lt;br /&gt;
4.- Upload the regexp folder to &amp;lt;yourmoodle&amp;gt;/question/type/ folder.&lt;br /&gt;
&lt;br /&gt;
5.- Visit your Admin/Notifications page so that the new question type gets installed.&lt;br /&gt;
&lt;br /&gt;
====Learn more about regular expressions====&lt;br /&gt;
&lt;br /&gt;
*[http://www.regular-expressions.info/tutorial.html Regular Expressions Tutorial] A complete introduction to the topic.&lt;br /&gt;
*[http://www.regexplanet.com/simple/index.html Regular Expression Test Page] Test your regular expressions on a variety of &amp;quot;answers&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
====Other Moodle question types based on regular expressions====&lt;br /&gt;
[https://docs.moodle.org/dev/The_OU_PMatch_algorithm The OUP&#039;s PMatch]&lt;br /&gt;
&lt;br /&gt;
[https://docs.moodle.org/20/en/Preg_question_type Oleg Sychev&#039;s Preg question type]&lt;br /&gt;
&lt;br /&gt;
[[fr:question/type/regexp]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Quiz]]&lt;br /&gt;
[[Category:Questions]]&lt;br /&gt;
[[Category:Contributed code]]&lt;/div&gt;</summary>
		<author><name>Rezeau</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/25/en/index.php?title=Regular_Expression_Short-Answer_question_type&amp;diff=106496</id>
		<title>Regular Expression Short-Answer question type</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/25/en/index.php?title=Regular_Expression_Short-Answer_question_type&amp;diff=106496"/>
		<updated>2013-08-30T13:54:01Z</updated>

		<summary type="html">&lt;p&gt;Rezeau: /* Other answers */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===The RegExp Short Answer Question===&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;IMPORTANT NOTE&#039;&#039;&#039;&lt;br /&gt;
** The RegExp Short Answer question described in this documentation page is a 3rd-party plugin, which allows you to create questions for the &#039;&#039;&#039;&#039;&#039;Quiz&#039;&#039;&#039;&#039;&#039; activity. It is &#039;&#039;different&#039;&#039; from the &amp;quot;Use regular expressions&amp;quot; option in the &#039;&#039;&#039;&#039;&#039;Lesson&#039;&#039;&#039;&#039;&#039; module.&lt;br /&gt;
** The documentation for the &amp;quot;Use regular expressions&amp;quot; option in the &#039;&#039;&#039;&#039;&#039;Lesson&#039;&#039;&#039;&#039;&#039; module is to be found at: [https://docs.moodle.org/en/Short_answer_analysis Short answer analysis].&lt;br /&gt;
&lt;br /&gt;
Like the Short Answer question, the RegExp Short Answer question expects the respondent to answer an &amp;quot;open&amp;quot; question with a word or a short phrase. However, the RegExp system system gives you access to a more powerful system for &#039;&#039;analyzing the student&#039;s answers&#039;&#039; with the aim of &#039;&#039;providing more relevant immediate feedback&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
===Correct answer matching a regular expression pattern===&lt;br /&gt;
&lt;br /&gt;
It is not possible to give complete examples of the vast possibilities offered by this system, and the following are just some possibilities.&lt;br /&gt;
&lt;br /&gt;
====&#039;&#039;&#039;Example 1.&#039;&#039;&#039;====&lt;br /&gt;
&lt;br /&gt;
Suppose your question was &amp;quot;What are the colors of the French flag?&amp;quot;. In the Answer 1 box you would type the &amp;quot;best&amp;quot; answer, e.g. &amp;quot;it&#039;s blue, white and red&amp;quot;. For more details, see [[#firstcorrect|First correct answer]] below.&lt;br /&gt;
&lt;br /&gt;
*In the Answer 2 box you would type this regular expression: &amp;quot;it&#039;s blue, white(,| and) red&amp;quot; (quotes should not be typed, of course).&lt;br /&gt;
* If [[#casesensivity|Case sensivity]] is set to &amp;quot;No&amp;quot;, this will match any of those 4 responses:&lt;br /&gt;
    it&#039;s blue, white, red&lt;br /&gt;
    it&#039;s blue, white and red&lt;br /&gt;
    It&#039;s blue, white, red&lt;br /&gt;
    It&#039;s blue, white and red&lt;br /&gt;
&lt;br /&gt;
====&#039;&#039;&#039;Example 2&#039;&#039;&#039;.====&lt;br /&gt;
&lt;br /&gt;
Question: &amp;quot;What are blue, red and yellow?&amp;quot;. &lt;br /&gt;
* Answer 1: &amp;quot;they are colours&amp;quot;. &lt;br /&gt;
* Answer 2: &amp;quot;(|they(&#039;| a)re )colou?rs&amp;quot;. &lt;br /&gt;
* This will match any of those 6 responses:&lt;br /&gt;
    colours&lt;br /&gt;
    colors&lt;br /&gt;
    they&#039;re colours&lt;br /&gt;
    they&#039;re colors&lt;br /&gt;
    they are colours&lt;br /&gt;
    they are colors&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;Note&#039;&#039;&#039;&#039;&#039;.- The beginning of this regular expression &amp;quot;(|they(&#039;| a)re )&amp;quot; will match either nothing or &amp;quot;they&#039;re &amp;quot; or &amp;quot;they are &amp;quot;. In &amp;quot;colou?r&amp;quot;, the question-mark means: the preceding character (or parenthesized group of characters) zero or one time; it is used here to match British English as well as US spelling. &lt;br /&gt;
&lt;br /&gt;
====&#039;&#039;&#039;Example 3.&#039;&#039;&#039;====&lt;br /&gt;
&lt;br /&gt;
Question: &amp;quot;Name an animal whose name consists of 3 letters and the middle letter is the vowel &#039;&#039;a&#039;&#039;&amp;quot;.&lt;br /&gt;
* Answer 1: &amp;quot;cat&amp;quot;&lt;br /&gt;
* Answer 2: &amp;quot;[bcr]at&amp;quot;. &lt;br /&gt;
* This will match: bat, cat or rat.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;Note&#039;&#039;&#039;&#039;&#039;.- In Regular Expression syntax, the inclusion of characters between square brackets means than ANY of those characters can be used. So, in the above example, the regular expression &amp;quot;[bcr]at&amp;quot; is the exact equivalent of &amp;quot;(b|c|r)at&amp;quot;. Be careful NOT to include the pipe character as separator in your [...] regular expressions. For instance, &amp;quot;[b|c|r]at&amp;quot; will NOT WORK CORRECTLY.&lt;br /&gt;
&lt;br /&gt;
====&#039;&#039;&#039;Example 4.&#039;&#039;&#039;====&lt;br /&gt;
&lt;br /&gt;
The &#039;permutation&#039; feature (introduced in regexp version &#039;&#039;&#039;2012102900&#039;&#039;&#039; for Moodle 2.3+)&lt;br /&gt;
&lt;br /&gt;
Question: &amp;quot;What are the colours of the French flag (in any order)&amp;quot;.&lt;br /&gt;
* Answer 1: &amp;quot;it&#039;s blue, white and red&amp;quot;&lt;br /&gt;
* Answer 2: &amp;lt;nowiki&amp;gt;&amp;quot;it&#039;s [[_blue_, _white_(,| and) _red_]]&amp;quot;.&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
Upon saving the question, Answer 2 will be automatically re-written as Answer 2b:&lt;br /&gt;
&lt;br /&gt;
it&#039;s (blue, white(,| and) red|blue, red(,| and) white|white, red(,| and) blue|white, blue(,| and) red|red, blue(,| and) white|red, white(,| and) blue) &lt;br /&gt;
&lt;br /&gt;
and it will match all the following answers:&lt;br /&gt;
    it&#039;s blue, white, red&lt;br /&gt;
    it&#039;s blue, white and red&lt;br /&gt;
    it&#039;s blue, red, white&lt;br /&gt;
    it&#039;s blue, red and white&lt;br /&gt;
    it&#039;s white, red, blue&lt;br /&gt;
    it&#039;s white, red and blue&lt;br /&gt;
    it&#039;s white, blue, red&lt;br /&gt;
    it&#039;s white, blue and red&lt;br /&gt;
    it&#039;s red, blue, white&lt;br /&gt;
    it&#039;s red, blue and white&lt;br /&gt;
    it&#039;s red, white, blue&lt;br /&gt;
    it&#039;s red, white and blue&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;Note&#039;&#039;&#039;&#039;&#039;.- This &#039;permutation feature&#039; has been asked quite a few times by regexp users. It is definitely &#039;&#039;not&#039;&#039; possible to obtain it by using standard Regular Expressions syntax. &lt;br /&gt;
&lt;br /&gt;
It is possible (but tedious) to write a regular expression including all the possible permutations - as in Answer 2b above - but the &#039;&#039;ad hoc&#039;&#039; syntax I am offering makes it easier to write... provided you strictly adhere to that syntax!&lt;br /&gt;
&lt;br /&gt;
Include within double square brackets the part of the Answer which will contain &#039;permutable&#039; words or phrases. You are actually allowed to have a maximum of 2 such sets of &#039;permutable&#039; words or phrases. But you cannot embed one set within another!&lt;br /&gt;
&lt;br /&gt;
Then, use pairs of underscores (the _ character) to delimit each &#039;permutable&#039; word or phrase. You can still use any of the accepted Regular Expressions characters, as explained here, in your Answers which contain one (or two) such sets of &#039;permutable&#039; words or phrases. If your Answer does not contain an even number of underscores, an Error warning will be displayed upon clicking the Show Alternate Answers button or when trying to Save your question.&lt;br /&gt;
&lt;br /&gt;
====&#039;&#039;&#039;Example 5.&#039;&#039;&#039;====&lt;br /&gt;
&lt;br /&gt;
Another &#039;permutation&#039; example&lt;br /&gt;
&lt;br /&gt;
Question: &amp;quot;Quote the English proverb that is an encouragement to hard, diligent work.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
* Answer 1: &amp;quot;Early to bed and early to rise makes an ma healthy, wealthy and wise&amp;quot;&lt;br /&gt;
* Answer 2: &amp;quot;Early to &amp;lt;nowiki&amp;gt;[[_bed_ and early to _rise_]], makes a man [[_healthy_, _wealthy_ and _wise_]]&amp;lt;/nowiki&amp;gt;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Upon saving the question, Answer 2 will be automatically re-written as Answer 2b:&lt;br /&gt;
&lt;br /&gt;
Early to (bed and early to rise|rise and early to bed) makes a man (healthy, wealthy and wise|healthy, wise and wealthy|wealthy, wise and healthy|wealthy, healthy and wise|wise, healthy and wealthy|wise, wealthy and healthy)&lt;br /&gt;
&lt;br /&gt;
and it will match all the following answers:&lt;br /&gt;
&lt;br /&gt;
    Early to bed and early to rise makes a man healthy, wealthy and wise&lt;br /&gt;
    Early to bed and early to rise makes a man healthy, wise and wealthy&lt;br /&gt;
    Early to bed and early to rise makes a man wealthy, wise and healthy&lt;br /&gt;
    Early to bed and early to rise makes a man wealthy, healthy and wise&lt;br /&gt;
    Early to bed and early to rise makes a man wise, healthy and wealthy&lt;br /&gt;
    Early to bed and early to rise makes a man wise, wealthy and healthy&lt;br /&gt;
    Early to rise and early to bed makes a man healthy, wealthy and wise&lt;br /&gt;
    Early to rise and early to bed makes a man healthy, wise and wealthy&lt;br /&gt;
    Early to rise and early to bed makes a man wealthy, wise and healthy&lt;br /&gt;
    Early to rise and early to bed makes a man wealthy, healthy and wise&lt;br /&gt;
    Early to rise and early to bed makes a man wise, healthy and wealthy&lt;br /&gt;
    Early to rise and early to bed makes a man wise, wealthy and healthy&lt;br /&gt;
&lt;br /&gt;
===Escaping metacharacters===&lt;br /&gt;
&lt;br /&gt;
====Definition====&lt;br /&gt;
In the Regular Expressions syntax, a number of special characters or &#039;&#039;meta characters&#039;&#039; have special functions; but it is possible to force these special characters to be interpreted as normal (or &#039;&#039;literal&#039;&#039;) characters by preceding them with a so-called &#039;&#039;escape&#039;&#039; character, the backslash &amp;quot;\&amp;quot;. &lt;br /&gt;
Below is a (partial) list of those &#039;&#039;meta characters&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;. ^ $ * ( ) [ ] + ? | { } \ /&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
====In Accepted Answers====&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Accepted Answers&#039;&#039;&#039; are Answers which have a grade greater than zero, i.e. are &#039;&#039;totally&#039;&#039; (grade = 100%) or &#039;&#039;partially&#039;&#039; (grade &amp;gt; 0% &amp;lt; 100%) &#039;&#039;correct Answers&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
In those Answers, if you need to use one or more &#039;&#039;meta characters&#039;&#039; for their &#039;&#039;literal&#039;&#039; value, you &#039;&#039;&#039;must&#039;&#039;&#039; &#039;&#039;escape&#039;&#039; them (i.e. precede them with a backslash). &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example 1.-&#039;&#039;&#039; If you want to accept the answer &amp;quot;This computer costs 1000$ in the US.&amp;quot;, you must write the Answer as &amp;quot;This computer costs 1000\$ in the US\.&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example 2.-&#039;&#039;&#039; If you want to accept the answer &amp;quot;Desktop computers are (usually) more powerful than laptops.&amp;quot;, you must write the Answer as &amp;quot;Desktop computers are \(usually\) more powerful than laptops\.&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
* You can mix metacharacters that have a special function with others that have a literal value, within one Answer.&lt;br /&gt;
&#039;&#039;&#039;Example 3.-&#039;&#039;&#039; If you want to accept both answers &amp;quot;Computers are (usually) cheaper than cars.&amp;quot; and &amp;quot;Computers are (usually) less expensive than cars.&amp;quot;, you must write the Answer as &amp;quot;&amp;quot;Computers are \(usually\) (cheaper|less expensive) than cars.&amp;quot;&amp;quot;. &lt;br /&gt;
* In the &#039;&#039;&#039;Accepted Answers&#039;&#039;&#039; boxes you can only enter regular expressions which can generate a finite number of sentences. That is why you will not be allowed to use some &#039;&#039;meta characters&#039;&#039; which match a potentially infinite number of sentences.&lt;br /&gt;
* List of &#039;&#039;meta characters&#039;&#039; which you &#039;&#039;&#039;can&#039;&#039;&#039; use for their RegExp functions:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;( ) [ ] ? |&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* List of &#039;&#039;meta characters&#039;&#039; which you &#039;&#039;&#039;cannot&#039;&#039;&#039; use for their RegExp functions, and can only be used for their &#039;&#039;literal&#039;&#039; value (and must be &#039;&#039;escaped&#039;&#039;).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;. ^ $ * + { } \ /&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* The question mark (?) can be used either for its RegExp function OR, if escaped, for its &#039;&#039;literal&#039;&#039; value.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example 4.-&#039;&#039;&#039; &amp;quot;Do you like Jack(ie)?\?&amp;quot; will accept both &amp;quot;Do you like Jack?&amp;quot; and &amp;quot;Do you like Jackie?&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
====In Incorrect Answers====&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Incorrect Answers&#039;&#039;&#039; are Answers which have a grade equal to zero (or None).&lt;br /&gt;
When you write those Incorrect Answers, you can use the whole range of &#039;&#039;meta characters&#039;&#039; for their special function value:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;. ^ $ * ( ) [ ] + ? | { } \ /&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
For examples of use, see &#039;&#039;&#039;Detecting missing required words or character strings&#039;&#039;&#039; below.&lt;br /&gt;
&lt;br /&gt;
====Answers Validation====&lt;br /&gt;
&lt;br /&gt;
When you validate your Question, the question engine checks the validity of your expression, according to the features explained above. If an error is found, an ERROR message is displayed above the erroneous Answer(s) and you cannot save the Question until that error has been corrected.&lt;br /&gt;
&lt;br /&gt;
The validation system also checks that your parentheses and square brackets are correctly balanced.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note.-&#039;&#039;&#039; The faulty Answer text is &amp;quot;underlined&amp;quot; with the list of errors, as shown below.&lt;br /&gt;
&lt;br /&gt;
[[Image:Errors_en.jpg]]&lt;br /&gt;
&lt;br /&gt;
===Detecting missing required words or character strings===&lt;br /&gt;
&lt;br /&gt;
This is a powerful feature of the RegExp question type. It will analyse the student&#039;s answer for words that are required for the answer to be correct. There are 2 ways to do this.&lt;br /&gt;
* Use what is called &amp;quot;negative lookahead assertion&amp;quot; in regular expressions syntax: &#039;&#039;&#039;^(?!.*required.*)&#039;&#039;&#039;&lt;br /&gt;
* or use an &#039;&#039;ad hoc&#039;&#039; pseudo-syntax provided in RegExp (an initial double hyphen): &#039;&#039;&#039;--.*required.*&#039;&#039;&#039;.&lt;br /&gt;
In the examples below, we shall be using the &#039;ad hoc&#039; RegExp pseudo-syntax, and sometimes give the &amp;quot;negative lookahead assertion&amp;quot; equivalent for anyone interested.&lt;br /&gt;
&lt;br /&gt;
Any Teacher Answer which begins with a double hyphen will analyse the student’s response to find out whether the following string is present or absent. If present, the analysis continues to the next question; if absent, the analysis stops and the relevant feedback message is displayed.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example 4. &#039;&#039;&#039; Question &amp;quot;What are the colors of the French flag?&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
* Teacher Answer 2: --.*blue.*&lt;br /&gt;
* Sample student Response: &amp;quot;it&#039;s red and white&amp;quot;&lt;br /&gt;
* Feedback 2: The color of the sky is missing!&lt;br /&gt;
&lt;br /&gt;
Here, the . (dot) stands for “any character” and the * (asterisk) means “preceding special character repeated any number of times”. The Teacher Answer 2 regular expression above means: check whether the character string &amp;quot;blue&amp;quot;, preceded with anything and followed by anything is absent from the student&#039;s answer. Please note that the use of the asterisk is different in Moodle&#039;s &amp;quot;normal&amp;quot; Short Answer question type and in the RegExp question type.&lt;br /&gt;
&lt;br /&gt;
Actually, this syntax is not sufficient to track the absence of the word &amp;quot;blue&amp;quot; in a student&#039;s answer such as &amp;quot;it&#039;s blueish, white and red&amp;quot;. To make sure that we want to track the absence of &amp;quot;blue&amp;quot; as a word(and not just as part of a word), we must use the metacharacter \b which is an anchor which matches at a position that is called a &amp;quot;word boundary&amp;quot;. Hence the new version of our Example 4:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example 4b. &#039;&#039;&#039; Question &amp;quot;What are the colors of the French flag?&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
* Teacher Answer 2: --.*\bblue\b.*&lt;br /&gt;
* Sample student Response: &amp;quot;it&#039;s blueish, white and red&amp;quot;&lt;br /&gt;
* Feedback 2: The color of the sky is missing!&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note.-&#039;&#039;&#039;&lt;br /&gt;
Using the &amp;quot;negative lookahead assertion&amp;quot; syntax mentioned at the beginning of this section, Teacher Answer 2 would look like this:&lt;br /&gt;
* Teacher Answer 2: &#039;&#039;&#039;^(?!&#039;&#039;&#039;.*\blue\b.*&#039;&#039;&#039;)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example 5.&#039;&#039;&#039; Question: &amp;quot;Name an animal whose name consists of 3 letters and the middle letter is the vowel &#039;&#039;a&#039;&#039;&amp;quot;. &lt;br /&gt;
* Teacher Answer: &amp;quot;--^[bcr]&amp;quot;. &#039;&#039;&#039;OR&#039;&#039;&#039; * Teacher Answer: &amp;quot;--^(b|c|r)&amp;quot;.&lt;br /&gt;
* Sample student Response: &amp;quot;dog&amp;quot;&lt;br /&gt;
* Feedback: &amp;quot;Your answer should start with one of these letters: b, c or r&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note.-&#039;&#039;&#039;&lt;br /&gt;
In regular expressions syntax, the caret ^ stands for &amp;quot;beginning of character string to be matched&amp;quot;, while the dollar sign $ stands for &amp;quot;end of character string&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example 6.&#039;&#039;&#039; Question &amp;quot;What are the colors of the French flag?&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
* Teacher Answer: &amp;quot;--.*(blue|red|white).*&amp;quot;&lt;br /&gt;
* Sample student Response #1: &amp;quot;It&#039;s black and orange.&amp;quot;&lt;br /&gt;
* Feedback: &amp;quot;You have not even found one of the colors of the French flag!&amp;quot;&lt;br /&gt;
* Sample student Response #2: &amp;quot;It&#039;s blue and orange.&amp;quot;&lt;br /&gt;
* Feedback: None, the analysis continues to the next Teacher Answer expression.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;Explanation&#039;&#039;&#039;&#039;&#039;.- The regular expression looks for a missing word among those listed between brackets and separated by the | sign. As soon as one of those words is found, the &amp;quot;missing condition&amp;quot; is considered false, and the response analysis continues to the next Answer&#039;s regular expression.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note.-&#039;&#039;&#039;&lt;br /&gt;
Using the &amp;quot;negative lookahead assertion&amp;quot; syntax, Teacher Answer would look like this: &#039;&#039;&#039;^(?!.*(blue|red|white).*)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example 7.&#039;&#039;&#039; Question &amp;quot;What are the colors of the French flag?&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
* Teacher Answer: &amp;quot;--.*(&#039;&#039;&#039;&amp;amp;&amp;amp;&#039;&#039;&#039;blue&#039;&#039;&#039;&amp;amp;&amp;amp;&#039;&#039;&#039;red&#039;&#039;&#039;&amp;amp;&amp;amp;&#039;&#039;&#039;white).*&amp;quot;&lt;br /&gt;
* Sample student Response #1: &amp;quot;It&#039;s blue and orange.&amp;quot;&lt;br /&gt;
* Feedback: &amp;quot;You have not found all the colors of the French flag&amp;quot;.&lt;br /&gt;
* Sample student Response #2: &amp;quot;white blue red&amp;quot;.&lt;br /&gt;
* Feedback: None, the analysis continues to the next Teacher Answer expression.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;Explanation&#039;&#039;&#039;&#039;&#039;.- The regular expression looks for a missing word among all of those listed between brackets and separated by the &amp;amp;&amp;amp; double character combination. Only if all of those words are present, will the &amp;quot;missing condition&amp;quot; be considered false, and the response analysis continue to the next Answer&#039;s regular expression. Please note that the list of parenthesized words must begin with the &amp;amp;&amp;amp; character sequence.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note.-&#039;&#039;&#039;&lt;br /&gt;
Using the &amp;quot;negative lookahead assertion&amp;quot; syntax, Teacher Answer would look like this: &#039;&#039;&#039;(^(?!.*(blue).*)|^(?!.*(white).*)|^(?!.*(red).*))&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
===Editing a regular expression question===&lt;br /&gt;
&lt;br /&gt;
[[Image:settings01.jpg]]&lt;br /&gt;
&lt;br /&gt;
====Help Button Mode====&lt;br /&gt;
&lt;br /&gt;
Selecting a mode other than &#039;&#039;None&#039;&#039; will display a button to enable the student to get the next letter or word (including the very first letter or word).&lt;br /&gt;
&lt;br /&gt;
In &#039;&#039;Adaptive mode&#039;&#039; the button displayed will say &amp;quot;Buy next letter&amp;quot; or &amp;quot;Buy next word&amp;quot; according to the mode selected by the teacher. For setting the &amp;quot;cost&amp;quot; of buying a letter or word, see the &#039;&#039;Penalty for incorrect tries and Buying a letter or word&#039;&#039; settings further down the Edit form.&lt;br /&gt;
&lt;br /&gt;
In &#039;&#039;Adaptive No penalty&#039;&#039; mode the button displayed will say &amp;quot;Get next letter&amp;quot; or &amp;quot;Get next word&amp;quot;&lt;br /&gt;
&lt;br /&gt;
By default the Help button mode value is set at &#039;&#039;&#039;None&#039;&#039;&#039;. The Help button will only be available to quizzes that have their &#039;&#039;&#039;Question behaviour&#039;&#039;&#039; mode set to &#039;&#039;Adaptive&#039;&#039; or &#039;&#039;Adaptive (no penalties)&#039;&#039; as it does not make sense to enable the Help button for non-adaptive tests.&lt;br /&gt;
&lt;br /&gt;
====&amp;lt;span id=&amp;quot;casesensivity&amp;quot;&amp;gt;Case sensitivity&amp;lt;/span&amp;gt;====&lt;br /&gt;
&lt;br /&gt;
The editing form features a &#039;&#039;Case sensitivity&#039;&#039; setting, which is valid for &#039;&#039;all of the answers&#039;&#039; of the current question. You should not add an &#039;&#039;&#039;/i&#039;&#039;&#039; parameter at the end of your regular expressions. You may need to edit questions authored in 1.9 when you upgrade to 2.0 and remove any &#039;&#039;&#039;/i&#039;&#039;&#039; parameters from your regular expressions.&lt;br /&gt;
&lt;br /&gt;
====Show alternate answers to student====&lt;br /&gt;
Show all correct alternative answers to student when on review page? If there are a lot of automatically generated correct alternative answers, displaying them all can make the review page quite long. So, you may wish to &#039;&#039;not&#039;&#039; display all those alternative correct answers. The first correct answer will always be displayed, under the label &amp;quot;The best correct answer is:&amp;quot;&lt;br /&gt;
&lt;br /&gt;
====&amp;lt;span id=&amp;quot;firstcorrect&amp;quot;&amp;gt;First correct answer&amp;lt;/span&amp;gt;====&lt;br /&gt;
&lt;br /&gt;
For Answer 1 you must enter an answer text which a) is the &amp;quot;best&amp;quot; possible answer; b) is &#039;&#039;&#039;not&#039;&#039;&#039; a regular expression or - more exactly - &#039;&#039;will not be interpreted as a regular expression&#039;&#039; but &amp;quot;as is&amp;quot; and c) has a Grade value of 100%. You will notice that when you create a new RegExp question the Grade value for Answer 1 is already automatically set at 100% and cannot be changed.&lt;br /&gt;
&lt;br /&gt;
Note.- There are two ways to enter an answer containing meta characters, according to whether this is Answer 1 or any of the subsequent Answers. Exemple question: how much did your computer cost?&lt;br /&gt;
&lt;br /&gt;
Answer 1: It cost $1,000.&lt;br /&gt;
&lt;br /&gt;
Answer 2: It cost ( me)?\$1,000\.&lt;br /&gt;
&lt;br /&gt;
In Anwer 1 you just type the expected answer &amp;quot;as is&amp;quot;. The text in Answer 2 will be interpreted as a regular expression, and thus you need to escape the two meta characters (the $ sign and the end-of-sentence full stop). Note that here I have added the optional pronoun &amp;quot;me&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
====Other answers====&lt;br /&gt;
&lt;br /&gt;
Any answers with a Grade higher than 0% must be entered as valid regular expressions &#039;&#039;which can yield acceptable alternative answers&#039;&#039; (regardless of the Grade being less than 100%).&lt;br /&gt;
&lt;br /&gt;
For example, you cannot enter the following Answer with a grade greater than zero:&lt;br /&gt;
&lt;br /&gt;
.*blue, white(,| and) red.*&lt;br /&gt;
&lt;br /&gt;
The reason is that this expression would accept as correct (with a non-null grade) an infinity of answers, many of which would be incorrect, e.g.: &amp;quot;My hat it blue, white, red and orange&amp;quot;, &amp;quot;The French flag is blue, white, red, black and nice&amp;quot; etc.&lt;br /&gt;
&lt;br /&gt;
If you try to do so, validation of your question will fail and an error message will be displayed to tell you where you went wrong.&lt;br /&gt;
&lt;br /&gt;
This means that some regular expressions, which are perfectly valid and would correctly analyse the student&#039;s (correct) answer are not recommended. The only case where they would work is a) if your question&#039;s &#039;&#039;&#039;Display Hint Button&#039;&#039;&#039; is set at No and b) your quiz &#039;&#039;&#039;Adaptative Mode&#039;&#039;&#039; is set at No. This means that you must &#039;&#039;not&#039;&#039; enter as an answer with a grade higher than 0% a regular expression beginning with a double hyphen &amp;quot;--&amp;quot;, used for detecting missing character strings.&lt;br /&gt;
&lt;br /&gt;
====Show/Hide alternate answers====&lt;br /&gt;
&lt;br /&gt;
When you are creating (or modifying) a RegExp question, you may want to make sure that all the alternative correct answers that you have created in the Answers fields will work. You can click the &#039;&#039;&#039;Show alternate answers&#039;&#039;&#039; button to calculate and display all the correct answers in the form you are editing. This may take quite some time on your server, depending on the number and complexity of the regular expressions you have entered in the Answer fields!&lt;br /&gt;
&lt;br /&gt;
On the other hand, it is the recommended way to check that your &amp;quot;correct answers&amp;quot; expressions are correctly written. Here is an example.&lt;br /&gt;
&lt;br /&gt;
Please remember that only Answers regular expressions with a score greater than zero will be used to calculate those alternative answers.&lt;br /&gt;
&lt;br /&gt;
Please note that clicking the &#039;&#039;&#039;Show alternate answers&#039;&#039;&#039; button will perform an analysis of all the regular expressions you entered in the Answers field. If a syntax error is detected at this stage, the alternative correct answers will &#039;&#039;not&#039;&#039; be displayed, and an &#039;&#039;ad hoc&#039;&#039; error message will displayed above the faulty regular expression.&lt;br /&gt;
&lt;br /&gt;
[[Image:showhidealternateanswers.jpg]]&lt;br /&gt;
&lt;br /&gt;
===Previewing questions in popup window (teacher only)===&lt;br /&gt;
&lt;br /&gt;
When the teacher previews a question in the popup preview question window they can display all of the acceptable alternative answers. Those alternative answers are automatically generated from the regular expressions you have entered when creating the question which carry a grade higher than 0%. The very first acceptable answer is printed as is at the top of the list. This is followed by all the other alternative acceptable answers, consisting of a) the Grade attributed; b) a reminder of the regular expression you entered and c) a list of all alternative answers.&lt;br /&gt;
&lt;br /&gt;
[[Image:alternate_answers.jpg]]&lt;br /&gt;
&lt;br /&gt;
===Automatic formatted extra feedback===&lt;br /&gt;
Please note that the RegExp question can be used in any &#039;&#039;&#039;Question behaviour&#039;&#039;&#039; mode. However, it is advised to create quizzes containing only RegExp questions or containing other types of questions, but &#039;&#039;preferably&#039;&#039; if the quiz&#039;s &#039;&#039;&#039;&#039;&#039;Question behaviour / How questions behave&#039;&#039;&#039;&#039;&#039; setting is set to &#039;&#039;Adaptive mode&#039;&#039; (with or without penalty).&lt;br /&gt;
&lt;br /&gt;
When a student (or teacher in Preview Question mode) submits a response to a RegExp question, 3 types of feedback messages are displayed (in Adaptive mode).&lt;br /&gt;
&lt;br /&gt;
* (line 3) The standard correct/incorrect Quiz message (plus the color associated with either state).&lt;br /&gt;
* (line 2) The Feedback message entered by the question creator for each Teacher Answer.&lt;br /&gt;
* (line 1) An extra feedback system is automatically provided, displaying the student&#039;s submitted response, with the following format codes:&lt;br /&gt;
** the beginning of the student&#039;s submitted response which best matches one of the Alternate Answers is displayed in blue;&lt;br /&gt;
** any words from the submitted response which are present in the potential Alternate Answers following the initial correct part submitted are colored in red;&lt;br /&gt;
** any words not present in the potential Alternate Answers following the initial correct part submitted are colored in red and formatted as strike-through.&lt;br /&gt;
The meaning of those colors etc. may need to be explained to the student before they take the quiz, especially the difference between &amp;quot;red&amp;quot; and &amp;quot;red plus strike-through&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
[[Image:regexp_colored_feedback_21.jpg]]&lt;br /&gt;
&lt;br /&gt;
===Feedback given by the Help button===&lt;br /&gt;
&lt;br /&gt;
Each time a student clicks the &#039;&#039;&#039;Buy/Get next letter/word&#039;&#039;&#039; button to buy/get a letter/word, that letter or word is added to his response. The last line of the feedback zone shows the following information: added letter/word; penalty cost (if applicable); total penalties so far (if applicable). Note that if the total of penalties exceeds 1 (i.e. 100%), that total is displayed in red. &lt;br /&gt;
&lt;br /&gt;
When the teacher views the quiz results, on the &#039;&#039;&#039;&#039;Review Attempt&#039;&#039;&#039;&#039; pages, &#039;&#039;&#039;&#039;History of responses&#039;&#039;&#039;&#039; section, the response history shows &#039;&#039;Submit (with a request for help)&#039;&#039; with the response states before and after the letter/word was added.&lt;br /&gt;
&lt;br /&gt;
[[Image:21-addedletterhistory.jpg]]&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
[[Image:21-addedwordhistory.jpg]]&lt;br /&gt;
----&lt;br /&gt;
If the student clicked the &#039;&#039;&#039;Buy/Get next word&#039;&#039;&#039; button while his current submitted answer contained the beginning of a (correct) word, the full correct word is displayed in the Answer field, and the feedback message says &amp;quot;&#039;&#039;Completed&#039;&#039; word&amp;quot; rather than &amp;quot;&#039;&#039;Added&#039;&#039; word&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
[[Image:21-completedwordhistory.jpg]]&lt;br /&gt;
&lt;br /&gt;
===Display right answers===&lt;br /&gt;
&lt;br /&gt;
If your Quiz settings &#039;&#039;Review options&#039;&#039; are set to display the Right answer (During the attempt or Immediately after the attempt etc.), and your question&#039;s &#039;&#039;Show alternate answers to student&#039;&#039; setting is set to &#039;&#039;&#039;Yes&#039;&#039;&#039;, when the student has submitted his attempt, and is reviewing his answers, all of the possible answers will be displayed, as shown in this screenshot. Correct responses with a grade &amp;lt; 100% are also listed, with their grade value.&lt;br /&gt;
&lt;br /&gt;
Please note that the &#039;&#039;teacher&#039;&#039; will always be able to see that &amp;quot;other accepted answers&amp;quot; section when reviewing the Quiz answers.&lt;br /&gt;
&lt;br /&gt;
[[Image:23 correct responses.jpg]]&lt;br /&gt;
&lt;br /&gt;
===Inserting RegExp sub-questions in Cloze type questions===&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;nicetable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!Important notice&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
The RegExp question type is &#039;&#039;&#039;&#039;&#039;not&#039;&#039;&#039;&#039;&#039; recognized by the standard Moodle Cloze question type. If you want to use it you&#039;ll have to replace 2 files (&#039;&#039;renderer.php&#039;&#039; and &#039;&#039;questiontype.php&#039;&#039;) on your &#039;&#039;&amp;lt;yourmoodle&amp;gt;/question/type/multianswer&#039;&#039; with the hacked files available from the links below.&lt;br /&gt;
&lt;br /&gt;
https://raw.github.com/rezeau/moodle/multianswer_regexp-25/question/type/multianswer/questiontype.php&lt;br /&gt;
&lt;br /&gt;
https://raw.github.com/rezeau/moodle/multianswer_regexp-25/question/type/multianswer/renderer.php&lt;br /&gt;
&lt;br /&gt;
Note.- If you are interested in comparing the 2 &amp;quot;standard&amp;quot; Moodle 2.5 multianswer files with the &amp;quot;RegExp hacked&amp;quot; files, go to &lt;br /&gt;
&lt;br /&gt;
https://github.com/rezeau/moodle/compare/MOODLE_25_STABLE...multianswer_regexp-25&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Syntax for inserting RegExp sub-questions in Cloze type questions.&lt;br /&gt;
&lt;br /&gt;
Use &#039;&#039;&#039;REGEXP&#039;&#039;&#039; or shorter &#039;&#039;&#039;RX&#039;&#039;&#039; coding for questions which ignore case&lt;br /&gt;
&lt;br /&gt;
* The colors of the French flag are {:REGEXP:=blue, white and red#Correct!}.&lt;br /&gt;
* The colors of the French flag are {:RX:=blue, white and red#Correct!}.&lt;br /&gt;
&lt;br /&gt;
Will accept &amp;quot;blue, white and red&amp;quot; as a correct answer as well as &amp;quot;Blue, White and Red&amp;quot;&lt;br /&gt;
&lt;br /&gt;
use &#039;&#039;&#039;REGEXP_C&#039;&#039;&#039; or shorter &#039;&#039;&#039;RXC&#039;&#039;&#039; coding for questions in which case matters&lt;br /&gt;
* The colors of the French flag are {:REGEXP_C:=blue, white and red#Correct!}.&lt;br /&gt;
* The colors of the French flag are {:RXC:=blue, white and red#Correct!}.&lt;br /&gt;
&lt;br /&gt;
Will not accept &amp;quot;Blue, White and Red&amp;quot; as a correct answer (wrong capital letters).&lt;br /&gt;
&lt;br /&gt;
Please note that, as explained above, the very first answer &#039;&#039;must&#039;&#039; be Graded 100% (in Cloze type question syntax, all correct is either &#039;&#039;&#039;=&#039;&#039;&#039; or &#039;&#039;&#039;100%&#039;&#039;&#039;) and it must &#039;&#039;not&#039;&#039; be a regular expression.&lt;br /&gt;
&lt;br /&gt;
Please note that the syntax of the sub-questions inside a Cloze-type question must be followed exactly and that you must never ever copy and paste any question text from e.g. a word-processor into the Cloze-type question editing window. Quite often Cloze-type questions yield errors because extraneous blank spaces, new lines, or any odd formatting character has made its way into the question text.&lt;br /&gt;
&lt;br /&gt;
Note that the &#039;&#039;Hint&#039;&#039; button is not available for a RegExp question embedded in a Cloze-type question.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
====Downloads====&lt;br /&gt;
* Download [http://moodle.org/plugins/view.php?plugin=qtype_regexp the latest 2.2 version (with behaviours)] from the new Plugins repository.&lt;br /&gt;
* IMPORTANT : for the 2.2 version, if you want the Help feature, you must also download and install the following 2 &amp;quot;question behaviours&amp;quot; from the new Plugins repository: [http://moodle.org/plugins/view.php?plugin=qbehaviour_regexpadaptivewithhelp RegExp Adaptive mode with Help]  and [http://moodle.org/plugins/view.php?plugin=qbehaviour_regexpadaptivewithhelpnopenalty RegExp Adaptive mode with Help (no penalties)].&lt;br /&gt;
&lt;br /&gt;
====Installation====&lt;br /&gt;
-------------------------------&lt;br /&gt;
If you have downloaded the zip archive from the new moodle.org plugins page&lt;br /&gt;
&lt;br /&gt;
1.- Unzip the zip archive to your local computer.&lt;br /&gt;
&lt;br /&gt;
2.- This will give you a folder named &amp;quot;regexp&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
3.- GO TO STEP 4 below&lt;br /&gt;
---&lt;br /&gt;
&lt;br /&gt;
If you have downloaded the zip archive from https://github.com/rezeau/moodle-qtype_regexp (&#039;&#039;&#039;for latest developments&#039;&#039;&#039;)&lt;br /&gt;
&lt;br /&gt;
1.- Unzip the zip archive to your local computer.&lt;br /&gt;
&lt;br /&gt;
2.- This will give you a folder named something like &amp;quot;rezeau-moodle_qtype_regexp-ff8c6a1&amp;quot;. The end of the name may vary.&lt;br /&gt;
&lt;br /&gt;
3.- ***Rename*** that folder to &amp;quot;regexp&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
---&lt;br /&gt;
&lt;br /&gt;
4.- Upload the regexp folder to &amp;lt;yourmoodle&amp;gt;/question/type/ folder.&lt;br /&gt;
&lt;br /&gt;
5.- Visit your Admin/Notifications page so that the new question type gets installed.&lt;br /&gt;
&lt;br /&gt;
====Learn more about regular expressions====&lt;br /&gt;
&lt;br /&gt;
*[http://www.regular-expressions.info/tutorial.html Regular Expressions Tutorial] A complete introduction to the topic.&lt;br /&gt;
*[http://www.regexplanet.com/simple/index.html Regular Expression Test Page] Test your regular expressions on a variety of &amp;quot;answers&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
====Other Moodle question types based on regular expressions====&lt;br /&gt;
[https://docs.moodle.org/dev/The_OU_PMatch_algorithm The OUP&#039;s PMatch]&lt;br /&gt;
&lt;br /&gt;
[https://docs.moodle.org/20/en/Preg_question_type Oleg Sychev&#039;s Preg question type]&lt;br /&gt;
&lt;br /&gt;
[[fr:question/type/regexp]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Quiz]]&lt;br /&gt;
[[Category:Questions]]&lt;br /&gt;
[[Category:Contributed code]]&lt;/div&gt;</summary>
		<author><name>Rezeau</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/25/en/index.php?title=Editing_Questionnaire_questions&amp;diff=106333</id>
		<title>Editing Questionnaire questions</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/25/en/index.php?title=Editing_Questionnaire_questions&amp;diff=106333"/>
		<updated>2013-08-09T13:31:43Z</updated>

		<summary type="html">&lt;p&gt;Rezeau: /* Questionnaires using the Conditional Branching feature */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Questionnaire}}&lt;br /&gt;
&lt;br /&gt;
==Editing questions==&lt;br /&gt;
* On the Questionnaire &#039;&#039;&#039;Editing Questions&#039;&#039;&#039; page is displayed a drop-down list of the question types available and a list of the questions already created for the current questionnaire instance (if any).&lt;br /&gt;
* Using the standard Moodle icons you can change the order of the questions in the questionnaire, edit or delete questions.&lt;br /&gt;
&lt;br /&gt;
==Common options==&lt;br /&gt;
===Question Name===&lt;br /&gt;
&lt;br /&gt;
====Questionnaires &#039;&#039;&#039;not&#039;&#039;&#039; using the Conditional Branching feature====&lt;br /&gt;
&lt;br /&gt;
You can &#039;&#039;optionally&#039;&#039; enter a &#039;&#039;&#039;Question Name&#039;&#039;&#039; for each question.&lt;br /&gt;
&lt;br /&gt;
If your questionnaire does not use the &amp;quot;Conditional Branching&amp;quot; feature, the &#039;&#039;&#039;Question Name&#039;&#039;&#039; is only used when you export responses to CSV/Excel format. If you never export to CSV, then you needn&#039;t worry about Question names. If you plan to regularly export your questionnaire data to CSV, then you have a choice of two options for question naming.&lt;br /&gt;
&lt;br /&gt;
=====Option 1: significant names=====&lt;br /&gt;
&lt;br /&gt;
In the &#039;&#039;&#039;Question Name &#039;&#039;&#039; box, enter &#039;&#039;meaningful&#039;&#039;, &#039;&#039;short&#039;&#039; and &#039;&#039;&#039;&#039;&#039;different&#039;&#039;&#039;&#039;&#039; question names for all of the questions within one questionnaire. In the CSV export file, all those question names will be prefixed with the question&#039;s actual number (= position) in the quiz. Examples:&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot;&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; | question number (position) in the questionnaire&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; | question name entered by teacher&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; | field header in csv export&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center&amp;quot;&amp;gt;5&amp;lt;/div&amp;gt;&lt;br /&gt;
| favorite colors&lt;br /&gt;
| Q05_favorite colors&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center&amp;quot;&amp;gt;6&amp;lt;/div&amp;gt;&lt;br /&gt;
| why_use_Moodle&lt;br /&gt;
| Q06_why_use_moodle&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center&amp;quot;&amp;gt;7&amp;lt;/div&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
user-friendliness&lt;br /&gt;
&lt;br /&gt;
&#039;&#039; (rate question with 3 possible answers: Moodle, WebCT and Blackboard) &#039;&#039;&lt;br /&gt;
|&lt;br /&gt;
Q07_user-friendliness-&amp;gt;Moodle&amp;lt;br /&amp;gt; Q07_user-friendliness-&amp;gt;WebCT&amp;lt;br /&amp;gt; Q07_user-friendliness-&amp;gt;Blackboard&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=====Option 2: leave the Question Name boxes blank=====&lt;br /&gt;
&lt;br /&gt;
For each un-named question, CSV export will automatically generate a question name. This is required for table header fields in the CSV and subsequent Excel tables or any statistics package you might be using. The question name generated will be based on the question number in the actual Quiz (excluding &#039;&#039;Section Text&#039;&#039; pseudo-questions, of course) e.g. Q01, Q02, ... Q99. For questions with multiple answers, such as rate-type or Likert type questions, a sub-question number will be generated (Q02_1, Q02_2, Q02_3, etc.). This type of &amp;quot;short-name&amp;quot; naming scheme is advisable for exporting your data to a statistics software. Of course, it&#039;s up to you to have your own system for remembering which abbreviated question name corresponds to which question in your questionnaire!&lt;br /&gt;
&lt;br /&gt;
{| width=&amp;quot;100%&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
! style=&amp;quot;width: 33%&amp;quot; scope=&amp;quot;col&amp;quot; | question number (position) in the questionnaire&lt;br /&gt;
! style=&amp;quot;width: 33%&amp;quot; scope=&amp;quot;col&amp;quot; | question name entered by teacher&lt;br /&gt;
! style=&amp;quot;width: 33%&amp;quot; scope=&amp;quot;col&amp;quot; | field header in csv export&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center&amp;quot;&amp;gt;5&amp;lt;/div&amp;gt;&lt;br /&gt;
| style=&amp;quot;background-color: #CCCCCC&amp;quot; |&lt;br /&gt;
| Q05&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center&amp;quot;&amp;gt;6&amp;lt;/div&amp;gt;&lt;br /&gt;
| style=&amp;quot;background-color: #CCCCCC&amp;quot; |&lt;br /&gt;
| Q06&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center&amp;quot;&amp;gt;7&amp;lt;/div&amp;gt;&lt;br /&gt;
| style=&amp;quot;background-color: #CCCCCC&amp;quot; |&lt;br /&gt;
|&lt;br /&gt;
Q07_1&amp;lt;br /&amp;gt; Q07_2&amp;lt;br /&amp;gt; Q07_3&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
It is quite possible (but maybe not advisable) to mix the two systems, and have within one questionnaire both named and un-named questions.&lt;br /&gt;
&lt;br /&gt;
====Questionnaires using the Conditional Branching feature====&lt;br /&gt;
&lt;br /&gt;
{{New features}}&lt;br /&gt;
&lt;br /&gt;
If you need a question to be used as the &amp;quot;parent&amp;quot; of one or more subsequent questions in your questionnaire, then you &#039;&#039;&#039;must&#039;&#039;&#039; name that &amp;quot;parent question&amp;quot;. Only those (radio buttons, dropdown list or yes/no) questions with a &#039;&#039;name&#039;&#039; will appear in the Parent question dropdown list when adding a new question, as shown on the following screenshots.&lt;br /&gt;
&lt;br /&gt;
[[Image:05-08-2013 15-26-11.jpg]]&lt;br /&gt;
&lt;br /&gt;
[[Image:05-08-2013 15-34-55.jpg]]&lt;br /&gt;
&lt;br /&gt;
For more information, see [[Questionnaire_Conditional_branching|Conditional branching]].&lt;br /&gt;
&lt;br /&gt;
===Response Required===&lt;br /&gt;
If you select &#039;&#039;&#039;&#039;&#039;Yes&#039;&#039;&#039;&#039;&#039;, response to this question will be required, i.e. the respondent will not be able to submit the questionnaire until this question has been answered. If the respondent tries to submit a questionnaire with unanswered required questions (or, in the case of a questionnaire with more than one section, to go to the next page), a warning message will be displayed with a list of all the missing &#039;&#039;required &#039;&#039;questions in the questionnaire (or on the actual page).&lt;br /&gt;
&lt;br /&gt;
Default.- &#039;&#039;&#039;&#039;&#039;No&#039;&#039;&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;.- When you create new questions in sequence (one after the other), this parameter is carried over to subsequent questions. E.g. if you create question #1 with &#039;&#039;&#039;Response Required&#039;&#039;&#039; = &#039;&#039;&#039;&#039;&#039;Yes&#039;&#039;&#039;&#039;&#039;, then the &#039;&#039;&#039;Response Required&#039;&#039;&#039; parameter will be pre-set to &#039;&#039;&#039;&#039;&#039;Yes&#039;&#039;&#039;&#039;&#039; for question #2, etc. You can of course change this parameter at any time.&lt;br /&gt;
&lt;br /&gt;
In the &#039;&#039;Manage Questions&#039;&#039; section of the Questions editing page, once a question has been created, you can use the green and red dots to switch its Required state, as a shortcut alternative of editing the question.&lt;br /&gt;
&lt;br /&gt;
{{New features}}&lt;br /&gt;
&lt;br /&gt;
[[Image:05-08-2013 15-49-48.jpg]]&lt;br /&gt;
&lt;br /&gt;
===Parent Question===&lt;br /&gt;
{{New features}}&lt;br /&gt;
See [[Questionnaire_Conditional_branching|Conditional branching]]&lt;br /&gt;
&lt;br /&gt;
===Question Text===&lt;br /&gt;
Enter your question text in this box. The HTML editor is available, which means that you can display not only formatted text but also images or other media in a questionnaire&#039;s questions text.&lt;br /&gt;
&lt;br /&gt;
==Question Types==&lt;br /&gt;
&lt;br /&gt;
Select the type of question from the drop-down list and click on the &#039;&#039;&#039;Add selected question type&#039;&#039;&#039; button.&lt;br /&gt;
&lt;br /&gt;
===---Page Break---===&lt;br /&gt;
&lt;br /&gt;
Use this to insert page breaks in longish questionnaires. Note that if a page contains questions with required response the respondent will not be allowed to navigate to the next page unless those required responses have been given.&lt;br /&gt;
&lt;br /&gt;
If your questionnaire uses the Conditional branching feature, then page breaks will be &#039;&#039;automatically&#039;&#039; inserted when you add &amp;quot;parent&amp;quot; or &amp;quot;child&amp;quot; questions. Page breaks which are needed to ensure a correct &amp;quot;Conditional branching&amp;quot; flow cannot be moved or deleted. Their Move and Delete icons are disabled.&lt;br /&gt;
&lt;br /&gt;
[[Image:05-08-2013 15-58-09.jpg]]&lt;br /&gt;
&lt;br /&gt;
===Check Boxes===&lt;br /&gt;
Check boxes allow the user to select multiple answers from a list of options.&lt;br /&gt;
&lt;br /&gt;
==== Question editing interface ====&lt;br /&gt;
&lt;br /&gt;
[[Image:05-08-2013 14-58-42.jpg]]&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;width: 100%&amp;quot; border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;5&amp;quot;&lt;br /&gt;
! style=&amp;quot;width: 50%&amp;quot; scope=&amp;quot;col&amp;quot; | Editing Mode&lt;br /&gt;
! style=&amp;quot;width: 50%&amp;quot; scope=&amp;quot;col&amp;quot; | Questionnaire View&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
{| style=&amp;quot;width: 300&amp;quot;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; valign=&amp;quot;top&amp;quot; | Question text: What are your favorite hobbies?&lt;br /&gt;
&lt;br /&gt;
Possible answers:&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border: #666666 thin solid&amp;quot; |&lt;br /&gt;
Watching TV&amp;lt;br /&amp;gt; Dancing &amp;lt;br /&amp;gt; Computing&amp;lt;br /&amp;gt; !other=Another hobby:&lt;br /&gt;
|}&lt;br /&gt;
|&lt;br /&gt;
[[Image:05-08-2013 13-29-49.jpg]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
You may enter &amp;lt;tt&amp;gt;“!other”&amp;lt;/tt&amp;gt; on a line to create an &#039;&#039;&#039;&#039;&#039;optional&#039;&#039;&#039;&#039;&#039; &#039;&#039;fill in the blank&#039;&#039; option. An&amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;!other&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt; box defaults to using the prompt &#039;&#039;Other: &#039;&#039;, (or the equivalent translation for &#039;&#039;Other&#039;&#039; in the current language being used). You may change this default prompt by using the format: &amp;lt;tt&amp;gt;“!other=&#039;&#039;prompt text”&#039;&#039;&amp;lt;/tt&amp;gt; as shown in the example above.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Notes.-&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
# At the moment the length of the &#039;&#039;fill in the blank&#039;&#039; input text box is set to 25 characters and is not customizable through the online interface.&lt;br /&gt;
# You may provide more than one &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;!other&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt; &#039;&#039;fill in the blank&#039;&#039; option for a Check Boxes question, but this might cause problems so it is &#039;&#039;not recommended&#039;&#039;.&lt;br /&gt;
# When a respondent answers a&#039;&#039;&#039; Check Boxes&#039;&#039;&#039; question which has been created as &#039;&#039;&#039;Required&#039;&#039;&#039;, and the &#039;&#039;&#039;Min. forced responses &#039;&#039;&#039;and&#039;&#039;&#039; Max. forced responses&#039;&#039;&#039; parameters have been used, then a warning message will be displayed if respondent does not check the required number of boxes. &lt;br /&gt;
# Note that, if the &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;!other&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt; &#039;&#039;fill in the blank&#039;&#039; option has been created, then if it is checked by the respondent, it will count in the total of minimum/maximum required check boxes.&lt;br /&gt;
# If a respondent checks a &#039;&#039;fill in the blank&#039;&#039; option &#039;&#039;&#039;check box&#039;&#039;&#039; and leaves the text field empty, &#039;&#039;that box will be unchecked&#039;&#039; (upon navigating to the next page or upon submitting the questionnaire).&lt;br /&gt;
# If a respondent has cheked &#039;&#039;a fill in the blank&#039;&#039; option &#039;&#039;&#039;check box&#039;&#039;&#039; and has filled in the text field, and later on changes his mind and unckecks that box, the &#039;&#039;fill in the blank&#039;&#039; text field will be automatically emptied (cool, ain&#039;t it?).&lt;br /&gt;
&lt;br /&gt;
===Date===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Use the day/month/year format, e.g. for March 14th, 1945: &#039;&#039;&#039;14/3/1945&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Use this question type if you expect the response to be a correctly formatted date. The format will depend upon the language currently being used by the questionnaire respondent. For example 4/21/2007 (US); 21/4/2007 (UK); 21-4-2007 (France); etc. An example will be displayed in the questionnaire. If an &amp;quot;impossible&amp;quot; or wrongly formatted date is entered, it will either be re-written or reformatted correctly (if possible) or an error message will be displayed to the respondent. In order for dates to be correctly exported to spreadsheets such as Excel, respondent must enter &#039;&#039;a date in the 1902 to 2037 range&#039;&#039;. If a date outside this range is expected from respondents, then use the &#039;&#039;&#039;Text Box&#039;&#039;&#039; question type instead. The date question type will accept dates consisting only of a month plus a year (e.g. 12/2008 for december 2008) or only a year (e.g. 2008). However, for spreadsheet processing compatibility, such incomplete dates will be automatically transformed to complete dd/mm/yy dates, e.g. 12/2008 -&amp;gt; &#039;&#039;&#039;01/&#039;&#039;&#039;12/2008 and 2008 -&amp;gt; &#039;&#039;&#039;01/01/&#039;&#039;&#039;2008. You may have to explain this pecularity to your questionnaire users beforehand.&lt;br /&gt;
&lt;br /&gt;
===Dropdown Box===&lt;br /&gt;
&lt;br /&gt;
There is no real advantage to using the &#039;&#039;&#039;Dropdown Box&#039;&#039;&#039; over using the &#039;&#039;&#039;Radio Buttons&#039;&#039;&#039; except perhaps for longish lists of options, to save screen space.&lt;br /&gt;
&lt;br /&gt;
===Essay Box===&lt;br /&gt;
====Question editing interface====&lt;br /&gt;
[[Image:05-08-2013 15-11-45.jpg]]&lt;br /&gt;
====Settings====&lt;br /&gt;
This question will display a plain text box with &#039;&#039;&#039;x&#039;&#039;&#039; &#039;&#039;Textarea columns&#039;&#039; (or area &#039;&#039;width&#039;&#039;) and &#039;&#039;&#039;y&#039;&#039;&#039; &#039;&#039;Textarea rows&#039;&#039; (number of text &#039;&#039;lines&#039;&#039;).&lt;br /&gt;
&lt;br /&gt;
If you leave both x and y to their default &#039;&#039;&#039;0&#039;&#039;&#039; value (or if you set it to &#039;&#039;&#039;0&#039;&#039;&#039;), then moodle&#039;s &#039;&#039;&#039;HTML editor&#039;&#039;&#039; will be displayed with standard height and width (if available in the course/user context &amp;amp; user profile).&lt;br /&gt;
&lt;br /&gt;
===Label===&lt;br /&gt;
&lt;br /&gt;
This is not a question but a (short) text which will be displayed to introduce a series of questions.&lt;br /&gt;
&lt;br /&gt;
===Numeric===&lt;br /&gt;
&lt;br /&gt;
Use this question type if you expect the response to be a correctly formatted number. By using the &#039;&#039;&#039;Max. digits allowed &#039;&#039;&#039;and &#039;&#039;&#039;Nb of decimal digits &#039;&#039;&#039;parameters you can specify the length and number of decimal places required.&lt;br /&gt;
&lt;br /&gt;
=== Radio Buttons ===&lt;br /&gt;
====Question editing interface====&lt;br /&gt;
[[Image:05-08-2013 15-03-17.jpg]]&lt;br /&gt;
&lt;br /&gt;
====Radio buttons Alignment====&lt;br /&gt;
[[Image:05-08-2013 13-35-04.jpg]]&lt;br /&gt;
&lt;br /&gt;
====Possible answers====&lt;br /&gt;
You must fill in one answer per line in the &#039;&#039;&#039;Possible answers&#039;&#039;&#039; box.&lt;br /&gt;
&lt;br /&gt;
Examples:&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;5&amp;quot;&lt;br /&gt;
! style=&amp;quot;width: 250&amp;quot; scope=&amp;quot;col&amp;quot; valign=&amp;quot;top&amp;quot; | Editing Mode&lt;br /&gt;
! style=&amp;quot;width: 243&amp;quot; scope=&amp;quot;col&amp;quot; valign=&amp;quot;top&amp;quot; | Questionnaire View&lt;br /&gt;
! style=&amp;quot;width: 434&amp;quot; scope=&amp;quot;col&amp;quot; valign=&amp;quot;top&amp;quot; | (optional horizontal display)&lt;br /&gt;
|-&lt;br /&gt;
| valign=&amp;quot;top&amp;quot; |&lt;br /&gt;
&#039;&#039; 1.Possible answers &#039;&#039;&amp;lt;nowiki&amp;gt;: &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Red&amp;lt;br /&amp;gt; Blue&amp;lt;br /&amp;gt; Black&lt;br /&gt;
| valign=&amp;quot;top&amp;quot; |&lt;br /&gt;
&#039;&#039;&#039; What is your favorite color? &#039;&#039;&#039;&amp;lt;br /&amp;gt; Red&amp;lt;br /&amp;gt; Blue&amp;lt;br /&amp;gt; Black&lt;br /&gt;
| valign=&amp;quot;top&amp;quot; |&lt;br /&gt;
&#039;&#039;&#039; What is your favorite color? &#039;&#039;&#039;&amp;lt;br /&amp;gt; Red  Blue  Black&lt;br /&gt;
|-&lt;br /&gt;
| valign=&amp;quot;top&amp;quot; |&lt;br /&gt;
&#039;&#039; 2.Possible answers &#039;&#039;&amp;lt;nowiki&amp;gt;: &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Red&amp;lt;br /&amp;gt; Blue&amp;lt;br /&amp;gt; Black&amp;lt;br /&amp;gt; !other&lt;br /&gt;
| valign=&amp;quot;top&amp;quot; |&lt;br /&gt;
&#039;&#039;&#039; What is your favorite color? &#039;&#039;&#039;&amp;lt;br /&amp;gt; Red&amp;lt;br /&amp;gt; Blue&amp;lt;br /&amp;gt; Black&amp;lt;br /&amp;gt; Other:&lt;br /&gt;
| valign=&amp;quot;top&amp;quot; |&lt;br /&gt;
&#039;&#039;&#039; What is your favorite color? &#039;&#039;&#039;&amp;lt;br /&amp;gt; Red  Blue  Black &amp;lt;br /&amp;gt; Other:&lt;br /&gt;
|-&lt;br /&gt;
| valign=&amp;quot;top&amp;quot; |&lt;br /&gt;
&#039;&#039; 3.Possible answers:&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Red&amp;lt;br /&amp;gt; Blue&amp;lt;br /&amp;gt; Black&amp;lt;br /&amp;gt; !other=Another color:&lt;br /&gt;
| valign=&amp;quot;top&amp;quot; |&lt;br /&gt;
&#039;&#039;&#039; What is your favorite color? &#039;&#039;&#039;&amp;lt;br /&amp;gt; Red&amp;lt;br /&amp;gt; Blue&amp;lt;br /&amp;gt; Black&amp;lt;br /&amp;gt; Another color:&lt;br /&gt;
| valign=&amp;quot;top&amp;quot; |&lt;br /&gt;
&#039;&#039;&#039; What is your favorite color? &#039;&#039;&#039;&amp;lt;br /&amp;gt; Red  Blue  Black &amp;lt;br /&amp;gt; Another color:&lt;br /&gt;
|-&lt;br /&gt;
| valign=&amp;quot;top&amp;quot; |&lt;br /&gt;
| valign=&amp;quot;top&amp;quot; | Questionnaire View&lt;br /&gt;
| valign=&amp;quot;top&amp;quot; | &#039;&#039;&#039;&#039;&#039; Text data export &#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
| valign=&amp;quot;top&amp;quot; |&lt;br /&gt;
&#039;&#039; 4.Possible answers: &#039;&#039;&lt;br /&gt;
&lt;br /&gt;
red::the color of blood &amp;lt;br /&amp;gt; blue::the color of the sky &amp;lt;br /&amp;gt; black::opposite of white&lt;br /&gt;
| valign=&amp;quot;top&amp;quot; |&lt;br /&gt;
&#039;&#039;&#039; What is your favorite color? &#039;&#039;&#039;&amp;lt;br /&amp;gt; the color of blood&amp;lt;br /&amp;gt; the color of the sky&amp;lt;br /&amp;gt; opposite of white&lt;br /&gt;
| valign=&amp;quot;top&amp;quot; |&lt;br /&gt;
&#039;&#039; The &amp;quot;values&amp;quot; red, blue and black will be exported to the columns instead of standard 1, 2 and 3 numbers.&amp;lt;br /&amp;gt; See [[Viewing_Questionnaire_responses#Download_in_text_format|Download in text format]]. &#039;&#039;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
You may enter &amp;lt;tt&amp;gt;“!other”&amp;lt;/tt&amp;gt; on a line to create an &#039;&#039;&#039;&#039;&#039;optional&#039;&#039;&#039;&#039;&#039; &#039;&#039;fill in the blank&#039;&#039; option. An &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;!other&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt; box defaults to using the prompt &#039;&#039;Other:&#039;&#039;, (or the equivalent translation for &#039;&#039;Other&#039;&#039; in the current language being used). You may change this default prompt by using the format: &amp;lt;tt&amp;gt;“!other=&#039;&#039;prompt text”&#039;&#039;&amp;lt;/tt&amp;gt; as shown in Example #3 above.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Notes&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
# At the moment the length of the &#039;&#039;fill in the blank&#039;&#039; input text box is set to 25 characters and is not customizable through the online interface.&lt;br /&gt;
# It does not make sense to provide more than one &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;!other&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt; &#039;&#039;fill in the blank&#039;&#039; option for a Radio Buttons question.&lt;br /&gt;
# If a respondent checks a &#039;&#039;fill in the blank&#039;&#039; option &#039;&#039;&#039;radio button&#039;&#039;&#039; and leaves the text field empty, &#039;&#039;a warning message will be displayed&#039;&#039; (upon navigating to the next page or upon submitting the questionnaire).&lt;br /&gt;
# If a respondent has checked a &#039;&#039;fill in the blank&#039;&#039; option &#039;&#039;&#039;radio button&#039;&#039;&#039; and has filled in the text field, and later on changes his mind and clicks a different radio button in the same question, the &#039;&#039;fill in the blank&#039;&#039; text field previously entered will be automatically emptied.&lt;br /&gt;
# Example #4 shows a possible &amp;quot;hidden&amp;quot; option, for exporting - in responses - named values as data instead of standard numbers. If you never export your data for studying it in stats packages you won&#039;t need this option.&lt;br /&gt;
&lt;br /&gt;
=== Rate (scale 1..5) ===&lt;br /&gt;
==== Example: ====&lt;br /&gt;
&lt;br /&gt;
[[Image:05-08-2013 13-50-05.jpg]]&lt;br /&gt;
&lt;br /&gt;
==== Question editing interface: ====&lt;br /&gt;
&lt;br /&gt;
[[Image:05-08-2013 14-26-37.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Number of scale items ====&lt;br /&gt;
&#039;&#039;&#039; Nb of scale items &#039;&#039;&#039;is the &#039;&#039;number of items&#039;&#039; to be used in your rate scale. You would normally use a value of 3 to 5. Default value: &#039;&#039;&#039;5&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
==== Type of rate scale ====&lt;br /&gt;
* &#039;&#039;&#039; Normal &#039;&#039;&#039; (default value)&lt;br /&gt;
* &#039;&#039;&#039; N/A columns &#039;&#039;&#039; : Choose this if you want an &#039;&#039;&#039;N/A&#039;&#039;&#039; column to be added to the right of your Rate scale items columns.&lt;br /&gt;
* &#039;&#039;&#039; No duplicate choices&#039;&#039;&#039;&amp;lt;nowiki&amp;gt;: Choose this if you want &amp;lt;/nowiki&amp;gt;&#039;&#039;to prevent duplicate choices in each degree &#039;&#039;&#039;column&#039;&#039;&#039;&#039;&#039;.&lt;br /&gt;
** This is useful if you want the respondent to rank a number of items on a 1 to n scale and to force each rank to be unique. Example: order items A, B and C in order of preference will accept: &#039;&#039;A1, B3 and C2&#039;&#039; or &#039;&#039;A3, B2 and C1&#039;&#039;, but &#039;&#039;it will not be possible&#039;&#039; for the respondent to enter: &#039;&#039;A1, B1, C2&#039;&#039; or &#039;&#039;A1, B2, C2,&#039;&#039; etc.&lt;br /&gt;
** Used in conjunction with [[#anchor_one|named degrees]], this &#039;&#039;&#039;No duplicate choices&#039;&#039;&#039; option can also be useful if you want the respondent to match items with named degrees, e.g. the colors &#039;&#039;red, blue, yellow&#039;&#039; with a set of physiological responses: &#039;&#039;excitement, tranquillity, concentration&#039;&#039; where &#039;&#039;&#039;one&#039;&#039;&#039; color can only match &#039;&#039;&#039;one&#039;&#039;&#039; physiological response.&lt;br /&gt;
* &#039;&#039;&#039;Osgood&#039;&#039;&#039;&amp;lt;nowiki&amp;gt;: Choose this to create a question of the &amp;lt;/nowiki&amp;gt;[http://en.wikipedia.org/wiki/Semantic_differential Osgood&#039;s semantic differential] type. This parameter must be used in conjunction with [[#anchor_one|named degrees]].&lt;br /&gt;
&lt;br /&gt;
====Possible answers====&lt;br /&gt;
Examples.&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;width: 100%&amp;quot; border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;5&amp;quot;&lt;br /&gt;
! style=&amp;quot;width: 50%&amp;quot; scope=&amp;quot;col&amp;quot; valign=&amp;quot;top&amp;quot; | Editing Mode&lt;br /&gt;
! style=&amp;quot;width: 50%&amp;quot; scope=&amp;quot;col&amp;quot; valign=&amp;quot;top&amp;quot; | Questionnaire View&lt;br /&gt;
|-&lt;br /&gt;
| valign=&amp;quot;top&amp;quot; |&lt;br /&gt;
&#039;&#039;&#039; Ex. 1 Rate&#039;&#039;&#039; (single line) &amp;lt;br /&amp;gt; Possible answers -&amp;gt; &#039;&#039;&#039;Enter a blank space or a short &amp;quot;label&amp;quot;.&#039;&#039;&#039; &#039;&#039;&#039;Settings: &#039;&#039;&#039;&amp;lt;br /&amp;gt;&#039;&#039;&#039; Nb of scale items &#039;&#039;&#039; = 5 (5 columns numbered 1...5);&#039;&#039;&#039;&#039;&#039;Type of rate scale&#039;&#039;&#039;&#039;&#039; = &#039;&#039;Normal&#039;&#039; (N/A column not needed here). &amp;lt;br /&amp;gt;&lt;br /&gt;
| valign=&amp;quot;top&amp;quot; |&lt;br /&gt;
[[Image:05-08-2013_13-53-43.jpg]]&lt;br /&gt;
|-&lt;br /&gt;
| valign=&amp;quot;top&amp;quot; |&lt;br /&gt;
&#039;&#039;&#039; Ex. 2 Rate &#039;&#039;&#039; (several lines)&amp;lt;br /&amp;gt; Possible answers.&lt;br /&gt;
&lt;br /&gt;
Blackboard&amp;lt;br /&amp;gt;Desire2Learn&amp;lt;br /&amp;gt;Moodle&amp;lt;br /&amp;gt;Sakai&amp;lt;br /&amp;gt;WebCT&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039; Settings: &amp;lt;br /&amp;gt;&#039;&#039; Nb of scale items &#039;&#039;&#039;&#039;&#039; = 4 (4 columns numbered 1...4)&amp;lt;br /&amp;gt;&#039;&#039;&#039;&#039;&#039; Type of rate scale &#039;&#039;&#039;&#039;&#039; = &#039;&#039; N/A column &#039;&#039;&lt;br /&gt;
| valign=&amp;quot;top&amp;quot; |&lt;br /&gt;
[[Image:05-08-2013 13-50-05.jpg]]&lt;br /&gt;
|-&lt;br /&gt;
| valign=&amp;quot;top&amp;quot; |&lt;br /&gt;
&#039;&#039;&#039; Ex. 2a Rate (&amp;quot;ordering&amp;quot;) &#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This option makes it impossible to click more than one radio button per column; it is thus equivalent to an &amp;quot;ordering&amp;quot; question type.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039; Settings: &#039;&#039;&#039;&amp;lt;br /&amp;gt;&#039;&#039;&#039;&#039;&#039; Nb of scale items &#039;&#039;&#039;&#039;&#039; = 3 (3 columns numbered 1...3) &amp;lt;br /&amp;gt;&#039;&#039;&#039;&#039;&#039; Type of rate scale&#039;&#039;&#039;&#039;&#039; = &#039;&#039;No duplicate choices&#039;&#039;&lt;br /&gt;
| valign=&amp;quot;top&amp;quot; |&lt;br /&gt;
[[Image:05-08-2013 13-59-31.jpg]]&lt;br /&gt;
|-&lt;br /&gt;
| valign=&amp;quot;top&amp;quot; |&lt;br /&gt;
&#039;&#039;&#039; Ex. 3 Rate &#039;&#039;with named degrees &#039;&#039; &#039;&#039;&#039;&amp;lt;br /&amp;gt; Possible answers.&lt;br /&gt;
&lt;br /&gt;
4=Very easy to use&amp;lt;br /&amp;gt;&lt;br /&gt;
3=Easy to use&amp;lt;br /&amp;gt;&lt;br /&gt;
2=Somewhat difficult to use&amp;lt;br /&amp;gt;&lt;br /&gt;
1=Difficult to use&amp;lt;br /&amp;gt;&lt;br /&gt;
Formatting Your Course&amp;lt;br /&amp;gt;&lt;br /&gt;
Laying out Your Course&amp;lt;br /&amp;gt;&lt;br /&gt;
Number of Clicks to Access Needed Content&amp;lt;br /&amp;gt;&lt;br /&gt;
Adding Content&amp;lt;br /&amp;gt;&lt;br /&gt;
Ability to Add/Change Themes/Appearance&amp;lt;br /&amp;gt;&lt;br /&gt;
Overall Navigation of Moodle&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039; Settings: &#039;&#039;&#039;&amp;lt;br /&amp;gt;&#039;&#039;&#039;&#039;&#039; Nb of scale items &#039;&#039;&#039;&#039;&#039; = 4 (4 named columns) &amp;lt;br /&amp;gt;&#039;&#039;&#039;&#039;&#039; Type of rate scale &#039;&#039;&#039;&#039;&#039; = &#039;&#039; Normal &#039;&#039; (N/A column not needed here)&lt;br /&gt;
| valign=&amp;quot;top&amp;quot; |&lt;br /&gt;
[[Image:05-08-2013 14-04-00.jpg|800px|thumb|left]]&lt;br /&gt;
|-&lt;br /&gt;
| valign=&amp;quot;top&amp;quot; |&lt;br /&gt;
&#039;&#039;&#039; Ex. 3b Rate &#039;&#039;with named degrees &#039;&#039; &#039;&#039;&#039;&amp;lt;br /&amp;gt; Possible answers.&lt;br /&gt;
&lt;br /&gt;
4=Very easy to use&amp;lt;br /&amp;gt;&lt;br /&gt;
3=Easy to use&amp;lt;br /&amp;gt;&lt;br /&gt;
2=Somewhat difficult to use&amp;lt;br /&amp;gt;&lt;br /&gt;
1=Difficult to use&amp;lt;br /&amp;gt;&lt;br /&gt;
formatting::Formatting Your Course&amp;lt;br /&amp;gt;&lt;br /&gt;
layout::Laying out Your Course&amp;lt;br /&amp;gt;&lt;br /&gt;
clicks::Number of Clicks to Access Needed Content&amp;lt;br /&amp;gt;&lt;br /&gt;
addcontent::Adding Content&amp;lt;br /&amp;gt;&lt;br /&gt;
appearance::Ability to Add/Change Themes/Appearance&amp;lt;br /&amp;gt;&lt;br /&gt;
navigation::Overall Navigation of Moodle&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
| valign=&amp;quot;top&amp;quot; |&lt;br /&gt;
If the choice options text is fairly long, you may use shorter &amp;quot;labels&amp;quot; immediately followed by two colons (::).&lt;br /&gt;
The labels &amp;quot;formatting&amp;quot;, &amp;quot;layout&amp;quot;, &amp;quot;clicks&amp;quot; etc. will be saved to the columns headings in the Download as text format operation, instead of the longer labels which will be displayed to the questionnaire respondent.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Please note&#039;&#039;&#039; that in former versions of Questionnaire the separator between &amp;quot;short label&amp;quot; and &amp;quot;options text&amp;quot; used to be the equal sign (=). In Questionnaire 2.5 and later, please use two colons (::) as a separator.&lt;br /&gt;
|-&lt;br /&gt;
| valign=&amp;quot;top&amp;quot; |&lt;br /&gt;
&#039;&#039;&#039; Ex. 4 [http://en.wikipedia.org/wiki/Semantic_differential Osgood&#039;s Semantic differential] &#039;&#039;&#039;&#039; &#039;&#039;&#039;&amp;lt;br /&amp;gt; Possible answers.&lt;br /&gt;
&lt;br /&gt;
1=--&amp;lt;br /&amp;gt; 2=-&amp;lt;br /&amp;gt; 3=±&amp;lt;br /&amp;gt; 4=+&amp;lt;br /&amp;gt; 5=++&amp;lt;br /&amp;gt; weak|strong&amp;lt;br /&amp;gt; cold|warm&amp;lt;br /&amp;gt; cowardly|brave&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039; Settings: &#039;&#039;&#039;&amp;lt;br /&amp;gt;&#039;&#039;&#039;&#039;&#039; Nb of scale items &#039;&#039;&#039;&#039;&#039; = 5 (5 named columns) &amp;lt;br /&amp;gt;&#039;&#039;&#039;&#039;&#039; Type of rate scale &#039;&#039;&#039;&#039;&#039; = &#039;&#039;Osgood&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039; Note.- &#039;&#039;&#039; To separate the pairs of words you must use a pipe character &#039;&#039;&#039;&amp;lt;nowiki&amp;gt;|&amp;lt;/nowiki&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
| valign=&amp;quot;top&amp;quot; |&lt;br /&gt;
[[Image:05-08-2013 14-06-54.jpg]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Notes.-&#039;&#039;&#039; &amp;lt;span id=&amp;quot;anchor_one&amp;quot;&amp;gt;&#039;&#039;&#039;named degrees&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For this question type you have two display options. The default option displays the [http://en.wikipedia.org/wiki/Likert_scale Likert] scale degrees as numbers (1...5). If you prefer to have named degrees instead of numbers, you&#039;ll have to enter those names in the &#039;&#039;&#039;&#039;&#039;Possible answers&#039;&#039;&#039;&#039;&#039; list (see &#039;&#039;&#039;&#039;&#039;Example 3 &#039;&#039;&#039;&#039;&#039; above). On each line of &amp;quot;possible answers&amp;quot; enter the degree number, &#039;&#039;immediately followed&#039;&#039; by the equal sign &#039;&#039;&#039;&amp;lt;nowiki&amp;gt;=&amp;lt;/nowiki&amp;gt;&#039;&#039;&#039; &#039;&#039;immediately followed&#039;&#039; by the name you want to give to that degree.&lt;br /&gt;
&lt;br /&gt;
Actually, the number preceding each named degree is only there to remind you of its position on the horizontal scale; it is not used by the programme, and you &#039;&#039;might&#039;&#039; as well use, eg. 0=Almost Never; 0=Seldom; 0=Sometimes; etc. But you &#039;&#039;must&#039;&#039; begin with &#039;&#039;a number&#039;&#039; immediately followed by &#039;&#039;the equal sign = &#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
If &#039;&#039;the number of named degrees&#039;&#039; in the possible answers list &#039;&#039;is different from the number determined by the value you entered&#039;&#039; in the &#039;&#039;&#039;Nb of scale items&#039;&#039;&#039; field, this will be automatically adjusted when you save the question. If you decide to use named degrees for your Likert scale, it is recommended (but not obligatory) to start your list of possible answers with the named degrees, and then to enter the various &#039;&#039;items&#039;&#039; to be scaled.&lt;br /&gt;
&lt;br /&gt;
Example #3b shows a possible &amp;quot;hidden&amp;quot; option, for exporting - in responses - shorter label instead of the longer text values. If you never export your data for studying it in stats packages you won&#039;t need this option. Please note that the example is provided here for the &#039;&#039;&#039;Rate &#039;&#039;with named degrees&#039;&#039;&#039;&#039;&#039; question sub-type but it works for all Rate question sub-types except Osgood which requires short left and right options anyway.&lt;br /&gt;
&lt;br /&gt;
===Text Box===&lt;br /&gt;
&lt;br /&gt;
For the Text Box question type, enter the Input Box length and the Maximum text length of text to be entered by respondent.&lt;br /&gt;
&lt;br /&gt;
Default values are 20 characters for the Input Box width and 25 characters for the maximum length of text entered.&lt;br /&gt;
&lt;br /&gt;
===Yes/No===&lt;br /&gt;
&lt;br /&gt;
==Manage questions==&lt;br /&gt;
&lt;br /&gt;
In the &#039;&#039;&#039;Manage questions&#039;&#039;&#039; section of the Edit Questions page, you can conduct a number of operations on a Questionnaire&#039;s questions. Normally you should never add questions or delete questions in a questionnaire that is live in a moodle course, and which some students may have already responded to.&lt;br /&gt;
&lt;br /&gt;
You can Move a question to a different position in the Questionnaire. If your questionnaire contains some &amp;quot;conditional branching&amp;quot; questions, you may not be able to move some of the parent or child questions to some positions which would ruin the branching.&lt;br /&gt;
&lt;br /&gt;
You can Edit a question, but again, be extra careful when editing questions once students have started to complete a questionnaire.&lt;br /&gt;
&lt;br /&gt;
If you try to Delete a child or parent question (in a Conditional branching questionnaire), you will be warned of the possible consequences of those deletions.&lt;br /&gt;
&lt;br /&gt;
By clicking on the Green or Red dots, you can switch the &amp;quot;Response required&amp;quot; status of questions.&lt;br /&gt;
&lt;br /&gt;
Please note that the numbers in front of each question in this interface are &#039;&#039;not&#039;&#039; the question numbers that will be displayed when answering the questionnaire. Here, these numbers indicate the question&#039;s position, and even non-real questions such as Labels and Page Breaks have a position number.&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
[[Category:Teacher]]&lt;/div&gt;</summary>
		<author><name>Rezeau</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/25/en/index.php?title=Editing_Questionnaire_questions&amp;diff=106332</id>
		<title>Editing Questionnaire questions</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/25/en/index.php?title=Editing_Questionnaire_questions&amp;diff=106332"/>
		<updated>2013-08-09T13:28:16Z</updated>

		<summary type="html">&lt;p&gt;Rezeau: /* Parent Question */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Questionnaire}}&lt;br /&gt;
&lt;br /&gt;
==Editing questions==&lt;br /&gt;
* On the Questionnaire &#039;&#039;&#039;Editing Questions&#039;&#039;&#039; page is displayed a drop-down list of the question types available and a list of the questions already created for the current questionnaire instance (if any).&lt;br /&gt;
* Using the standard Moodle icons you can change the order of the questions in the questionnaire, edit or delete questions.&lt;br /&gt;
&lt;br /&gt;
==Common options==&lt;br /&gt;
===Question Name===&lt;br /&gt;
&lt;br /&gt;
====Questionnaires &#039;&#039;&#039;not&#039;&#039;&#039; using the Conditional Branching feature====&lt;br /&gt;
&lt;br /&gt;
You can &#039;&#039;optionally&#039;&#039; enter a &#039;&#039;&#039;Question Name&#039;&#039;&#039; for each question.&lt;br /&gt;
&lt;br /&gt;
If your questionnaire does not use the &amp;quot;Conditional Branching&amp;quot; feature, the &#039;&#039;&#039;Question Name&#039;&#039;&#039; is only used when you export responses to CSV/Excel format. If you never export to CSV, then you needn&#039;t worry about Question names. If you plan to regularly export your questionnaire data to CSV, then you have a choice of two options for question naming.&lt;br /&gt;
&lt;br /&gt;
=====Option 1: significant names=====&lt;br /&gt;
&lt;br /&gt;
In the &#039;&#039;&#039;Question Name &#039;&#039;&#039; box, enter &#039;&#039;meaningful&#039;&#039;, &#039;&#039;short&#039;&#039; and &#039;&#039;&#039;&#039;&#039;different&#039;&#039;&#039;&#039;&#039; question names for all of the questions within one questionnaire. In the CSV export file, all those question names will be prefixed with the question&#039;s actual number (= position) in the quiz. Examples:&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot;&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; | question number (position) in the questionnaire&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; | question name entered by teacher&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; | field header in csv export&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center&amp;quot;&amp;gt;5&amp;lt;/div&amp;gt;&lt;br /&gt;
| favorite colors&lt;br /&gt;
| Q05_favorite colors&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center&amp;quot;&amp;gt;6&amp;lt;/div&amp;gt;&lt;br /&gt;
| why_use_Moodle&lt;br /&gt;
| Q06_why_use_moodle&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center&amp;quot;&amp;gt;7&amp;lt;/div&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
user-friendliness&lt;br /&gt;
&lt;br /&gt;
&#039;&#039; (rate question with 3 possible answers: Moodle, WebCT and Blackboard) &#039;&#039;&lt;br /&gt;
|&lt;br /&gt;
Q07_user-friendliness-&amp;gt;Moodle&amp;lt;br /&amp;gt; Q07_user-friendliness-&amp;gt;WebCT&amp;lt;br /&amp;gt; Q07_user-friendliness-&amp;gt;Blackboard&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=====Option 2: leave the Question Name boxes blank=====&lt;br /&gt;
&lt;br /&gt;
For each un-named question, CSV export will automatically generate a question name. This is required for table header fields in the CSV and subsequent Excel tables or any statistics package you might be using. The question name generated will be based on the question number in the actual Quiz (excluding &#039;&#039;Section Text&#039;&#039; pseudo-questions, of course) e.g. Q01, Q02, ... Q99. For questions with multiple answers, such as rate-type or Likert type questions, a sub-question number will be generated (Q02_1, Q02_2, Q02_3, etc.). This type of &amp;quot;short-name&amp;quot; naming scheme is advisable for exporting your data to a statistics software. Of course, it&#039;s up to you to have your own system for remembering which abbreviated question name corresponds to which question in your questionnaire!&lt;br /&gt;
&lt;br /&gt;
{| width=&amp;quot;100%&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
! style=&amp;quot;width: 33%&amp;quot; scope=&amp;quot;col&amp;quot; | question number (position) in the questionnaire&lt;br /&gt;
! style=&amp;quot;width: 33%&amp;quot; scope=&amp;quot;col&amp;quot; | question name entered by teacher&lt;br /&gt;
! style=&amp;quot;width: 33%&amp;quot; scope=&amp;quot;col&amp;quot; | field header in csv export&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center&amp;quot;&amp;gt;5&amp;lt;/div&amp;gt;&lt;br /&gt;
| style=&amp;quot;background-color: #CCCCCC&amp;quot; |&lt;br /&gt;
| Q05&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center&amp;quot;&amp;gt;6&amp;lt;/div&amp;gt;&lt;br /&gt;
| style=&amp;quot;background-color: #CCCCCC&amp;quot; |&lt;br /&gt;
| Q06&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center&amp;quot;&amp;gt;7&amp;lt;/div&amp;gt;&lt;br /&gt;
| style=&amp;quot;background-color: #CCCCCC&amp;quot; |&lt;br /&gt;
|&lt;br /&gt;
Q07_1&amp;lt;br /&amp;gt; Q07_2&amp;lt;br /&amp;gt; Q07_3&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
It is quite possible (but maybe not advisable) to mix the two systems, and have within one questionnaire both named and un-named questions.&lt;br /&gt;
&lt;br /&gt;
====Questionnaires using the Conditional Branching feature====&lt;br /&gt;
&lt;br /&gt;
{{New features}}&lt;br /&gt;
&lt;br /&gt;
If you need a question to be used as the &amp;quot;parent&amp;quot; of one or more subsequent questions in your questionnaire, then you &#039;&#039;&#039;must&#039;&#039;&#039; name that &amp;quot;parent question&amp;quot;. Only those (radio buttons, dropdown list or yes/no) questions with a &#039;&#039;name&#039;&#039; will appear in the Parent question dropdown list when adding a new question, as shown on the following screenshots.&lt;br /&gt;
&lt;br /&gt;
[[Image:05-08-2013 15-26-11.jpg]]&lt;br /&gt;
&lt;br /&gt;
[[Image:05-08-2013 15-34-55.jpg]]&lt;br /&gt;
&lt;br /&gt;
===Response Required===&lt;br /&gt;
If you select &#039;&#039;&#039;&#039;&#039;Yes&#039;&#039;&#039;&#039;&#039;, response to this question will be required, i.e. the respondent will not be able to submit the questionnaire until this question has been answered. If the respondent tries to submit a questionnaire with unanswered required questions (or, in the case of a questionnaire with more than one section, to go to the next page), a warning message will be displayed with a list of all the missing &#039;&#039;required &#039;&#039;questions in the questionnaire (or on the actual page).&lt;br /&gt;
&lt;br /&gt;
Default.- &#039;&#039;&#039;&#039;&#039;No&#039;&#039;&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;.- When you create new questions in sequence (one after the other), this parameter is carried over to subsequent questions. E.g. if you create question #1 with &#039;&#039;&#039;Response Required&#039;&#039;&#039; = &#039;&#039;&#039;&#039;&#039;Yes&#039;&#039;&#039;&#039;&#039;, then the &#039;&#039;&#039;Response Required&#039;&#039;&#039; parameter will be pre-set to &#039;&#039;&#039;&#039;&#039;Yes&#039;&#039;&#039;&#039;&#039; for question #2, etc. You can of course change this parameter at any time.&lt;br /&gt;
&lt;br /&gt;
In the &#039;&#039;Manage Questions&#039;&#039; section of the Questions editing page, once a question has been created, you can use the green and red dots to switch its Required state, as a shortcut alternative of editing the question.&lt;br /&gt;
&lt;br /&gt;
{{New features}}&lt;br /&gt;
&lt;br /&gt;
[[Image:05-08-2013 15-49-48.jpg]]&lt;br /&gt;
&lt;br /&gt;
===Parent Question===&lt;br /&gt;
{{New features}}&lt;br /&gt;
See [[Questionnaire_Conditional_branching|Conditional branching]]&lt;br /&gt;
&lt;br /&gt;
===Question Text===&lt;br /&gt;
Enter your question text in this box. The HTML editor is available, which means that you can display not only formatted text but also images or other media in a questionnaire&#039;s questions text.&lt;br /&gt;
&lt;br /&gt;
==Question Types==&lt;br /&gt;
&lt;br /&gt;
Select the type of question from the drop-down list and click on the &#039;&#039;&#039;Add selected question type&#039;&#039;&#039; button.&lt;br /&gt;
&lt;br /&gt;
===---Page Break---===&lt;br /&gt;
&lt;br /&gt;
Use this to insert page breaks in longish questionnaires. Note that if a page contains questions with required response the respondent will not be allowed to navigate to the next page unless those required responses have been given.&lt;br /&gt;
&lt;br /&gt;
If your questionnaire uses the Conditional branching feature, then page breaks will be &#039;&#039;automatically&#039;&#039; inserted when you add &amp;quot;parent&amp;quot; or &amp;quot;child&amp;quot; questions. Page breaks which are needed to ensure a correct &amp;quot;Conditional branching&amp;quot; flow cannot be moved or deleted. Their Move and Delete icons are disabled.&lt;br /&gt;
&lt;br /&gt;
[[Image:05-08-2013 15-58-09.jpg]]&lt;br /&gt;
&lt;br /&gt;
===Check Boxes===&lt;br /&gt;
Check boxes allow the user to select multiple answers from a list of options.&lt;br /&gt;
&lt;br /&gt;
==== Question editing interface ====&lt;br /&gt;
&lt;br /&gt;
[[Image:05-08-2013 14-58-42.jpg]]&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;width: 100%&amp;quot; border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;5&amp;quot;&lt;br /&gt;
! style=&amp;quot;width: 50%&amp;quot; scope=&amp;quot;col&amp;quot; | Editing Mode&lt;br /&gt;
! style=&amp;quot;width: 50%&amp;quot; scope=&amp;quot;col&amp;quot; | Questionnaire View&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
{| style=&amp;quot;width: 300&amp;quot;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; valign=&amp;quot;top&amp;quot; | Question text: What are your favorite hobbies?&lt;br /&gt;
&lt;br /&gt;
Possible answers:&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border: #666666 thin solid&amp;quot; |&lt;br /&gt;
Watching TV&amp;lt;br /&amp;gt; Dancing &amp;lt;br /&amp;gt; Computing&amp;lt;br /&amp;gt; !other=Another hobby:&lt;br /&gt;
|}&lt;br /&gt;
|&lt;br /&gt;
[[Image:05-08-2013 13-29-49.jpg]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
You may enter &amp;lt;tt&amp;gt;“!other”&amp;lt;/tt&amp;gt; on a line to create an &#039;&#039;&#039;&#039;&#039;optional&#039;&#039;&#039;&#039;&#039; &#039;&#039;fill in the blank&#039;&#039; option. An&amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;!other&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt; box defaults to using the prompt &#039;&#039;Other: &#039;&#039;, (or the equivalent translation for &#039;&#039;Other&#039;&#039; in the current language being used). You may change this default prompt by using the format: &amp;lt;tt&amp;gt;“!other=&#039;&#039;prompt text”&#039;&#039;&amp;lt;/tt&amp;gt; as shown in the example above.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Notes.-&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
# At the moment the length of the &#039;&#039;fill in the blank&#039;&#039; input text box is set to 25 characters and is not customizable through the online interface.&lt;br /&gt;
# You may provide more than one &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;!other&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt; &#039;&#039;fill in the blank&#039;&#039; option for a Check Boxes question, but this might cause problems so it is &#039;&#039;not recommended&#039;&#039;.&lt;br /&gt;
# When a respondent answers a&#039;&#039;&#039; Check Boxes&#039;&#039;&#039; question which has been created as &#039;&#039;&#039;Required&#039;&#039;&#039;, and the &#039;&#039;&#039;Min. forced responses &#039;&#039;&#039;and&#039;&#039;&#039; Max. forced responses&#039;&#039;&#039; parameters have been used, then a warning message will be displayed if respondent does not check the required number of boxes. &lt;br /&gt;
# Note that, if the &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;!other&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt; &#039;&#039;fill in the blank&#039;&#039; option has been created, then if it is checked by the respondent, it will count in the total of minimum/maximum required check boxes.&lt;br /&gt;
# If a respondent checks a &#039;&#039;fill in the blank&#039;&#039; option &#039;&#039;&#039;check box&#039;&#039;&#039; and leaves the text field empty, &#039;&#039;that box will be unchecked&#039;&#039; (upon navigating to the next page or upon submitting the questionnaire).&lt;br /&gt;
# If a respondent has cheked &#039;&#039;a fill in the blank&#039;&#039; option &#039;&#039;&#039;check box&#039;&#039;&#039; and has filled in the text field, and later on changes his mind and unckecks that box, the &#039;&#039;fill in the blank&#039;&#039; text field will be automatically emptied (cool, ain&#039;t it?).&lt;br /&gt;
&lt;br /&gt;
===Date===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Use the day/month/year format, e.g. for March 14th, 1945: &#039;&#039;&#039;14/3/1945&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Use this question type if you expect the response to be a correctly formatted date. The format will depend upon the language currently being used by the questionnaire respondent. For example 4/21/2007 (US); 21/4/2007 (UK); 21-4-2007 (France); etc. An example will be displayed in the questionnaire. If an &amp;quot;impossible&amp;quot; or wrongly formatted date is entered, it will either be re-written or reformatted correctly (if possible) or an error message will be displayed to the respondent. In order for dates to be correctly exported to spreadsheets such as Excel, respondent must enter &#039;&#039;a date in the 1902 to 2037 range&#039;&#039;. If a date outside this range is expected from respondents, then use the &#039;&#039;&#039;Text Box&#039;&#039;&#039; question type instead. The date question type will accept dates consisting only of a month plus a year (e.g. 12/2008 for december 2008) or only a year (e.g. 2008). However, for spreadsheet processing compatibility, such incomplete dates will be automatically transformed to complete dd/mm/yy dates, e.g. 12/2008 -&amp;gt; &#039;&#039;&#039;01/&#039;&#039;&#039;12/2008 and 2008 -&amp;gt; &#039;&#039;&#039;01/01/&#039;&#039;&#039;2008. You may have to explain this pecularity to your questionnaire users beforehand.&lt;br /&gt;
&lt;br /&gt;
===Dropdown Box===&lt;br /&gt;
&lt;br /&gt;
There is no real advantage to using the &#039;&#039;&#039;Dropdown Box&#039;&#039;&#039; over using the &#039;&#039;&#039;Radio Buttons&#039;&#039;&#039; except perhaps for longish lists of options, to save screen space.&lt;br /&gt;
&lt;br /&gt;
===Essay Box===&lt;br /&gt;
====Question editing interface====&lt;br /&gt;
[[Image:05-08-2013 15-11-45.jpg]]&lt;br /&gt;
====Settings====&lt;br /&gt;
This question will display a plain text box with &#039;&#039;&#039;x&#039;&#039;&#039; &#039;&#039;Textarea columns&#039;&#039; (or area &#039;&#039;width&#039;&#039;) and &#039;&#039;&#039;y&#039;&#039;&#039; &#039;&#039;Textarea rows&#039;&#039; (number of text &#039;&#039;lines&#039;&#039;).&lt;br /&gt;
&lt;br /&gt;
If you leave both x and y to their default &#039;&#039;&#039;0&#039;&#039;&#039; value (or if you set it to &#039;&#039;&#039;0&#039;&#039;&#039;), then moodle&#039;s &#039;&#039;&#039;HTML editor&#039;&#039;&#039; will be displayed with standard height and width (if available in the course/user context &amp;amp; user profile).&lt;br /&gt;
&lt;br /&gt;
===Label===&lt;br /&gt;
&lt;br /&gt;
This is not a question but a (short) text which will be displayed to introduce a series of questions.&lt;br /&gt;
&lt;br /&gt;
===Numeric===&lt;br /&gt;
&lt;br /&gt;
Use this question type if you expect the response to be a correctly formatted number. By using the &#039;&#039;&#039;Max. digits allowed &#039;&#039;&#039;and &#039;&#039;&#039;Nb of decimal digits &#039;&#039;&#039;parameters you can specify the length and number of decimal places required.&lt;br /&gt;
&lt;br /&gt;
=== Radio Buttons ===&lt;br /&gt;
====Question editing interface====&lt;br /&gt;
[[Image:05-08-2013 15-03-17.jpg]]&lt;br /&gt;
&lt;br /&gt;
====Radio buttons Alignment====&lt;br /&gt;
[[Image:05-08-2013 13-35-04.jpg]]&lt;br /&gt;
&lt;br /&gt;
====Possible answers====&lt;br /&gt;
You must fill in one answer per line in the &#039;&#039;&#039;Possible answers&#039;&#039;&#039; box.&lt;br /&gt;
&lt;br /&gt;
Examples:&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;5&amp;quot;&lt;br /&gt;
! style=&amp;quot;width: 250&amp;quot; scope=&amp;quot;col&amp;quot; valign=&amp;quot;top&amp;quot; | Editing Mode&lt;br /&gt;
! style=&amp;quot;width: 243&amp;quot; scope=&amp;quot;col&amp;quot; valign=&amp;quot;top&amp;quot; | Questionnaire View&lt;br /&gt;
! style=&amp;quot;width: 434&amp;quot; scope=&amp;quot;col&amp;quot; valign=&amp;quot;top&amp;quot; | (optional horizontal display)&lt;br /&gt;
|-&lt;br /&gt;
| valign=&amp;quot;top&amp;quot; |&lt;br /&gt;
&#039;&#039; 1.Possible answers &#039;&#039;&amp;lt;nowiki&amp;gt;: &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Red&amp;lt;br /&amp;gt; Blue&amp;lt;br /&amp;gt; Black&lt;br /&gt;
| valign=&amp;quot;top&amp;quot; |&lt;br /&gt;
&#039;&#039;&#039; What is your favorite color? &#039;&#039;&#039;&amp;lt;br /&amp;gt; Red&amp;lt;br /&amp;gt; Blue&amp;lt;br /&amp;gt; Black&lt;br /&gt;
| valign=&amp;quot;top&amp;quot; |&lt;br /&gt;
&#039;&#039;&#039; What is your favorite color? &#039;&#039;&#039;&amp;lt;br /&amp;gt; Red  Blue  Black&lt;br /&gt;
|-&lt;br /&gt;
| valign=&amp;quot;top&amp;quot; |&lt;br /&gt;
&#039;&#039; 2.Possible answers &#039;&#039;&amp;lt;nowiki&amp;gt;: &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Red&amp;lt;br /&amp;gt; Blue&amp;lt;br /&amp;gt; Black&amp;lt;br /&amp;gt; !other&lt;br /&gt;
| valign=&amp;quot;top&amp;quot; |&lt;br /&gt;
&#039;&#039;&#039; What is your favorite color? &#039;&#039;&#039;&amp;lt;br /&amp;gt; Red&amp;lt;br /&amp;gt; Blue&amp;lt;br /&amp;gt; Black&amp;lt;br /&amp;gt; Other:&lt;br /&gt;
| valign=&amp;quot;top&amp;quot; |&lt;br /&gt;
&#039;&#039;&#039; What is your favorite color? &#039;&#039;&#039;&amp;lt;br /&amp;gt; Red  Blue  Black &amp;lt;br /&amp;gt; Other:&lt;br /&gt;
|-&lt;br /&gt;
| valign=&amp;quot;top&amp;quot; |&lt;br /&gt;
&#039;&#039; 3.Possible answers:&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Red&amp;lt;br /&amp;gt; Blue&amp;lt;br /&amp;gt; Black&amp;lt;br /&amp;gt; !other=Another color:&lt;br /&gt;
| valign=&amp;quot;top&amp;quot; |&lt;br /&gt;
&#039;&#039;&#039; What is your favorite color? &#039;&#039;&#039;&amp;lt;br /&amp;gt; Red&amp;lt;br /&amp;gt; Blue&amp;lt;br /&amp;gt; Black&amp;lt;br /&amp;gt; Another color:&lt;br /&gt;
| valign=&amp;quot;top&amp;quot; |&lt;br /&gt;
&#039;&#039;&#039; What is your favorite color? &#039;&#039;&#039;&amp;lt;br /&amp;gt; Red  Blue  Black &amp;lt;br /&amp;gt; Another color:&lt;br /&gt;
|-&lt;br /&gt;
| valign=&amp;quot;top&amp;quot; |&lt;br /&gt;
| valign=&amp;quot;top&amp;quot; | Questionnaire View&lt;br /&gt;
| valign=&amp;quot;top&amp;quot; | &#039;&#039;&#039;&#039;&#039; Text data export &#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
| valign=&amp;quot;top&amp;quot; |&lt;br /&gt;
&#039;&#039; 4.Possible answers: &#039;&#039;&lt;br /&gt;
&lt;br /&gt;
red::the color of blood &amp;lt;br /&amp;gt; blue::the color of the sky &amp;lt;br /&amp;gt; black::opposite of white&lt;br /&gt;
| valign=&amp;quot;top&amp;quot; |&lt;br /&gt;
&#039;&#039;&#039; What is your favorite color? &#039;&#039;&#039;&amp;lt;br /&amp;gt; the color of blood&amp;lt;br /&amp;gt; the color of the sky&amp;lt;br /&amp;gt; opposite of white&lt;br /&gt;
| valign=&amp;quot;top&amp;quot; |&lt;br /&gt;
&#039;&#039; The &amp;quot;values&amp;quot; red, blue and black will be exported to the columns instead of standard 1, 2 and 3 numbers.&amp;lt;br /&amp;gt; See [[Viewing_Questionnaire_responses#Download_in_text_format|Download in text format]]. &#039;&#039;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
You may enter &amp;lt;tt&amp;gt;“!other”&amp;lt;/tt&amp;gt; on a line to create an &#039;&#039;&#039;&#039;&#039;optional&#039;&#039;&#039;&#039;&#039; &#039;&#039;fill in the blank&#039;&#039; option. An &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;!other&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt; box defaults to using the prompt &#039;&#039;Other:&#039;&#039;, (or the equivalent translation for &#039;&#039;Other&#039;&#039; in the current language being used). You may change this default prompt by using the format: &amp;lt;tt&amp;gt;“!other=&#039;&#039;prompt text”&#039;&#039;&amp;lt;/tt&amp;gt; as shown in Example #3 above.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Notes&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
# At the moment the length of the &#039;&#039;fill in the blank&#039;&#039; input text box is set to 25 characters and is not customizable through the online interface.&lt;br /&gt;
# It does not make sense to provide more than one &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;!other&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt; &#039;&#039;fill in the blank&#039;&#039; option for a Radio Buttons question.&lt;br /&gt;
# If a respondent checks a &#039;&#039;fill in the blank&#039;&#039; option &#039;&#039;&#039;radio button&#039;&#039;&#039; and leaves the text field empty, &#039;&#039;a warning message will be displayed&#039;&#039; (upon navigating to the next page or upon submitting the questionnaire).&lt;br /&gt;
# If a respondent has checked a &#039;&#039;fill in the blank&#039;&#039; option &#039;&#039;&#039;radio button&#039;&#039;&#039; and has filled in the text field, and later on changes his mind and clicks a different radio button in the same question, the &#039;&#039;fill in the blank&#039;&#039; text field previously entered will be automatically emptied.&lt;br /&gt;
# Example #4 shows a possible &amp;quot;hidden&amp;quot; option, for exporting - in responses - named values as data instead of standard numbers. If you never export your data for studying it in stats packages you won&#039;t need this option.&lt;br /&gt;
&lt;br /&gt;
=== Rate (scale 1..5) ===&lt;br /&gt;
==== Example: ====&lt;br /&gt;
&lt;br /&gt;
[[Image:05-08-2013 13-50-05.jpg]]&lt;br /&gt;
&lt;br /&gt;
==== Question editing interface: ====&lt;br /&gt;
&lt;br /&gt;
[[Image:05-08-2013 14-26-37.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Number of scale items ====&lt;br /&gt;
&#039;&#039;&#039; Nb of scale items &#039;&#039;&#039;is the &#039;&#039;number of items&#039;&#039; to be used in your rate scale. You would normally use a value of 3 to 5. Default value: &#039;&#039;&#039;5&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
==== Type of rate scale ====&lt;br /&gt;
* &#039;&#039;&#039; Normal &#039;&#039;&#039; (default value)&lt;br /&gt;
* &#039;&#039;&#039; N/A columns &#039;&#039;&#039; : Choose this if you want an &#039;&#039;&#039;N/A&#039;&#039;&#039; column to be added to the right of your Rate scale items columns.&lt;br /&gt;
* &#039;&#039;&#039; No duplicate choices&#039;&#039;&#039;&amp;lt;nowiki&amp;gt;: Choose this if you want &amp;lt;/nowiki&amp;gt;&#039;&#039;to prevent duplicate choices in each degree &#039;&#039;&#039;column&#039;&#039;&#039;&#039;&#039;.&lt;br /&gt;
** This is useful if you want the respondent to rank a number of items on a 1 to n scale and to force each rank to be unique. Example: order items A, B and C in order of preference will accept: &#039;&#039;A1, B3 and C2&#039;&#039; or &#039;&#039;A3, B2 and C1&#039;&#039;, but &#039;&#039;it will not be possible&#039;&#039; for the respondent to enter: &#039;&#039;A1, B1, C2&#039;&#039; or &#039;&#039;A1, B2, C2,&#039;&#039; etc.&lt;br /&gt;
** Used in conjunction with [[#anchor_one|named degrees]], this &#039;&#039;&#039;No duplicate choices&#039;&#039;&#039; option can also be useful if you want the respondent to match items with named degrees, e.g. the colors &#039;&#039;red, blue, yellow&#039;&#039; with a set of physiological responses: &#039;&#039;excitement, tranquillity, concentration&#039;&#039; where &#039;&#039;&#039;one&#039;&#039;&#039; color can only match &#039;&#039;&#039;one&#039;&#039;&#039; physiological response.&lt;br /&gt;
* &#039;&#039;&#039;Osgood&#039;&#039;&#039;&amp;lt;nowiki&amp;gt;: Choose this to create a question of the &amp;lt;/nowiki&amp;gt;[http://en.wikipedia.org/wiki/Semantic_differential Osgood&#039;s semantic differential] type. This parameter must be used in conjunction with [[#anchor_one|named degrees]].&lt;br /&gt;
&lt;br /&gt;
====Possible answers====&lt;br /&gt;
Examples.&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;width: 100%&amp;quot; border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;5&amp;quot;&lt;br /&gt;
! style=&amp;quot;width: 50%&amp;quot; scope=&amp;quot;col&amp;quot; valign=&amp;quot;top&amp;quot; | Editing Mode&lt;br /&gt;
! style=&amp;quot;width: 50%&amp;quot; scope=&amp;quot;col&amp;quot; valign=&amp;quot;top&amp;quot; | Questionnaire View&lt;br /&gt;
|-&lt;br /&gt;
| valign=&amp;quot;top&amp;quot; |&lt;br /&gt;
&#039;&#039;&#039; Ex. 1 Rate&#039;&#039;&#039; (single line) &amp;lt;br /&amp;gt; Possible answers -&amp;gt; &#039;&#039;&#039;Enter a blank space or a short &amp;quot;label&amp;quot;.&#039;&#039;&#039; &#039;&#039;&#039;Settings: &#039;&#039;&#039;&amp;lt;br /&amp;gt;&#039;&#039;&#039; Nb of scale items &#039;&#039;&#039; = 5 (5 columns numbered 1...5);&#039;&#039;&#039;&#039;&#039;Type of rate scale&#039;&#039;&#039;&#039;&#039; = &#039;&#039;Normal&#039;&#039; (N/A column not needed here). &amp;lt;br /&amp;gt;&lt;br /&gt;
| valign=&amp;quot;top&amp;quot; |&lt;br /&gt;
[[Image:05-08-2013_13-53-43.jpg]]&lt;br /&gt;
|-&lt;br /&gt;
| valign=&amp;quot;top&amp;quot; |&lt;br /&gt;
&#039;&#039;&#039; Ex. 2 Rate &#039;&#039;&#039; (several lines)&amp;lt;br /&amp;gt; Possible answers.&lt;br /&gt;
&lt;br /&gt;
Blackboard&amp;lt;br /&amp;gt;Desire2Learn&amp;lt;br /&amp;gt;Moodle&amp;lt;br /&amp;gt;Sakai&amp;lt;br /&amp;gt;WebCT&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039; Settings: &amp;lt;br /&amp;gt;&#039;&#039; Nb of scale items &#039;&#039;&#039;&#039;&#039; = 4 (4 columns numbered 1...4)&amp;lt;br /&amp;gt;&#039;&#039;&#039;&#039;&#039; Type of rate scale &#039;&#039;&#039;&#039;&#039; = &#039;&#039; N/A column &#039;&#039;&lt;br /&gt;
| valign=&amp;quot;top&amp;quot; |&lt;br /&gt;
[[Image:05-08-2013 13-50-05.jpg]]&lt;br /&gt;
|-&lt;br /&gt;
| valign=&amp;quot;top&amp;quot; |&lt;br /&gt;
&#039;&#039;&#039; Ex. 2a Rate (&amp;quot;ordering&amp;quot;) &#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This option makes it impossible to click more than one radio button per column; it is thus equivalent to an &amp;quot;ordering&amp;quot; question type.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039; Settings: &#039;&#039;&#039;&amp;lt;br /&amp;gt;&#039;&#039;&#039;&#039;&#039; Nb of scale items &#039;&#039;&#039;&#039;&#039; = 3 (3 columns numbered 1...3) &amp;lt;br /&amp;gt;&#039;&#039;&#039;&#039;&#039; Type of rate scale&#039;&#039;&#039;&#039;&#039; = &#039;&#039;No duplicate choices&#039;&#039;&lt;br /&gt;
| valign=&amp;quot;top&amp;quot; |&lt;br /&gt;
[[Image:05-08-2013 13-59-31.jpg]]&lt;br /&gt;
|-&lt;br /&gt;
| valign=&amp;quot;top&amp;quot; |&lt;br /&gt;
&#039;&#039;&#039; Ex. 3 Rate &#039;&#039;with named degrees &#039;&#039; &#039;&#039;&#039;&amp;lt;br /&amp;gt; Possible answers.&lt;br /&gt;
&lt;br /&gt;
4=Very easy to use&amp;lt;br /&amp;gt;&lt;br /&gt;
3=Easy to use&amp;lt;br /&amp;gt;&lt;br /&gt;
2=Somewhat difficult to use&amp;lt;br /&amp;gt;&lt;br /&gt;
1=Difficult to use&amp;lt;br /&amp;gt;&lt;br /&gt;
Formatting Your Course&amp;lt;br /&amp;gt;&lt;br /&gt;
Laying out Your Course&amp;lt;br /&amp;gt;&lt;br /&gt;
Number of Clicks to Access Needed Content&amp;lt;br /&amp;gt;&lt;br /&gt;
Adding Content&amp;lt;br /&amp;gt;&lt;br /&gt;
Ability to Add/Change Themes/Appearance&amp;lt;br /&amp;gt;&lt;br /&gt;
Overall Navigation of Moodle&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039; Settings: &#039;&#039;&#039;&amp;lt;br /&amp;gt;&#039;&#039;&#039;&#039;&#039; Nb of scale items &#039;&#039;&#039;&#039;&#039; = 4 (4 named columns) &amp;lt;br /&amp;gt;&#039;&#039;&#039;&#039;&#039; Type of rate scale &#039;&#039;&#039;&#039;&#039; = &#039;&#039; Normal &#039;&#039; (N/A column not needed here)&lt;br /&gt;
| valign=&amp;quot;top&amp;quot; |&lt;br /&gt;
[[Image:05-08-2013 14-04-00.jpg|800px|thumb|left]]&lt;br /&gt;
|-&lt;br /&gt;
| valign=&amp;quot;top&amp;quot; |&lt;br /&gt;
&#039;&#039;&#039; Ex. 3b Rate &#039;&#039;with named degrees &#039;&#039; &#039;&#039;&#039;&amp;lt;br /&amp;gt; Possible answers.&lt;br /&gt;
&lt;br /&gt;
4=Very easy to use&amp;lt;br /&amp;gt;&lt;br /&gt;
3=Easy to use&amp;lt;br /&amp;gt;&lt;br /&gt;
2=Somewhat difficult to use&amp;lt;br /&amp;gt;&lt;br /&gt;
1=Difficult to use&amp;lt;br /&amp;gt;&lt;br /&gt;
formatting::Formatting Your Course&amp;lt;br /&amp;gt;&lt;br /&gt;
layout::Laying out Your Course&amp;lt;br /&amp;gt;&lt;br /&gt;
clicks::Number of Clicks to Access Needed Content&amp;lt;br /&amp;gt;&lt;br /&gt;
addcontent::Adding Content&amp;lt;br /&amp;gt;&lt;br /&gt;
appearance::Ability to Add/Change Themes/Appearance&amp;lt;br /&amp;gt;&lt;br /&gt;
navigation::Overall Navigation of Moodle&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
| valign=&amp;quot;top&amp;quot; |&lt;br /&gt;
If the choice options text is fairly long, you may use shorter &amp;quot;labels&amp;quot; immediately followed by two colons (::).&lt;br /&gt;
The labels &amp;quot;formatting&amp;quot;, &amp;quot;layout&amp;quot;, &amp;quot;clicks&amp;quot; etc. will be saved to the columns headings in the Download as text format operation, instead of the longer labels which will be displayed to the questionnaire respondent.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Please note&#039;&#039;&#039; that in former versions of Questionnaire the separator between &amp;quot;short label&amp;quot; and &amp;quot;options text&amp;quot; used to be the equal sign (=). In Questionnaire 2.5 and later, please use two colons (::) as a separator.&lt;br /&gt;
|-&lt;br /&gt;
| valign=&amp;quot;top&amp;quot; |&lt;br /&gt;
&#039;&#039;&#039; Ex. 4 [http://en.wikipedia.org/wiki/Semantic_differential Osgood&#039;s Semantic differential] &#039;&#039;&#039;&#039; &#039;&#039;&#039;&amp;lt;br /&amp;gt; Possible answers.&lt;br /&gt;
&lt;br /&gt;
1=--&amp;lt;br /&amp;gt; 2=-&amp;lt;br /&amp;gt; 3=±&amp;lt;br /&amp;gt; 4=+&amp;lt;br /&amp;gt; 5=++&amp;lt;br /&amp;gt; weak|strong&amp;lt;br /&amp;gt; cold|warm&amp;lt;br /&amp;gt; cowardly|brave&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039; Settings: &#039;&#039;&#039;&amp;lt;br /&amp;gt;&#039;&#039;&#039;&#039;&#039; Nb of scale items &#039;&#039;&#039;&#039;&#039; = 5 (5 named columns) &amp;lt;br /&amp;gt;&#039;&#039;&#039;&#039;&#039; Type of rate scale &#039;&#039;&#039;&#039;&#039; = &#039;&#039;Osgood&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039; Note.- &#039;&#039;&#039; To separate the pairs of words you must use a pipe character &#039;&#039;&#039;&amp;lt;nowiki&amp;gt;|&amp;lt;/nowiki&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
| valign=&amp;quot;top&amp;quot; |&lt;br /&gt;
[[Image:05-08-2013 14-06-54.jpg]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Notes.-&#039;&#039;&#039; &amp;lt;span id=&amp;quot;anchor_one&amp;quot;&amp;gt;&#039;&#039;&#039;named degrees&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For this question type you have two display options. The default option displays the [http://en.wikipedia.org/wiki/Likert_scale Likert] scale degrees as numbers (1...5). If you prefer to have named degrees instead of numbers, you&#039;ll have to enter those names in the &#039;&#039;&#039;&#039;&#039;Possible answers&#039;&#039;&#039;&#039;&#039; list (see &#039;&#039;&#039;&#039;&#039;Example 3 &#039;&#039;&#039;&#039;&#039; above). On each line of &amp;quot;possible answers&amp;quot; enter the degree number, &#039;&#039;immediately followed&#039;&#039; by the equal sign &#039;&#039;&#039;&amp;lt;nowiki&amp;gt;=&amp;lt;/nowiki&amp;gt;&#039;&#039;&#039; &#039;&#039;immediately followed&#039;&#039; by the name you want to give to that degree.&lt;br /&gt;
&lt;br /&gt;
Actually, the number preceding each named degree is only there to remind you of its position on the horizontal scale; it is not used by the programme, and you &#039;&#039;might&#039;&#039; as well use, eg. 0=Almost Never; 0=Seldom; 0=Sometimes; etc. But you &#039;&#039;must&#039;&#039; begin with &#039;&#039;a number&#039;&#039; immediately followed by &#039;&#039;the equal sign = &#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
If &#039;&#039;the number of named degrees&#039;&#039; in the possible answers list &#039;&#039;is different from the number determined by the value you entered&#039;&#039; in the &#039;&#039;&#039;Nb of scale items&#039;&#039;&#039; field, this will be automatically adjusted when you save the question. If you decide to use named degrees for your Likert scale, it is recommended (but not obligatory) to start your list of possible answers with the named degrees, and then to enter the various &#039;&#039;items&#039;&#039; to be scaled.&lt;br /&gt;
&lt;br /&gt;
Example #3b shows a possible &amp;quot;hidden&amp;quot; option, for exporting - in responses - shorter label instead of the longer text values. If you never export your data for studying it in stats packages you won&#039;t need this option. Please note that the example is provided here for the &#039;&#039;&#039;Rate &#039;&#039;with named degrees&#039;&#039;&#039;&#039;&#039; question sub-type but it works for all Rate question sub-types except Osgood which requires short left and right options anyway.&lt;br /&gt;
&lt;br /&gt;
===Text Box===&lt;br /&gt;
&lt;br /&gt;
For the Text Box question type, enter the Input Box length and the Maximum text length of text to be entered by respondent.&lt;br /&gt;
&lt;br /&gt;
Default values are 20 characters for the Input Box width and 25 characters for the maximum length of text entered.&lt;br /&gt;
&lt;br /&gt;
===Yes/No===&lt;br /&gt;
&lt;br /&gt;
==Manage questions==&lt;br /&gt;
&lt;br /&gt;
In the &#039;&#039;&#039;Manage questions&#039;&#039;&#039; section of the Edit Questions page, you can conduct a number of operations on a Questionnaire&#039;s questions. Normally you should never add questions or delete questions in a questionnaire that is live in a moodle course, and which some students may have already responded to.&lt;br /&gt;
&lt;br /&gt;
You can Move a question to a different position in the Questionnaire. If your questionnaire contains some &amp;quot;conditional branching&amp;quot; questions, you may not be able to move some of the parent or child questions to some positions which would ruin the branching.&lt;br /&gt;
&lt;br /&gt;
You can Edit a question, but again, be extra careful when editing questions once students have started to complete a questionnaire.&lt;br /&gt;
&lt;br /&gt;
If you try to Delete a child or parent question (in a Conditional branching questionnaire), you will be warned of the possible consequences of those deletions.&lt;br /&gt;
&lt;br /&gt;
By clicking on the Green or Red dots, you can switch the &amp;quot;Response required&amp;quot; status of questions.&lt;br /&gt;
&lt;br /&gt;
Please note that the numbers in front of each question in this interface are &#039;&#039;not&#039;&#039; the question numbers that will be displayed when answering the questionnaire. Here, these numbers indicate the question&#039;s position, and even non-real questions such as Labels and Page Breaks have a position number.&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
[[Category:Teacher]]&lt;/div&gt;</summary>
		<author><name>Rezeau</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/25/en/index.php?title=mod/questionnaire/conditional_branching&amp;diff=106331</id>
		<title>mod/questionnaire/conditional branching</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/25/en/index.php?title=mod/questionnaire/conditional_branching&amp;diff=106331"/>
		<updated>2013-08-09T13:23:37Z</updated>

		<summary type="html">&lt;p&gt;Rezeau: Redirected page to Questionnaire Conditional branching&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#REDIRECT [[Questionnaire_Conditional_branching]]&lt;/div&gt;</summary>
		<author><name>Rezeau</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/25/en/index.php?title=Adding/editing_a_questionnaire&amp;diff=106330</id>
		<title>Adding/editing a questionnaire</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/25/en/index.php?title=Adding/editing_a_questionnaire&amp;diff=106330"/>
		<updated>2013-08-09T13:11:55Z</updated>

		<summary type="html">&lt;p&gt;Rezeau: /* Respondent Type */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Questionnaire}}&lt;br /&gt;
&lt;br /&gt;
==Timing==&lt;br /&gt;
&lt;br /&gt;
Set the date window for when users can complete the questionnaire. You can leave the boxes unchecked if you want the questionnaire to be continually available.&lt;br /&gt;
&lt;br /&gt;
==Response options==&lt;br /&gt;
===Type===&lt;br /&gt;
&lt;br /&gt;
Select whether users will be allowed to respond once, daily, weekly, monthly or an unlimited number of times (&#039;&#039;&#039;many&#039;&#039;&#039;).&lt;br /&gt;
&lt;br /&gt;
===Respondent Type===&lt;br /&gt;
&lt;br /&gt;
You can display your users&#039; full names with each response by setting this to &amp;quot;fullname&amp;quot;.&amp;lt;br /&amp;gt; You can hide your users&#039; identities from the responses by setting this to &amp;quot;anonymous&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Once the &amp;quot;anonymous&amp;quot; option has been set in a questionnaire, it&#039;s impossible to revert to the &amp;quot;fullname&amp;quot; option, for obvious privacy reasons. So be careful when you set your questionnaire to &amp;quot;anonymous&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;.- If your Moodle course allows guests, they will only be allowed to respond to a questionnaire whose responses have been set to &#039;&#039;anonymous&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
===Respondent Eligibility===&lt;br /&gt;
&lt;br /&gt;
Decide whether everyone can answer or whether you want to restrict it to tutor only or student only responses.  For restricted access options remember to assign the correct roles either at the course or activity level.  For example, if you put a questionnaire on the front page, intended for teachers only, then you will have to let Moodle know which users are teachers.&lt;br /&gt;
&lt;br /&gt;
===Response viewing===&lt;br /&gt;
&lt;br /&gt;
You can specify who can see the responses of all respondents to submitted questionnaires (general statistics tables).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039; Students can view ALL responses -&amp;gt; &#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
# &#039;&#039;&#039; Never&#039;&#039;&#039;. By default, only teachers of the owning course can see all questionnaire submitted responses.&lt;br /&gt;
# &#039;&#039;&#039; After answering the questionnaire&#039;&#039;&#039;. This allows students to see all responses after answering a questionnaire that is set to &#039;&#039;&#039;&#039;&#039;respond once only&#039;&#039;&#039;&#039;&#039;. If a questionnaire is set to respond more than once, then students cannot see all responses unless you use one of the next two options.&lt;br /&gt;
# &#039;&#039;&#039; After the questionnaire is closed&#039;&#039;&#039;.&lt;br /&gt;
# &#039;&#039;&#039; Always.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Please use the &#039;&#039;Roles and capabilities system&#039;&#039; to decide which course participants will be allowed to view a) their own responses b) all responses.&lt;br /&gt;
&lt;br /&gt;
===Save/Resume answers===&lt;br /&gt;
&lt;br /&gt;
Setting this option allows users to save their answers to a questionnaire before submitting them. Users can leave the questionnaire unfinished and resume from the save point at a later date.&lt;br /&gt;
&lt;br /&gt;
===Allow branching questions===&lt;br /&gt;
{{New features}}&lt;br /&gt;
The Conditional Branching feature enables the Questionnaire creator to &amp;quot;branch&amp;quot; the respondent to different pages according to their choice of response to Yes/No, Dropdown boxes or Radio button questions. This option is enabled by default when you create a new questionnaire. If you do not plan to use this feature in the questionnaire, you should set it to No.&lt;br /&gt;
&lt;br /&gt;
===Submission grade===&lt;br /&gt;
Unlike the Quiz or Lesson Moodle activities the questionnaire activity is not meant to test the student&#039;s knowledge and therefore the responses cannot/should not be graded as correct or incorrect. However, in order to encourage the students to complete a questionnaire, you may choose to award the student a grade (on a 1-100 scale) upon completion. &lt;br /&gt;
&lt;br /&gt;
==Content Options==&lt;br /&gt;
&lt;br /&gt;
Select one of the radio button options. &#039;Create new&#039; is the default.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039; You can create questionnaires using three different methods: &#039;&#039;&lt;br /&gt;
:&#039;&#039;&#039; Create New: &#039;&#039;&#039;&lt;br /&gt;
::This option allows you to create a completely new questionnaire from scratch.&lt;br /&gt;
:&#039;&#039;&#039; Copy Existing: &#039;&#039;&#039;&lt;br /&gt;
::This option copies a pre-existing questionnaire&#039;s content to a new questionnaire, pre-seeding the content. You can copy questionnaires belonging to the course, or ones specifically marked as &#039;template&#039;.&lt;br /&gt;
:&#039;&#039;&#039; Use Public: &#039;&#039;&#039;&lt;br /&gt;
::If a questionnaire has already been created (in another course on the same Moodle site) with the &amp;quot;public&amp;quot; setting, then you may use that &amp;quot;public&amp;quot; questionnaire in your own course(s). The number of settings available to such questionnaires is limited and you cannot edit its questions nor view the responses. &amp;lt;br /&amp;gt;&#039;&#039;&#039;&#039;&#039; Example &#039;&#039;&#039;&#039;&#039;.- If a public questionnaire has been created in course A, it can be &amp;quot;used&amp;quot; in courses B, C, ... All the responses from courses A, B, C, ... are collected in the public questionnaire created in course A (the original course where it was created) and are viewable there by the person (admin or teacher) who originally created it.&lt;br /&gt;
&lt;br /&gt;
[[Category:Teacher]]&lt;br /&gt;
&lt;br /&gt;
[[fr:Ajouter/modifier un questionnaire]]&lt;/div&gt;</summary>
		<author><name>Rezeau</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/25/en/index.php?title=Regular_Expression_Short-Answer_question_type&amp;diff=106328</id>
		<title>Regular Expression Short-Answer question type</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/25/en/index.php?title=Regular_Expression_Short-Answer_question_type&amp;diff=106328"/>
		<updated>2013-08-09T09:21:30Z</updated>

		<summary type="html">&lt;p&gt;Rezeau: /* Inserting RegExp sub-questions in Cloze type questions */ updated to moodle 2.5 URLs on my github&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===The RegExp Short Answer Question===&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;IMPORTANT NOTE&#039;&#039;&#039;&lt;br /&gt;
** The RegExp Short Answer question described in this documentation page is a 3rd-party plugin, which allows you to create questions for the &#039;&#039;&#039;&#039;&#039;Quiz&#039;&#039;&#039;&#039;&#039; activity. It is &#039;&#039;different&#039;&#039; from the &amp;quot;Use regular expressions&amp;quot; option in the &#039;&#039;&#039;&#039;&#039;Lesson&#039;&#039;&#039;&#039;&#039; module.&lt;br /&gt;
** The documentation for the &amp;quot;Use regular expressions&amp;quot; option in the &#039;&#039;&#039;&#039;&#039;Lesson&#039;&#039;&#039;&#039;&#039; module is to be found at: [https://docs.moodle.org/en/Short_answer_analysis Short answer analysis].&lt;br /&gt;
&lt;br /&gt;
Like the Short Answer question, the RegExp Short Answer question expects the respondent to answer an &amp;quot;open&amp;quot; question with a word or a short phrase. However, the RegExp system system gives you access to a more powerful system for &#039;&#039;analyzing the student&#039;s answers&#039;&#039; with the aim of &#039;&#039;providing more relevant immediate feedback&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
===Correct answer matching a regular expression pattern===&lt;br /&gt;
&lt;br /&gt;
It is not possible to give complete examples of the vast possibilities offered by this system, and the following are just some possibilities.&lt;br /&gt;
&lt;br /&gt;
====&#039;&#039;&#039;Example 1.&#039;&#039;&#039;====&lt;br /&gt;
&lt;br /&gt;
Suppose your question was &amp;quot;What are the colors of the French flag?&amp;quot;. In the Answer 1 box you would type the &amp;quot;best&amp;quot; answer, e.g. &amp;quot;it&#039;s blue, white and red&amp;quot;. For more details, see [[#firstcorrect|First correct answer]] below.&lt;br /&gt;
&lt;br /&gt;
*In the Answer 2 box you would type this regular expression: &amp;quot;it&#039;s blue, white(,| and) red&amp;quot; (quotes should not be typed, of course).&lt;br /&gt;
* If [[#casesensivity|Case sensivity]] is set to &amp;quot;No&amp;quot;, this will match any of those 4 responses:&lt;br /&gt;
    it&#039;s blue, white, red&lt;br /&gt;
    it&#039;s blue, white and red&lt;br /&gt;
    It&#039;s blue, white, red&lt;br /&gt;
    It&#039;s blue, white and red&lt;br /&gt;
&lt;br /&gt;
====&#039;&#039;&#039;Example 2&#039;&#039;&#039;.====&lt;br /&gt;
&lt;br /&gt;
Question: &amp;quot;What are blue, red and yellow?&amp;quot;. &lt;br /&gt;
* Answer 1: &amp;quot;they are colours&amp;quot;. &lt;br /&gt;
* Answer 2: &amp;quot;(|they(&#039;| a)re )colou?rs&amp;quot;. &lt;br /&gt;
* This will match any of those 6 responses:&lt;br /&gt;
    colours&lt;br /&gt;
    colors&lt;br /&gt;
    they&#039;re colours&lt;br /&gt;
    they&#039;re colors&lt;br /&gt;
    they are colours&lt;br /&gt;
    they are colors&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;Note&#039;&#039;&#039;&#039;&#039;.- The beginning of this regular expression &amp;quot;(|they(&#039;| a)re )&amp;quot; will match either nothing or &amp;quot;they&#039;re &amp;quot; or &amp;quot;they are &amp;quot;. In &amp;quot;colou?r&amp;quot;, the question-mark means: the preceding character (or parenthesized group of characters) zero or one time; it is used here to match British English as well as US spelling. &lt;br /&gt;
&lt;br /&gt;
====&#039;&#039;&#039;Example 3.&#039;&#039;&#039;====&lt;br /&gt;
&lt;br /&gt;
Question: &amp;quot;Name an animal whose name consists of 3 letters and the middle letter is the vowel &#039;&#039;a&#039;&#039;&amp;quot;.&lt;br /&gt;
* Answer 1: &amp;quot;cat&amp;quot;&lt;br /&gt;
* Answer 2: &amp;quot;[bcr]at&amp;quot;. &lt;br /&gt;
* This will match: bat, cat or rat.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;Note&#039;&#039;&#039;&#039;&#039;.- In Regular Expression syntax, the inclusion of characters between square brackets means than ANY of those characters can be used. So, in the above example, the regular expression &amp;quot;[bcr]at&amp;quot; is the exact equivalent of &amp;quot;(b|c|r)at&amp;quot;. Be careful NOT to include the pipe character as separator in your [...] regular expressions. For instance, &amp;quot;[b|c|r]at&amp;quot; will NOT WORK CORRECTLY.&lt;br /&gt;
&lt;br /&gt;
====&#039;&#039;&#039;Example 4.&#039;&#039;&#039;====&lt;br /&gt;
&lt;br /&gt;
The &#039;permutation&#039; feature (introduced in regexp version &#039;&#039;&#039;2012102900&#039;&#039;&#039; for Moodle 2.3+)&lt;br /&gt;
&lt;br /&gt;
Question: &amp;quot;What are the colours of the French flag (in any order)&amp;quot;.&lt;br /&gt;
* Answer 1: &amp;quot;it&#039;s blue, white and red&amp;quot;&lt;br /&gt;
* Answer 2: &amp;lt;nowiki&amp;gt;&amp;quot;it&#039;s [[_blue_, _white_(,| and) _red_]]&amp;quot;.&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
Upon saving the question, Answer 2 will be automatically re-written as Answer 2b:&lt;br /&gt;
&lt;br /&gt;
it&#039;s (blue, white(,| and) red|blue, red(,| and) white|white, red(,| and) blue|white, blue(,| and) red|red, blue(,| and) white|red, white(,| and) blue) &lt;br /&gt;
&lt;br /&gt;
and it will match all the following answers:&lt;br /&gt;
    it&#039;s blue, white, red&lt;br /&gt;
    it&#039;s blue, white and red&lt;br /&gt;
    it&#039;s blue, red, white&lt;br /&gt;
    it&#039;s blue, red and white&lt;br /&gt;
    it&#039;s white, red, blue&lt;br /&gt;
    it&#039;s white, red and blue&lt;br /&gt;
    it&#039;s white, blue, red&lt;br /&gt;
    it&#039;s white, blue and red&lt;br /&gt;
    it&#039;s red, blue, white&lt;br /&gt;
    it&#039;s red, blue and white&lt;br /&gt;
    it&#039;s red, white, blue&lt;br /&gt;
    it&#039;s red, white and blue&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;Note&#039;&#039;&#039;&#039;&#039;.- This &#039;permutation feature&#039; has been asked quite a few times by regexp users. It is definitely &#039;&#039;not&#039;&#039; possible to obtain it by using standard Regular Expressions syntax. &lt;br /&gt;
&lt;br /&gt;
It is possible (but tedious) to write a regular expression including all the possible permutations - as in Answer 2b above - but the &#039;&#039;ad hoc&#039;&#039; syntax I am offering makes it easier to write... provided you strictly adhere to that syntax!&lt;br /&gt;
&lt;br /&gt;
Include within double square brackets the part of the Answer which will contain &#039;permutable&#039; words or phrases. You are actually allowed to have a maximum of 2 such sets of &#039;permutable&#039; words or phrases. But you cannot embed one set within another!&lt;br /&gt;
&lt;br /&gt;
Then, use pairs of underscores (the _ character) to delimit each &#039;permutable&#039; word or phrase. You can still use any of the accepted Regular Expressions characters, as explained here, in your Answers which contain one (or two) such sets of &#039;permutable&#039; words or phrases. If your Answer does not contain an even number of underscores, an Error warning will be displayed upon clicking the Show Alternate Answers button or when trying to Save your question.&lt;br /&gt;
&lt;br /&gt;
====&#039;&#039;&#039;Example 5.&#039;&#039;&#039;====&lt;br /&gt;
&lt;br /&gt;
Another &#039;permutation&#039; example&lt;br /&gt;
&lt;br /&gt;
Question: &amp;quot;Quote the English proverb that is an encouragement to hard, diligent work.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
* Answer 1: &amp;quot;Early to bed and early to rise makes an ma healthy, wealthy and wise&amp;quot;&lt;br /&gt;
* Answer 2: &amp;quot;Early to &amp;lt;nowiki&amp;gt;[[_bed_ and early to _rise_]], makes a man [[_healthy_, _wealthy_ and _wise_]]&amp;lt;/nowiki&amp;gt;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Upon saving the question, Answer 2 will be automatically re-written as Answer 2b:&lt;br /&gt;
&lt;br /&gt;
Early to (bed and early to rise|rise and early to bed) makes a man (healthy, wealthy and wise|healthy, wise and wealthy|wealthy, wise and healthy|wealthy, healthy and wise|wise, healthy and wealthy|wise, wealthy and healthy)&lt;br /&gt;
&lt;br /&gt;
and it will match all the following answers:&lt;br /&gt;
&lt;br /&gt;
    Early to bed and early to rise makes a man healthy, wealthy and wise&lt;br /&gt;
    Early to bed and early to rise makes a man healthy, wise and wealthy&lt;br /&gt;
    Early to bed and early to rise makes a man wealthy, wise and healthy&lt;br /&gt;
    Early to bed and early to rise makes a man wealthy, healthy and wise&lt;br /&gt;
    Early to bed and early to rise makes a man wise, healthy and wealthy&lt;br /&gt;
    Early to bed and early to rise makes a man wise, wealthy and healthy&lt;br /&gt;
    Early to rise and early to bed makes a man healthy, wealthy and wise&lt;br /&gt;
    Early to rise and early to bed makes a man healthy, wise and wealthy&lt;br /&gt;
    Early to rise and early to bed makes a man wealthy, wise and healthy&lt;br /&gt;
    Early to rise and early to bed makes a man wealthy, healthy and wise&lt;br /&gt;
    Early to rise and early to bed makes a man wise, healthy and wealthy&lt;br /&gt;
    Early to rise and early to bed makes a man wise, wealthy and healthy&lt;br /&gt;
&lt;br /&gt;
===Escaping metacharacters===&lt;br /&gt;
&lt;br /&gt;
====Definition====&lt;br /&gt;
In the Regular Expressions syntax, a number of special characters or &#039;&#039;meta characters&#039;&#039; have special functions; but it is possible to force these special characters to be interpreted as normal (or &#039;&#039;literal&#039;&#039;) characters by preceding them with a so-called &#039;&#039;escape&#039;&#039; character, the backslash &amp;quot;\&amp;quot;. &lt;br /&gt;
Below is a (partial) list of those &#039;&#039;meta characters&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;. ^ $ * ( ) [ ] + ? | { } \ /&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
====In Accepted Answers====&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Accepted Answers&#039;&#039;&#039; are Answers which have a grade greater than zero, i.e. are &#039;&#039;totally&#039;&#039; (grade = 100%) or &#039;&#039;partially&#039;&#039; (grade &amp;gt; 0% &amp;lt; 100%) &#039;&#039;correct Answers&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
In those Answers, if you need to use one or more &#039;&#039;meta characters&#039;&#039; for their &#039;&#039;literal&#039;&#039; value, you &#039;&#039;&#039;must&#039;&#039;&#039; &#039;&#039;escape&#039;&#039; them (i.e. precede them with a backslash). &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example 1.-&#039;&#039;&#039; If you want to accept the answer &amp;quot;This computer costs 1000$ in the US.&amp;quot;, you must write the Answer as &amp;quot;This computer costs 1000\$ in the US\.&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example 2.-&#039;&#039;&#039; If you want to accept the answer &amp;quot;Desktop computers are (usually) more powerful than laptops.&amp;quot;, you must write the Answer as &amp;quot;Desktop computers are \(usually\) more powerful than laptops\.&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
* You can mix metacharacters that have a special function with others that have a literal value, within one Answer.&lt;br /&gt;
&#039;&#039;&#039;Example 3.-&#039;&#039;&#039; If you want to accept both answers &amp;quot;Computers are (usually) cheaper than cars.&amp;quot; and &amp;quot;Computers are (usually) less expensive than cars.&amp;quot;, you must write the Answer as &amp;quot;&amp;quot;Computers are \(usually\) (cheaper|less expensive) than cars.&amp;quot;&amp;quot;. &lt;br /&gt;
* In the &#039;&#039;&#039;Accepted Answers&#039;&#039;&#039; boxes you can only enter regular expressions which can generate a finite number of sentences. That is why you will not be allowed to use some &#039;&#039;meta characters&#039;&#039; which match a potentially infinite number of sentences.&lt;br /&gt;
* List of &#039;&#039;meta characters&#039;&#039; which you &#039;&#039;&#039;can&#039;&#039;&#039; use for their RegExp functions:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;( ) [ ] ? |&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* List of &#039;&#039;meta characters&#039;&#039; which you &#039;&#039;&#039;cannot&#039;&#039;&#039; use for their RegExp functions, and can only be used for their &#039;&#039;literal&#039;&#039; value (and must be &#039;&#039;escaped&#039;&#039;).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;. ^ $ * + { } \ /&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* The question mark (?) can be used either for its RegExp function OR, if escaped, for its &#039;&#039;literal&#039;&#039; value.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example 4.-&#039;&#039;&#039; &amp;quot;Do you like Jack(ie)?\?&amp;quot; will accept both &amp;quot;Do you like Jack?&amp;quot; and &amp;quot;Do you like Jackie?&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
====In Incorrect Answers====&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Incorrect Answers&#039;&#039;&#039; are Answers which have a grade equal to zero (or None).&lt;br /&gt;
When you write those Incorrect Answers, you can use the whole range of &#039;&#039;meta characters&#039;&#039; for their special function value:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;. ^ $ * ( ) [ ] + ? | { } \ /&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
For examples of use, see &#039;&#039;&#039;Detecting missing required words or character strings&#039;&#039;&#039; below.&lt;br /&gt;
&lt;br /&gt;
====Answers Validation====&lt;br /&gt;
&lt;br /&gt;
When you validate your Question, the question engine checks the validity of your expression, according to the features explained above. If an error is found, an ERROR message is displayed above the erroneous Answer(s) and you cannot save the Question until that error has been corrected.&lt;br /&gt;
&lt;br /&gt;
The validation system also checks that your parentheses and square brackets are correctly balanced.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note.-&#039;&#039;&#039; The faulty Answer text is &amp;quot;underlined&amp;quot; with the list of errors, as shown below.&lt;br /&gt;
&lt;br /&gt;
[[Image:Errors_en.jpg]]&lt;br /&gt;
&lt;br /&gt;
===Detecting missing required words or character strings===&lt;br /&gt;
&lt;br /&gt;
This is a powerful feature of the RegExp question type. It will analyse the student&#039;s answer for words that are required for the answer to be correct. There are 2 ways to do this.&lt;br /&gt;
* Use what is called &amp;quot;negative lookahead assertion&amp;quot; in regular expressions syntax: &#039;&#039;&#039;^(?!.*required.*)&#039;&#039;&#039;&lt;br /&gt;
* or use an &#039;&#039;ad hoc&#039;&#039; pseudo-syntax provided in RegExp (an initial double hyphen): &#039;&#039;&#039;--.*required.*&#039;&#039;&#039;.&lt;br /&gt;
In the examples below, we shall be using the &#039;ad hoc&#039; RegExp pseudo-syntax, and sometimes give the &amp;quot;negative lookahead assertion&amp;quot; equivalent for anyone interested.&lt;br /&gt;
&lt;br /&gt;
Any Teacher Answer which begins with a double hyphen will analyse the student’s response to find out whether the following string is present or absent. If present, the analysis continues to the next question; if absent, the analysis stops and the relevant feedback message is displayed.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example 4. &#039;&#039;&#039; Question &amp;quot;What are the colors of the French flag?&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
* Teacher Answer 2: --.*blue.*&lt;br /&gt;
* Sample student Response: &amp;quot;it&#039;s red and white&amp;quot;&lt;br /&gt;
* Feedback 2: The color of the sky is missing!&lt;br /&gt;
&lt;br /&gt;
Here, the . (dot) stands for “any character” and the * (asterisk) means “preceding special character repeated any number of times”. The Teacher Answer 2 regular expression above means: check whether the character string &amp;quot;blue&amp;quot;, preceded with anything and followed by anything is absent from the student&#039;s answer. Please note that the use of the asterisk is different in Moodle&#039;s &amp;quot;normal&amp;quot; Short Answer question type and in the RegExp question type.&lt;br /&gt;
&lt;br /&gt;
Actually, this syntax is not sufficient to track the absence of the word &amp;quot;blue&amp;quot; in a student&#039;s answer such as &amp;quot;it&#039;s blueish, white and red&amp;quot;. To make sure that we want to track the absence of &amp;quot;blue&amp;quot; as a word(and not just as part of a word), we must use the metacharacter \b which is an anchor which matches at a position that is called a &amp;quot;word boundary&amp;quot;. Hence the new version of our Example 4:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example 4b. &#039;&#039;&#039; Question &amp;quot;What are the colors of the French flag?&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
* Teacher Answer 2: --.*\bblue\b.*&lt;br /&gt;
* Sample student Response: &amp;quot;it&#039;s blueish, white and red&amp;quot;&lt;br /&gt;
* Feedback 2: The color of the sky is missing!&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note.-&#039;&#039;&#039;&lt;br /&gt;
Using the &amp;quot;negative lookahead assertion&amp;quot; syntax mentioned at the beginning of this section, Teacher Answer 2 would look like this:&lt;br /&gt;
* Teacher Answer 2: &#039;&#039;&#039;^(?!&#039;&#039;&#039;.*\blue\b.*&#039;&#039;&#039;)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example 5.&#039;&#039;&#039; Question: &amp;quot;Name an animal whose name consists of 3 letters and the middle letter is the vowel &#039;&#039;a&#039;&#039;&amp;quot;. &lt;br /&gt;
* Teacher Answer: &amp;quot;--^[bcr]&amp;quot;. &#039;&#039;&#039;OR&#039;&#039;&#039; * Teacher Answer: &amp;quot;--^(b|c|r)&amp;quot;.&lt;br /&gt;
* Sample student Response: &amp;quot;dog&amp;quot;&lt;br /&gt;
* Feedback: &amp;quot;Your answer should start with one of these letters: b, c or r&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note.-&#039;&#039;&#039;&lt;br /&gt;
In regular expressions syntax, the caret ^ stands for &amp;quot;beginning of character string to be matched&amp;quot;, while the dollar sign $ stands for &amp;quot;end of character string&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example 6.&#039;&#039;&#039; Question &amp;quot;What are the colors of the French flag?&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
* Teacher Answer: &amp;quot;--.*(blue|red|white).*&amp;quot;&lt;br /&gt;
* Sample student Response #1: &amp;quot;It&#039;s black and orange.&amp;quot;&lt;br /&gt;
* Feedback: &amp;quot;You have not even found one of the colors of the French flag!&amp;quot;&lt;br /&gt;
* Sample student Response #2: &amp;quot;It&#039;s blue and orange.&amp;quot;&lt;br /&gt;
* Feedback: None, the analysis continues to the next Teacher Answer expression.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;Explanation&#039;&#039;&#039;&#039;&#039;.- The regular expression looks for a missing word among those listed between brackets and separated by the | sign. As soon as one of those words is found, the &amp;quot;missing condition&amp;quot; is considered false, and the response analysis continues to the next Answer&#039;s regular expression.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note.-&#039;&#039;&#039;&lt;br /&gt;
Using the &amp;quot;negative lookahead assertion&amp;quot; syntax, Teacher Answer would look like this: &#039;&#039;&#039;^(?!.*(blue|red|white).*)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example 7.&#039;&#039;&#039; Question &amp;quot;What are the colors of the French flag?&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
* Teacher Answer: &amp;quot;--.*(&#039;&#039;&#039;&amp;amp;&amp;amp;&#039;&#039;&#039;blue&#039;&#039;&#039;&amp;amp;&amp;amp;&#039;&#039;&#039;red&#039;&#039;&#039;&amp;amp;&amp;amp;&#039;&#039;&#039;white).*&amp;quot;&lt;br /&gt;
* Sample student Response #1: &amp;quot;It&#039;s blue and orange.&amp;quot;&lt;br /&gt;
* Feedback: &amp;quot;You have not found all the colors of the French flag&amp;quot;.&lt;br /&gt;
* Sample student Response #2: &amp;quot;white blue red&amp;quot;.&lt;br /&gt;
* Feedback: None, the analysis continues to the next Teacher Answer expression.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;Explanation&#039;&#039;&#039;&#039;&#039;.- The regular expression looks for a missing word among all of those listed between brackets and separated by the &amp;amp;&amp;amp; double character combination. Only if all of those words are present, will the &amp;quot;missing condition&amp;quot; be considered false, and the response analysis continue to the next Answer&#039;s regular expression. Please note that the list of parenthesized words must begin with the &amp;amp;&amp;amp; character sequence.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note.-&#039;&#039;&#039;&lt;br /&gt;
Using the &amp;quot;negative lookahead assertion&amp;quot; syntax, Teacher Answer would look like this: &#039;&#039;&#039;(^(?!.*(blue).*)|^(?!.*(white).*)|^(?!.*(red).*))&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
===Editing a regular expression question===&lt;br /&gt;
&lt;br /&gt;
[[Image:settings01.jpg]]&lt;br /&gt;
&lt;br /&gt;
====Help Button Mode====&lt;br /&gt;
&lt;br /&gt;
Selecting a mode other than &#039;&#039;None&#039;&#039; will display a button to enable the student to get the next letter or word (including the very first letter or word).&lt;br /&gt;
&lt;br /&gt;
In &#039;&#039;Adaptive mode&#039;&#039; the button displayed will say &amp;quot;Buy next letter&amp;quot; or &amp;quot;Buy next word&amp;quot; according to the mode selected by the teacher. For setting the &amp;quot;cost&amp;quot; of buying a letter or word, see the &#039;&#039;Penalty for incorrect tries and Buying a letter or word&#039;&#039; settings further down the Edit form.&lt;br /&gt;
&lt;br /&gt;
In &#039;&#039;Adaptive No penalty&#039;&#039; mode the button displayed will say &amp;quot;Get next letter&amp;quot; or &amp;quot;Get next word&amp;quot;&lt;br /&gt;
&lt;br /&gt;
By default the Help button mode value is set at &#039;&#039;&#039;None&#039;&#039;&#039;. The Help button will only be available to quizzes that have their &#039;&#039;&#039;Question behaviour&#039;&#039;&#039; mode set to &#039;&#039;Adaptive&#039;&#039; or &#039;&#039;Adaptive (no penalties)&#039;&#039; as it does not make sense to enable the Help button for non-adaptive tests.&lt;br /&gt;
&lt;br /&gt;
====&amp;lt;span id=&amp;quot;casesensivity&amp;quot;&amp;gt;Case sensitivity&amp;lt;/span&amp;gt;====&lt;br /&gt;
&lt;br /&gt;
The editing form features a &#039;&#039;Case sensitivity&#039;&#039; setting, which is valid for &#039;&#039;all of the answers&#039;&#039; of the current question. You should not add an &#039;&#039;&#039;/i&#039;&#039;&#039; parameter at the end of your regular expressions. You may need to edit questions authored in 1.9 when you upgrade to 2.0 and remove any &#039;&#039;&#039;/i&#039;&#039;&#039; parameters from your regular expressions.&lt;br /&gt;
&lt;br /&gt;
====Show alternate answers to student====&lt;br /&gt;
Show all correct alternative answers to student when on review page? If there are a lot of automatically generated correct alternative answers, displaying them all can make the review page quite long. So, you may wish to &#039;&#039;not&#039;&#039; display all those alternative correct answers. The first correct answer will always be displayed, under the label &amp;quot;The best correct answer is:&amp;quot;&lt;br /&gt;
&lt;br /&gt;
====&amp;lt;span id=&amp;quot;firstcorrect&amp;quot;&amp;gt;First correct answer&amp;lt;/span&amp;gt;====&lt;br /&gt;
&lt;br /&gt;
For Answer 1 you must enter an answer text which a) is the &amp;quot;best&amp;quot; possible answer; b) is &#039;&#039;&#039;not&#039;&#039;&#039; a regular expression or - more exactly - &#039;&#039;will not be interpreted as a regular expression&#039;&#039; but &amp;quot;as is&amp;quot; and c) has a Grade value of 100%. You will notice that when you create a new RegExp question the Grade value for Answer 1 is already automatically set at 100% and cannot be changed.&lt;br /&gt;
&lt;br /&gt;
Note.- There are two ways to enter an answer containing meta characters, according to whether this is Answer 1 or any of the subsequent Answers. Exemple question: how much did your computer cost?&lt;br /&gt;
&lt;br /&gt;
Answer 1: It cost $1,000.&lt;br /&gt;
&lt;br /&gt;
Answer 2: It cost ( me)?\$1,000\.&lt;br /&gt;
&lt;br /&gt;
In Anwer 1 you just type the expected answer &amp;quot;as is&amp;quot;. The text in Answer 2 will be interpreted as a regular expression, and thus you need to escape the two meta characters (the $ sign and the end-of-sentence full stop). Note that here I have added the optional pronoun &amp;quot;me&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
====Other answers====&lt;br /&gt;
&lt;br /&gt;
Any answers with a Grade higher than 0% must be entered as valid regular expressions &#039;&#039;which can yield acceptable alternative answers&#039;&#039; (regardless of the Grade being less than 100%).&lt;br /&gt;
&lt;br /&gt;
This means that some regular expressions, which are perfectly valid and would correctly analyse the student&#039;s (correct) answer are not recommended. The only case where they would work is a) if your question&#039;s &#039;&#039;&#039;Display Hint Button&#039;&#039;&#039; is set at No and b) your quiz &#039;&#039;&#039;Adaptative Mode&#039;&#039;&#039; is set at No. This means that you must &#039;&#039;not&#039;&#039; enter as an answer with a grade higher than 0% a regular expression beginning with a double hyphen &amp;quot;--&amp;quot;, used for detecting missing character strings.&lt;br /&gt;
&lt;br /&gt;
====Show/Hide alternate answers====&lt;br /&gt;
&lt;br /&gt;
When you are creating (or modifying) a RegExp question, you may want to make sure that all the alternative correct answers that you have created in the Answers fields will work. You can click the &#039;&#039;&#039;Show alternate answers&#039;&#039;&#039; button to calculate and display all the correct answers in the form you are editing. This may take quite some time on your server, depending on the number and complexity of the regular expressions you have entered in the Answer fields!&lt;br /&gt;
&lt;br /&gt;
On the other hand, it is the recommended way to check that your &amp;quot;correct answers&amp;quot; expressions are correctly written. Here is an example.&lt;br /&gt;
&lt;br /&gt;
Please remember that only Answers regular expressions with a score greater than zero will be used to calculate those alternative answers.&lt;br /&gt;
&lt;br /&gt;
Please note that clicking the &#039;&#039;&#039;Show alternate answers&#039;&#039;&#039; button will perform an analysis of all the regular expressions you entered in the Answers field. If a syntax error is detected at this stage, the alternative correct answers will &#039;&#039;not&#039;&#039; be displayed, and an &#039;&#039;ad hoc&#039;&#039; error message will displayed above the faulty regular expression.&lt;br /&gt;
&lt;br /&gt;
[[Image:showhidealternateanswers.jpg]]&lt;br /&gt;
&lt;br /&gt;
===Previewing questions in popup window (teacher only)===&lt;br /&gt;
&lt;br /&gt;
When the teacher previews a question in the popup preview question window they can display all of the acceptable alternative answers. Those alternative answers are automatically generated from the regular expressions you have entered when creating the question which carry a grade higher than 0%. The very first acceptable answer is printed as is at the top of the list. This is followed by all the other alternative acceptable answers, consisting of a) the Grade attributed; b) a reminder of the regular expression you entered and c) a list of all alternative answers.&lt;br /&gt;
&lt;br /&gt;
[[Image:alternate_answers.jpg]]&lt;br /&gt;
&lt;br /&gt;
===Automatic formatted extra feedback===&lt;br /&gt;
Please note that the RegExp question can be used in any &#039;&#039;&#039;Question behaviour&#039;&#039;&#039; mode. However, it is advised to create quizzes containing only RegExp questions or containing other types of questions, but &#039;&#039;preferably&#039;&#039; if the quiz&#039;s &#039;&#039;&#039;&#039;&#039;Question behaviour / How questions behave&#039;&#039;&#039;&#039;&#039; setting is set to &#039;&#039;Adaptive mode&#039;&#039; (with or without penalty).&lt;br /&gt;
&lt;br /&gt;
When a student (or teacher in Preview Question mode) submits a response to a RegExp question, 3 types of feedback messages are displayed (in Adaptive mode).&lt;br /&gt;
&lt;br /&gt;
* (line 3) The standard correct/incorrect Quiz message (plus the color associated with either state).&lt;br /&gt;
* (line 2) The Feedback message entered by the question creator for each Teacher Answer.&lt;br /&gt;
* (line 1) An extra feedback system is automatically provided, displaying the student&#039;s submitted response, with the following format codes:&lt;br /&gt;
** the beginning of the student&#039;s submitted response which best matches one of the Alternate Answers is displayed in blue;&lt;br /&gt;
** any words from the submitted response which are present in the potential Alternate Answers following the initial correct part submitted are colored in red;&lt;br /&gt;
** any words not present in the potential Alternate Answers following the initial correct part submitted are colored in red and formatted as strike-through.&lt;br /&gt;
The meaning of those colors etc. may need to be explained to the student before they take the quiz, especially the difference between &amp;quot;red&amp;quot; and &amp;quot;red plus strike-through&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
[[Image:regexp_colored_feedback_21.jpg]]&lt;br /&gt;
&lt;br /&gt;
===Feedback given by the Help button===&lt;br /&gt;
&lt;br /&gt;
Each time a student clicks the &#039;&#039;&#039;Buy/Get next letter/word&#039;&#039;&#039; button to buy/get a letter/word, that letter or word is added to his response. The last line of the feedback zone shows the following information: added letter/word; penalty cost (if applicable); total penalties so far (if applicable). Note that if the total of penalties exceeds 1 (i.e. 100%), that total is displayed in red. &lt;br /&gt;
&lt;br /&gt;
When the teacher views the quiz results, on the &#039;&#039;&#039;&#039;Review Attempt&#039;&#039;&#039;&#039; pages, &#039;&#039;&#039;&#039;History of responses&#039;&#039;&#039;&#039; section, the response history shows &#039;&#039;Submit (with a request for help)&#039;&#039; with the response states before and after the letter/word was added.&lt;br /&gt;
&lt;br /&gt;
[[Image:21-addedletterhistory.jpg]]&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
[[Image:21-addedwordhistory.jpg]]&lt;br /&gt;
----&lt;br /&gt;
If the student clicked the &#039;&#039;&#039;Buy/Get next word&#039;&#039;&#039; button while his current submitted answer contained the beginning of a (correct) word, the full correct word is displayed in the Answer field, and the feedback message says &amp;quot;&#039;&#039;Completed&#039;&#039; word&amp;quot; rather than &amp;quot;&#039;&#039;Added&#039;&#039; word&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
[[Image:21-completedwordhistory.jpg]]&lt;br /&gt;
&lt;br /&gt;
===Display right answers===&lt;br /&gt;
&lt;br /&gt;
If your Quiz settings &#039;&#039;Review options&#039;&#039; are set to display the Right answer (During the attempt or Immediately after the attempt etc.), and your question&#039;s &#039;&#039;Show alternate answers to student&#039;&#039; setting is set to &#039;&#039;&#039;Yes&#039;&#039;&#039;, when the student has submitted his attempt, and is reviewing his answers, all of the possible answers will be displayed, as shown in this screenshot. Correct responses with a grade &amp;lt; 100% are also listed, with their grade value.&lt;br /&gt;
&lt;br /&gt;
Please note that the &#039;&#039;teacher&#039;&#039; will always be able to see that &amp;quot;other accepted answers&amp;quot; section when reviewing the Quiz answers.&lt;br /&gt;
&lt;br /&gt;
[[Image:23 correct responses.jpg]]&lt;br /&gt;
&lt;br /&gt;
===Inserting RegExp sub-questions in Cloze type questions===&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;nicetable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!Important notice&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
The RegExp question type is &#039;&#039;&#039;&#039;&#039;not&#039;&#039;&#039;&#039;&#039; recognized by the standard Moodle Cloze question type. If you want to use it you&#039;ll have to replace 2 files (&#039;&#039;renderer.php&#039;&#039; and &#039;&#039;questiontype.php&#039;&#039;) on your &#039;&#039;&amp;lt;yourmoodle&amp;gt;/question/type/multianswer&#039;&#039; with the hacked files available from the links below.&lt;br /&gt;
&lt;br /&gt;
https://raw.github.com/rezeau/moodle/multianswer_regexp-25/question/type/multianswer/questiontype.php&lt;br /&gt;
&lt;br /&gt;
https://raw.github.com/rezeau/moodle/multianswer_regexp-25/question/type/multianswer/renderer.php&lt;br /&gt;
&lt;br /&gt;
Note.- If you are interested in comparing the 2 &amp;quot;standard&amp;quot; Moodle 2.5 multianswer files with the &amp;quot;RegExp hacked&amp;quot; files, go to &lt;br /&gt;
&lt;br /&gt;
https://github.com/rezeau/moodle/compare/MOODLE_25_STABLE...multianswer_regexp-25&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Syntax for inserting RegExp sub-questions in Cloze type questions.&lt;br /&gt;
&lt;br /&gt;
Use &#039;&#039;&#039;REGEXP&#039;&#039;&#039; or shorter &#039;&#039;&#039;RX&#039;&#039;&#039; coding for questions which ignore case&lt;br /&gt;
&lt;br /&gt;
* The colors of the French flag are {:REGEXP:=blue, white and red#Correct!}.&lt;br /&gt;
* The colors of the French flag are {:RX:=blue, white and red#Correct!}.&lt;br /&gt;
&lt;br /&gt;
Will accept &amp;quot;blue, white and red&amp;quot; as a correct answer as well as &amp;quot;Blue, White and Red&amp;quot;&lt;br /&gt;
&lt;br /&gt;
use &#039;&#039;&#039;REGEXP_C&#039;&#039;&#039; or shorter &#039;&#039;&#039;RXC&#039;&#039;&#039; coding for questions in which case matters&lt;br /&gt;
* The colors of the French flag are {:REGEXP_C:=blue, white and red#Correct!}.&lt;br /&gt;
* The colors of the French flag are {:RXC:=blue, white and red#Correct!}.&lt;br /&gt;
&lt;br /&gt;
Will not accept &amp;quot;Blue, White and Red&amp;quot; as a correct answer (wrong capital letters).&lt;br /&gt;
&lt;br /&gt;
Please note that, as explained above, the very first answer &#039;&#039;must&#039;&#039; be Graded 100% (in Cloze type question syntax, all correct is either &#039;&#039;&#039;=&#039;&#039;&#039; or &#039;&#039;&#039;100%&#039;&#039;&#039;) and it must &#039;&#039;not&#039;&#039; be a regular expression.&lt;br /&gt;
&lt;br /&gt;
Please note that the syntax of the sub-questions inside a Cloze-type question must be followed exactly and that you must never ever copy and paste any question text from e.g. a word-processor into the Cloze-type question editing window. Quite often Cloze-type questions yield errors because extraneous blank spaces, new lines, or any odd formatting character has made its way into the question text.&lt;br /&gt;
&lt;br /&gt;
Note that the &#039;&#039;Hint&#039;&#039; button is not available for a RegExp question embedded in a Cloze-type question.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
====Downloads====&lt;br /&gt;
* Download [http://moodle.org/plugins/view.php?plugin=qtype_regexp the latest 2.2 version (with behaviours)] from the new Plugins repository.&lt;br /&gt;
* IMPORTANT : for the 2.2 version, if you want the Help feature, you must also download and install the following 2 &amp;quot;question behaviours&amp;quot; from the new Plugins repository: [http://moodle.org/plugins/view.php?plugin=qbehaviour_regexpadaptivewithhelp RegExp Adaptive mode with Help]  and [http://moodle.org/plugins/view.php?plugin=qbehaviour_regexpadaptivewithhelpnopenalty RegExp Adaptive mode with Help (no penalties)].&lt;br /&gt;
&lt;br /&gt;
====Installation====&lt;br /&gt;
-------------------------------&lt;br /&gt;
If you have downloaded the zip archive from the new moodle.org plugins page&lt;br /&gt;
&lt;br /&gt;
1.- Unzip the zip archive to your local computer.&lt;br /&gt;
&lt;br /&gt;
2.- This will give you a folder named &amp;quot;regexp&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
3.- GO TO STEP 4 below&lt;br /&gt;
---&lt;br /&gt;
&lt;br /&gt;
If you have downloaded the zip archive from https://github.com/rezeau/moodle-qtype_regexp (&#039;&#039;&#039;for latest developments&#039;&#039;&#039;)&lt;br /&gt;
&lt;br /&gt;
1.- Unzip the zip archive to your local computer.&lt;br /&gt;
&lt;br /&gt;
2.- This will give you a folder named something like &amp;quot;rezeau-moodle_qtype_regexp-ff8c6a1&amp;quot;. The end of the name may vary.&lt;br /&gt;
&lt;br /&gt;
3.- ***Rename*** that folder to &amp;quot;regexp&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
---&lt;br /&gt;
&lt;br /&gt;
4.- Upload the regexp folder to &amp;lt;yourmoodle&amp;gt;/question/type/ folder.&lt;br /&gt;
&lt;br /&gt;
5.- Visit your Admin/Notifications page so that the new question type gets installed.&lt;br /&gt;
&lt;br /&gt;
====Learn more about regular expressions====&lt;br /&gt;
&lt;br /&gt;
*[http://www.regular-expressions.info/tutorial.html Regular Expressions Tutorial] A complete introduction to the topic.&lt;br /&gt;
*[http://www.regexplanet.com/simple/index.html Regular Expression Test Page] Test your regular expressions on a variety of &amp;quot;answers&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
====Other Moodle question types based on regular expressions====&lt;br /&gt;
[https://docs.moodle.org/dev/The_OU_PMatch_algorithm The OUP&#039;s PMatch]&lt;br /&gt;
&lt;br /&gt;
[https://docs.moodle.org/20/en/Preg_question_type Oleg Sychev&#039;s Preg question type]&lt;br /&gt;
&lt;br /&gt;
[[fr:question/type/regexp]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Quiz]]&lt;br /&gt;
[[Category:Questions]]&lt;br /&gt;
[[Category:Contributed code]]&lt;/div&gt;</summary>
		<author><name>Rezeau</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/25/en/index.php?title=Questionnaire_Conditional_branching&amp;diff=106324</id>
		<title>Questionnaire Conditional branching</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/25/en/index.php?title=Questionnaire_Conditional_branching&amp;diff=106324"/>
		<updated>2013-08-08T21:47:29Z</updated>

		<summary type="html">&lt;p&gt;Rezeau: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Questionnaire}}&lt;br /&gt;
{{New features}}&lt;br /&gt;
==Overview==&lt;br /&gt;
&lt;br /&gt;
===Definition===&lt;br /&gt;
Conditional branching (or Skip logic) is a feature that changes what question or page a respondent sees next based on how they answer the current question. Conditional branching creates a custom path through the survey that varies based on a respondent’s answers.&lt;br /&gt;
&lt;br /&gt;
===Organization===&lt;br /&gt;
In the Questionnaire plugin, the Conditional branching path is organized through &#039;&#039;pages&#039;&#039;, containing one or more &amp;quot;child&amp;quot; questions depending on a &amp;quot;parent&amp;quot; question.&lt;br /&gt;
&lt;br /&gt;
===Settings===&lt;br /&gt;
If you want to use the Conditional branching feature in a Questionnaire, when you create or edit the questionnaire, in the Response options section of the settings, you must set the &#039;&#039;&#039;Allow branching questions&#039;&#039;&#039; option to &#039;&#039;Yes&#039;&#039;. Please note that this option is set to &#039;&#039;No&#039;&#039; by default.&lt;br /&gt;
&lt;br /&gt;
==A simple example==&lt;br /&gt;
&lt;br /&gt;
===The flow we want to obtain===&lt;br /&gt;
&lt;br /&gt;
*Page 1&lt;br /&gt;
**Question 1 Do you own a car? Yes/No.&lt;br /&gt;
***Answer Yes -&amp;gt; go to page 2&lt;br /&gt;
***Answer No -&amp;gt; go to page 5 (i.e. skip over irrelevant questions in pages 2 through 4)&lt;br /&gt;
*Page 2&lt;br /&gt;
**Question 2: What is the color of your car?&lt;br /&gt;
**Question 3: Did you buy it new or second-hand?&lt;br /&gt;
***Answer new -&amp;gt; go to page 3&lt;br /&gt;
***Answer second-hand -&amp;gt; go to page 4&lt;br /&gt;
*Page 3&lt;br /&gt;
**Question 4: Did you pay your new car cash or did you get a bank loan?&lt;br /&gt;
*Page 4&lt;br /&gt;
**Question 5: Did you buy your second-hand car from a garage or directly from its previous owner?&lt;br /&gt;
*Page 5&lt;br /&gt;
**Question 6: Do you sometimes use public transport to go to work?&lt;br /&gt;
etc.&lt;br /&gt;
&lt;br /&gt;
===Procedure to obtain that flow===&lt;br /&gt;
&lt;br /&gt;
*Create Q1 as a Yes/No question.&lt;br /&gt;
**&#039;&#039;&#039;Question Name&#039;&#039;&#039;: &#039;&#039;own car&#039;&#039;. Note that you &#039;&#039;must&#039;&#039; give your question a name, as this name will be used later on in the Questionnaire to build the list of available Parent questions. Please keep this name as short as possible.&lt;br /&gt;
**&#039;&#039;&#039;Response Required&#039;&#039;&#039;: &#039;&#039;Yes&#039;&#039;. Since you plan to use question Q1 as a Parent question, it would not make sense to set it as non-required.&lt;br /&gt;
**&#039;&#039;&#039;Question Text&#039;&#039;&#039;: &#039;&#039;Do you own a car?&#039;&#039;&lt;br /&gt;
**Save Q1. No Page break will be inserted at this stage because you have not yet used a Parent question to create one or more Child questions.&lt;br /&gt;
&lt;br /&gt;
*Create Q2 as a Text Box question type&lt;br /&gt;
**&#039;&#039;&#039;Question Name&#039;&#039;&#039;: optional&lt;br /&gt;
**&#039;&#039;&#039;Response Required&#039;&#039;&#039;: &#039;&#039;Yes&#039;&#039; or &#039;&#039;No&#039;&#039; (depending on what you want to do with that question&#039;s answers later on).&lt;br /&gt;
**&#039;&#039;&#039;Parent Question&#039;&#039;&#039; : &#039;&#039;own car-&amp;gt;Yes&#039;&#039;. The Parent question (Q1) option offers 2 choices, since it is a Yes/No question.&lt;br /&gt;
**&#039;&#039;&#039;Question Text&#039;&#039;&#039;: &#039;&#039;What is the colour of your car?&#039;&#039;&lt;br /&gt;
**Save Q2. Upon saving Child question Q2 you notice that a Page break has been automatically inserted between the Parent question Q1 and its Child question Q2.&lt;br /&gt;
&lt;br /&gt;
*Create Q3 as a Radio Buttons (or Dropdown Box) question type&lt;br /&gt;
**&#039;&#039;&#039;Question Name&#039;&#039;&#039;: &#039;&#039;car status&#039;&#039;&lt;br /&gt;
**&#039;&#039;&#039;Response Required&#039;&#039;&#039;: &#039;&#039;Yes&#039;&#039;. We are giving question Q3 a name and setting it as Required because we plan to use it as a Parent question.&lt;br /&gt;
**&#039;&#039;&#039;Parent Question&#039;&#039;&#039;: own car-&amp;gt;Yes&lt;br /&gt;
**&#039;&#039;&#039;Question Text&#039;&#039;&#039;: Did you buy it new or second-hand?&lt;br /&gt;
**&#039;&#039;&#039;Possible answers&#039;&#039;&#039;:&lt;br /&gt;
***&#039;&#039;new::I bought it new&#039;&#039;&lt;br /&gt;
***&#039;&#039;used::I bought it second-hand&#039;&#039;. &lt;br /&gt;
**Please note that in the Possible answers field we are using the &amp;quot;short label&amp;quot; feature. You should use this feature if the full text of your Possible answers choices is fairly long.&lt;br /&gt;
**Save Q3. Upon saving Child question Q3 you notice that no Page break has been inserted. This is because both Q2 and Q3 are Child questions of the same Parent question Q1 and thus will be displayed on the same page of the questionnaire.&lt;br /&gt;
&lt;br /&gt;
*Create Q4 as a Radio Buttons question type&lt;br /&gt;
**&#039;&#039;&#039;Question Name&#039;&#039;&#039;: optional&lt;br /&gt;
**&#039;&#039;&#039;Response Required&#039;&#039;&#039;: Yes or No&lt;br /&gt;
**&#039;&#039;&#039;Parent Question&#039;&#039;&#039;: car status-&amp;gt;new&lt;br /&gt;
&lt;br /&gt;
**Please note that the list of potential Parent question choices displays the &amp;quot;short label&amp;quot; that we entered for the Possible answers in Q3, instead of the full text.&lt;br /&gt;
&lt;br /&gt;
**&#039;&#039;&#039;Question Text&#039;&#039;&#039;: How did you pay for your new car?&lt;br /&gt;
**&#039;&#039;&#039;Possible answers&#039;&#039;&#039;:&lt;br /&gt;
***&#039;&#039;I paid cash&#039;&#039;&lt;br /&gt;
***&#039;&#039;I got a bank loan&#039;&#039;&lt;br /&gt;
**Save Q4. Upon saving Child question Q4 you notice that a Page break has been automatically inserted between Parent question Q3 and its Child question Q4.&lt;br /&gt;
&lt;br /&gt;
*Create Q5 as a Radio Buttons question type&lt;br /&gt;
**&#039;&#039;&#039;Question Name&#039;&#039;&#039;: optional&lt;br /&gt;
**&#039;&#039;&#039;Response Required&#039;&#039;&#039;: Yes or No&lt;br /&gt;
**&#039;&#039;&#039;Parent Question&#039;&#039;&#039;: car status-&amp;gt;used&lt;br /&gt;
**&#039;&#039;&#039;Question Text&#039;&#039;&#039;: Where did you buy your second-hand car? &lt;br /&gt;
**&#039;&#039;&#039;Possible answers&#039;&#039;&#039;:&lt;br /&gt;
***&#039;&#039;I bought it from a garage&#039;&#039;&lt;br /&gt;
***&#039;&#039;I bought it directly from its previous owner&#039;&#039;&lt;br /&gt;
**Save Q5. Upon saving Child question Q5 you notice that a Page break has been automatically inserted between Child question Q4 and Child question Q5 because these two question do not have the same Parent question.&lt;br /&gt;
&lt;br /&gt;
*Create Q6 as YES/NO question type.&lt;br /&gt;
**&#039;&#039;&#039;Question Name&#039;&#039;&#039;: optional&lt;br /&gt;
**&#039;&#039;&#039;Response Required&#039;&#039;&#039;: Yes or No&lt;br /&gt;
**&#039;&#039;&#039;Parent Question&#039;&#039;&#039;: None. &amp;lt;br /&amp;gt;Question 6 is not dependent on any of the previous questions, and it will be displayed to the questionnaire respondent regardless of their previous answers.&lt;br /&gt;
**&#039;&#039;&#039;Question Text&#039;&#039;&#039;: Do you sometimes use public transport to go to work?&lt;br /&gt;
**Save Q6. Upon saving question Q6 you notice that a Page break has been automatically inserted between Child question Q5 and question Q6.&lt;br /&gt;
&lt;br /&gt;
Now continue creating questions normally, until you want to use Conditional branching again.&lt;br /&gt;
&lt;br /&gt;
Here is what your Manage questions section will look like after you have created those first 6 questions.&lt;br /&gt;
[[Image:07-08-2013 17-49-53.jpg]]&lt;br /&gt;
&lt;br /&gt;
==Operations on Conditional branching questions==&lt;br /&gt;
===Move===&lt;br /&gt;
By using the standard Moodle &amp;quot;Move&amp;quot; icon you can move your questionnaire questions to different positions. However, due to the special nature of the questionnaire flow when using the Conditional branching feature, there are restrictions on the new positions that you can move our questions to.&lt;br /&gt;
&lt;br /&gt;
*You cannot move a Parent question &#039;&#039;below&#039;&#039; any of its Child questions.&lt;br /&gt;
&lt;br /&gt;
*You cannot move a Child question &#039;&#039;above&#039;&#039; its Parent question.&lt;br /&gt;
&lt;br /&gt;
*You cannot remove those Page breaks which are needed to ensure a correct flow of dependent questions.&lt;br /&gt;
&lt;br /&gt;
[[Image:07-08-2013 18-04-16.jpg]]&lt;br /&gt;
&lt;br /&gt;
Those restrictions will show on the Manage questions screen where the Move icon is replaced with a &amp;quot;Forbidden&amp;quot; (Moodle &amp;quot;block&amp;quot;) icon. They will also operate when you are in &amp;quot;Move question&amp;quot; mode, where the Move to here icon/placeholder will not be displayed in the &amp;quot;forbidden&amp;quot; positions.&lt;br /&gt;
&lt;br /&gt;
===Edit===&lt;br /&gt;
Using the standard Moodle &amp;quot;Edit&amp;quot; icon you may edit any question. However, for those questions which have both a Parent question and one or more Child questions, you cannot change their Parent question &amp;amp; Choice, as that might ruin the consequent flow. The only way to change their Parent is to edit their Child question(s) first.&lt;br /&gt;
&lt;br /&gt;
[[Image:07-08-2013 18-12-59.jpg]]&lt;br /&gt;
&lt;br /&gt;
===Delete===&lt;br /&gt;
You cannot Delete those Page breaks which have been automatically inserted when adding Child questions.&lt;br /&gt;
&lt;br /&gt;
If you try to Delete a Parent question, you will get a warning with the list of its Child questions. If you answer Yes to the warning, the Parent question will be deleted, together with all its Child (and Grand-Child questions).&lt;br /&gt;
&lt;br /&gt;
[[Image:07-08-2013 18-20-29.jpg]]&lt;br /&gt;
&lt;br /&gt;
===Setting as Required/Not required===&lt;br /&gt;
&lt;br /&gt;
As said above, you would normally set all potential Parent questions as Required. However, there might be cases where you want to leave the respondent the choice to respond or not. If you set a question as Not required, then the usual &amp;quot;No answer&amp;quot; button will be displayed (for Yes/No and Radio Buttons questions). If the respondent does not answer a Parent question, all of its Child questions will be skipped over.&lt;br /&gt;
&lt;br /&gt;
==Previewing Questionnaire==&lt;br /&gt;
&lt;br /&gt;
The Previewing Questionnaire page is useful for a Questionnaire creator to test it out before making it available in a course. In the case of a Conditional branching questionnaire, the Preview is especially useful as it will mimic the flow that a respondent will see, by selecting the various choices offered by the Parent questions.&lt;br /&gt;
&lt;br /&gt;
When a Conditional branching questionnaire is first displayed on the Preview page, only those pages containing &amp;quot;top&amp;quot; parent questions are displayed, as well as pages containing questions that do not have a Parent question. &lt;br /&gt;
&lt;br /&gt;
When a choice id made in the Parent questions, the Child question(s) corresponding to that choice is/are displayed.&lt;br /&gt;
&lt;br /&gt;
The following screnshots illustrate the various possible sequences that can be displayed. In this example, we have set Question 3 as Non-required.&lt;br /&gt;
&lt;br /&gt;
[[File:07-08-2013 18-52-40.jpg]]&lt;br /&gt;
&lt;br /&gt;
The only 2 questions displayed are those with no Parent: Q1 and Q6.&lt;br /&gt;
&lt;br /&gt;
[[File:07-08-2013 18-54-36.jpg]]&lt;br /&gt;
&lt;br /&gt;
Upon clicking on Q1 &#039;No&#039;, nothing changes in the display, because in our questionnaire we do not have any Child question dependent on that choice.&lt;br /&gt;
&lt;br /&gt;
[[File:08-08-2013 19-07-13.jpg]]&lt;br /&gt;
&lt;br /&gt;
It is possible for a teacher previewing a questionnaire to &amp;quot;Submit the preview&amp;quot;. This will mimic the behaviour of the real Submit questionnaire process: any required question that has not been responded to or any response that does not conform to the question&#039;s conditions will be marked with a Warning.&lt;br /&gt;
&lt;br /&gt;
[[File:08-08-2013 18-56-25.jpg]]&lt;br /&gt;
&lt;br /&gt;
If all the required questions have been correctly filled in, then upon submitting the preview, a &amp;quot;correct&amp;quot; message will be displayed.&lt;br /&gt;
&lt;br /&gt;
*To simulate a new questionnaire flow, you can either click the Preview link in your course&#039;s navigation bar, or the Preview link in the Questionnaire Administration block or the Reset link at the bottom of the Preview window. &lt;br /&gt;
&lt;br /&gt;
[[File:08-08-2013 22-45-33.jpg]]&lt;br /&gt;
&lt;br /&gt;
Upon clicking the &#039;&#039;Yes&#039;&#039; radio button in answer to Q1, questions Q2 and Q3 on Page 2, which depend on that Q1 &#039;&#039;Yes&#039;&#039; choice are automatically displayed. In &amp;quot;Answer the questions&amp;quot; mode, the respondent would be taken to Page 2 of the questionnaire. Now, if we click on the I bought it new radio button of Q3, Q4 on Page 3 will be displayed, etc.&lt;br /&gt;
&lt;br /&gt;
== Individual Responses Report ==&lt;br /&gt;
&lt;br /&gt;
Branching questionnaire reports display the same as non-Branching ones. The only notable difference is with the Individual Responses Report, where it is possible to view the particular path that a respondent took through the various conditional questions. Here are 2 examples.&lt;br /&gt;
&lt;br /&gt;
[[File:08-08-2013 23-40-12.jpg]]&lt;br /&gt;
&lt;br /&gt;
This respondent said he owns a red car, bought it new and paid cash for it. He was not presented with Q5, which is displayed between parentheses and greyed out.&lt;br /&gt;
&lt;br /&gt;
[[File:08-08-2013 23-43-18.jpg]]&lt;br /&gt;
&lt;br /&gt;
This other respondent said he does not own a car. He was not presented with any of the dependent questions Q2 through Q5.&lt;/div&gt;</summary>
		<author><name>Rezeau</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/25/en/index.php?title=File:08-08-2013_23-43-18.jpg&amp;diff=106323</id>
		<title>File:08-08-2013 23-43-18.jpg</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/25/en/index.php?title=File:08-08-2013_23-43-18.jpg&amp;diff=106323"/>
		<updated>2013-08-08T21:44:16Z</updated>

		<summary type="html">&lt;p&gt;Rezeau: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Rezeau</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/25/en/index.php?title=File:08-08-2013_23-40-12.jpg&amp;diff=106322</id>
		<title>File:08-08-2013 23-40-12.jpg</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/25/en/index.php?title=File:08-08-2013_23-40-12.jpg&amp;diff=106322"/>
		<updated>2013-08-08T21:41:29Z</updated>

		<summary type="html">&lt;p&gt;Rezeau: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Rezeau</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/25/en/index.php?title=Questionnaire_Conditional_branching&amp;diff=106320</id>
		<title>Questionnaire Conditional branching</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/25/en/index.php?title=Questionnaire_Conditional_branching&amp;diff=106320"/>
		<updated>2013-08-08T20:55:57Z</updated>

		<summary type="html">&lt;p&gt;Rezeau: /* Previewing Questionnaire */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Questionnaire}}&lt;br /&gt;
{{New features}}&lt;br /&gt;
==Overview==&lt;br /&gt;
&lt;br /&gt;
===Definition===&lt;br /&gt;
Conditional branching (or Skip logic) is a feature that changes what question or page a respondent sees next based on how they answer the current question. Conditional branching creates a custom path through the survey that varies based on a respondent’s answers.&lt;br /&gt;
&lt;br /&gt;
===Organization===&lt;br /&gt;
In the Questionnaire plugin, the Conditional branching path is organized through &#039;&#039;pages&#039;&#039;, containing one or more &amp;quot;child&amp;quot; questions depending on a &amp;quot;parent&amp;quot; question.&lt;br /&gt;
&lt;br /&gt;
===Settings===&lt;br /&gt;
If you want to use the Conditional branching feature in a Questionnaire, when you create or edit the questionnaire, in the Response options section of the settings, you must set the &#039;&#039;&#039;Allow branching questions&#039;&#039;&#039; option to &#039;&#039;Yes&#039;&#039;. Please note that this option is set to &#039;&#039;No&#039;&#039; by default.&lt;br /&gt;
&lt;br /&gt;
==A simple example==&lt;br /&gt;
&lt;br /&gt;
===The flow we want to obtain===&lt;br /&gt;
&lt;br /&gt;
*Page 1&lt;br /&gt;
**Question 1 Do you own a car? Yes/No.&lt;br /&gt;
***Answer Yes -&amp;gt; go to page 2&lt;br /&gt;
***Answer No -&amp;gt; go to page 5 (i.e. skip over irrelevant questions in pages 2 through 4)&lt;br /&gt;
*Page 2&lt;br /&gt;
**Question 2: What is the color of your car?&lt;br /&gt;
**Question 3: Did you buy it new or second-hand?&lt;br /&gt;
***Answer new -&amp;gt; go to page 3&lt;br /&gt;
***Answer second-hand -&amp;gt; go to page 4&lt;br /&gt;
*Page 3&lt;br /&gt;
**Question 4: Did you pay your new car cash or did you get a bank loan?&lt;br /&gt;
*Page 4&lt;br /&gt;
**Question 5: Did you buy your second-hand car from a garage or directly from its previous owner?&lt;br /&gt;
*Page 5&lt;br /&gt;
**Question 6: Do you sometimes use public transport to go to work?&lt;br /&gt;
etc.&lt;br /&gt;
&lt;br /&gt;
===Procedure to obtain that flow===&lt;br /&gt;
&lt;br /&gt;
*Create Q1 as a Yes/No question.&lt;br /&gt;
**&#039;&#039;&#039;Question Name&#039;&#039;&#039;: &#039;&#039;own car&#039;&#039;. Note that you &#039;&#039;must&#039;&#039; give your question a name, as this name will be used later on in the Questionnaire to build the list of available Parent questions. Please keep this name as short as possible.&lt;br /&gt;
**&#039;&#039;&#039;Response Required&#039;&#039;&#039;: &#039;&#039;Yes&#039;&#039;. Since you plan to use question Q1 as a Parent question, it would not make sense to set it as non-required.&lt;br /&gt;
**&#039;&#039;&#039;Question Text&#039;&#039;&#039;: &#039;&#039;Do you own a car?&#039;&#039;&lt;br /&gt;
**Save Q1. No Page break will be inserted at this stage because you have not yet used a Parent question to create one or more Child questions.&lt;br /&gt;
&lt;br /&gt;
*Create Q2 as a Text Box question type&lt;br /&gt;
**&#039;&#039;&#039;Question Name&#039;&#039;&#039;: optional&lt;br /&gt;
**&#039;&#039;&#039;Response Required&#039;&#039;&#039;: &#039;&#039;Yes&#039;&#039; or &#039;&#039;No&#039;&#039; (depending on what you want to do with that question&#039;s answers later on).&lt;br /&gt;
**&#039;&#039;&#039;Parent Question&#039;&#039;&#039; : &#039;&#039;own car-&amp;gt;Yes&#039;&#039;. The Parent question (Q1) option offers 2 choices, since it is a Yes/No question.&lt;br /&gt;
**&#039;&#039;&#039;Question Text&#039;&#039;&#039;: &#039;&#039;What is the colour of your car?&#039;&#039;&lt;br /&gt;
**Save Q2. Upon saving Child question Q2 you notice that a Page break has been automatically inserted between the Parent question Q1 and its Child question Q2.&lt;br /&gt;
&lt;br /&gt;
*Create Q3 as a Radio Buttons (or Dropdown Box) question type&lt;br /&gt;
**&#039;&#039;&#039;Question Name&#039;&#039;&#039;: &#039;&#039;car status&#039;&#039;&lt;br /&gt;
**&#039;&#039;&#039;Response Required&#039;&#039;&#039;: &#039;&#039;Yes&#039;&#039;. We are giving question Q3 a name and setting it as Required because we plan to use it as a Parent question.&lt;br /&gt;
**&#039;&#039;&#039;Parent Question&#039;&#039;&#039;: own car-&amp;gt;Yes&lt;br /&gt;
**&#039;&#039;&#039;Question Text&#039;&#039;&#039;: Did you buy it new or second-hand?&lt;br /&gt;
**&#039;&#039;&#039;Possible answers&#039;&#039;&#039;:&lt;br /&gt;
***&#039;&#039;new::I bought it new&#039;&#039;&lt;br /&gt;
***&#039;&#039;used::I bought it second-hand&#039;&#039;. &lt;br /&gt;
**Please note that in the Possible answers field we are using the &amp;quot;short label&amp;quot; feature. You should use this feature if the full text of your Possible answers choices is fairly long.&lt;br /&gt;
**Save Q3. Upon saving Child question Q3 you notice that no Page break has been inserted. This is because both Q2 and Q3 are Child questions of the same Parent question Q1 and thus will be displayed on the same page of the questionnaire.&lt;br /&gt;
&lt;br /&gt;
*Create Q4 as a Radio Buttons question type&lt;br /&gt;
**&#039;&#039;&#039;Question Name&#039;&#039;&#039;: optional&lt;br /&gt;
**&#039;&#039;&#039;Response Required&#039;&#039;&#039;: Yes or No&lt;br /&gt;
**&#039;&#039;&#039;Parent Question&#039;&#039;&#039;: car status-&amp;gt;new&lt;br /&gt;
&lt;br /&gt;
**Please note that the list of potential Parent question choices displays the &amp;quot;short label&amp;quot; that we entered for the Possible answers in Q3, instead of the full text.&lt;br /&gt;
&lt;br /&gt;
**&#039;&#039;&#039;Question Text&#039;&#039;&#039;: How did you pay for your new car?&lt;br /&gt;
**&#039;&#039;&#039;Possible answers&#039;&#039;&#039;:&lt;br /&gt;
***&#039;&#039;I paid cash&#039;&#039;&lt;br /&gt;
***&#039;&#039;I got a bank loan&#039;&#039;&lt;br /&gt;
**Save Q4. Upon saving Child question Q4 you notice that a Page break has been automatically inserted between Parent question Q3 and its Child question Q4.&lt;br /&gt;
&lt;br /&gt;
*Create Q5 as a Radio Buttons question type&lt;br /&gt;
**&#039;&#039;&#039;Question Name&#039;&#039;&#039;: optional&lt;br /&gt;
**&#039;&#039;&#039;Response Required&#039;&#039;&#039;: Yes or No&lt;br /&gt;
**&#039;&#039;&#039;Parent Question&#039;&#039;&#039;: car status-&amp;gt;used&lt;br /&gt;
**&#039;&#039;&#039;Question Text&#039;&#039;&#039;: Where did you buy your second-hand car? &lt;br /&gt;
**&#039;&#039;&#039;Possible answers&#039;&#039;&#039;:&lt;br /&gt;
***&#039;&#039;I bought it from a garage&#039;&#039;&lt;br /&gt;
***&#039;&#039;I bought it directly from its previous owner&#039;&#039;&lt;br /&gt;
**Save Q5. Upon saving Child question Q5 you notice that a Page break has been automatically inserted between Child question Q4 and Child question Q5 because these two question do not have the same Parent question.&lt;br /&gt;
&lt;br /&gt;
*Create Q6 as YES/NO question type.&lt;br /&gt;
**&#039;&#039;&#039;Question Name&#039;&#039;&#039;: optional&lt;br /&gt;
**&#039;&#039;&#039;Response Required&#039;&#039;&#039;: Yes or No&lt;br /&gt;
**&#039;&#039;&#039;Parent Question&#039;&#039;&#039;: None. &amp;lt;br /&amp;gt;Question 6 is not dependent on any of the previous questions, and it will be displayed to the questionnaire respondent regardless of their previous answers.&lt;br /&gt;
**&#039;&#039;&#039;Question Text&#039;&#039;&#039;: Do you sometimes use public transport to go to work?&lt;br /&gt;
**Save Q6. Upon saving question Q6 you notice that a Page break has been automatically inserted between Child question Q5 and question Q6.&lt;br /&gt;
&lt;br /&gt;
Now continue creating questions normally, until you want to use Conditional branching again.&lt;br /&gt;
&lt;br /&gt;
Here is what your Manage questions section will look like after you have created those first 6 questions.&lt;br /&gt;
[[Image:07-08-2013 17-49-53.jpg]]&lt;br /&gt;
&lt;br /&gt;
==Operations on Conditional branching questions==&lt;br /&gt;
===Move===&lt;br /&gt;
By using the standard Moodle &amp;quot;Move&amp;quot; icon you can move your questionnaire questions to different positions. However, due to the special nature of the questionnaire flow when using the Conditional branching feature, there are restrictions on the new positions that you can move our questions to.&lt;br /&gt;
&lt;br /&gt;
*You cannot move a Parent question &#039;&#039;below&#039;&#039; any of its Child questions.&lt;br /&gt;
&lt;br /&gt;
*You cannot move a Child question &#039;&#039;above&#039;&#039; its Parent question.&lt;br /&gt;
&lt;br /&gt;
*You cannot remove those Page breaks which are needed to ensure a correct flow of dependent questions.&lt;br /&gt;
&lt;br /&gt;
[[Image:07-08-2013 18-04-16.jpg]]&lt;br /&gt;
&lt;br /&gt;
Those restrictions will show on the Manage questions screen where the Move icon is replaced with a &amp;quot;Forbidden&amp;quot; (Moodle &amp;quot;block&amp;quot;) icon. They will also operate when you are in &amp;quot;Move question&amp;quot; mode, where the Move to here icon/placeholder will not be displayed in the &amp;quot;forbidden&amp;quot; positions.&lt;br /&gt;
&lt;br /&gt;
===Edit===&lt;br /&gt;
Using the standard Moodle &amp;quot;Edit&amp;quot; icon you may edit any question. However, for those questions which have both a Parent question and one or more Child questions, you cannot change their Parent question &amp;amp; Choice, as that might ruin the consequent flow. The only way to change their Parent is to edit their Child question(s) first.&lt;br /&gt;
&lt;br /&gt;
[[Image:07-08-2013 18-12-59.jpg]]&lt;br /&gt;
&lt;br /&gt;
===Delete===&lt;br /&gt;
You cannot Delete those Page breaks which have been automatically inserted when adding Child questions.&lt;br /&gt;
&lt;br /&gt;
If you try to Delete a Parent question, you will get a warning with the list of its Child questions. If you answer Yes to the warning, the Parent question will be deleted, together with all its Child (and Grand-Child questions).&lt;br /&gt;
&lt;br /&gt;
[[Image:07-08-2013 18-20-29.jpg]]&lt;br /&gt;
&lt;br /&gt;
===Setting as Required/Not required===&lt;br /&gt;
&lt;br /&gt;
As said above, you would normally set all potential Parent questions as Required. However, there might be cases where you want to leave the respondent the choice to respond or not. If you set a question as Not required, then the usual &amp;quot;No answer&amp;quot; button will be displayed (for Yes/No and Radio Buttons questions). If the respondent does not answer a Parent question, all of its Child questions will be skipped over.&lt;br /&gt;
&lt;br /&gt;
==Previewing Questionnaire==&lt;br /&gt;
&lt;br /&gt;
The Previewing Questionnaire page is useful for a Questionnaire creator to test it out before making it available in a course. In the case of a Conditional branching questionnaire, the Preview is especially useful as it will mimic the flow that a respondent will see, by selecting the various choices offered by the Parent questions.&lt;br /&gt;
&lt;br /&gt;
When a Conditional branching questionnaire is first displayed on the Preview page, only those pages containing &amp;quot;top&amp;quot; parent questions are displayed, as well as pages containing questions that do not have a Parent question. &lt;br /&gt;
&lt;br /&gt;
When a choice id made in the Parent questions, the Child question(s) corresponding to that choice is/are displayed.&lt;br /&gt;
&lt;br /&gt;
The following screnshots illustrate the various possible sequences that can be displayed. In this example, we have set Question 3 as Non-required.&lt;br /&gt;
&lt;br /&gt;
[[File:07-08-2013 18-52-40.jpg]]&lt;br /&gt;
&lt;br /&gt;
The only 2 questions displayed are those with no Parent: Q1 and Q6.&lt;br /&gt;
&lt;br /&gt;
[[File:07-08-2013 18-54-36.jpg]]&lt;br /&gt;
&lt;br /&gt;
Upon clicking on Q1 &#039;No&#039;, nothing changes in the display, because in our questionnaire we do not have any Child question dependent on that choice.&lt;br /&gt;
&lt;br /&gt;
[[File:08-08-2013 19-07-13.jpg]]&lt;br /&gt;
&lt;br /&gt;
It is possible for a teacher previewing a questionnaire to &amp;quot;Submit the preview&amp;quot;. This will mimic the behaviour of the real Submit questionnaire process: any required question that has not been responded to or any response that does not conform to the question&#039;s conditions will be marked with a Warning.&lt;br /&gt;
&lt;br /&gt;
[[File:08-08-2013 18-56-25.jpg]]&lt;br /&gt;
&lt;br /&gt;
If all the required questions have been correctly filled in, then upon submitting the preview, a &amp;quot;correct&amp;quot; message will be displayed.&lt;br /&gt;
&lt;br /&gt;
*To simulate a new questionnaire flow, you can either click the Preview link in your course&#039;s navigation bar, or the Preview link in the Questionnaire Administration block or the Reset link at the bottom of the Preview window. &lt;br /&gt;
&lt;br /&gt;
[[File:08-08-2013 22-45-33.jpg]]&lt;br /&gt;
&lt;br /&gt;
Upon clicking the &#039;&#039;Yes&#039;&#039; radio button in answer to Q1, questions Q2 and Q3 on Page 2, which depend on that Q1 &#039;&#039;Yes&#039;&#039; choice are automatically displayed. In &amp;quot;Answer the questions&amp;quot; mode, the respondent would be taken to Page 2 of the questionnaire. Now, if we click on the I bought it new radio button of Q3, Q4 on Page 3 will be displayed, etc.&lt;/div&gt;</summary>
		<author><name>Rezeau</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/25/en/index.php?title=File:08-08-2013_22-45-33.jpg&amp;diff=106319</id>
		<title>File:08-08-2013 22-45-33.jpg</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/25/en/index.php?title=File:08-08-2013_22-45-33.jpg&amp;diff=106319"/>
		<updated>2013-08-08T20:46:28Z</updated>

		<summary type="html">&lt;p&gt;Rezeau: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Rezeau</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/25/en/index.php?title=Questionnaire_Conditional_branching&amp;diff=106318</id>
		<title>Questionnaire Conditional branching</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/25/en/index.php?title=Questionnaire_Conditional_branching&amp;diff=106318"/>
		<updated>2013-08-08T17:09:46Z</updated>

		<summary type="html">&lt;p&gt;Rezeau: /* Previewing Questionnaire */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Questionnaire}}&lt;br /&gt;
{{New features}}&lt;br /&gt;
==Overview==&lt;br /&gt;
&lt;br /&gt;
===Definition===&lt;br /&gt;
Conditional branching (or Skip logic) is a feature that changes what question or page a respondent sees next based on how they answer the current question. Conditional branching creates a custom path through the survey that varies based on a respondent’s answers.&lt;br /&gt;
&lt;br /&gt;
===Organization===&lt;br /&gt;
In the Questionnaire plugin, the Conditional branching path is organized through &#039;&#039;pages&#039;&#039;, containing one or more &amp;quot;child&amp;quot; questions depending on a &amp;quot;parent&amp;quot; question.&lt;br /&gt;
&lt;br /&gt;
===Settings===&lt;br /&gt;
If you want to use the Conditional branching feature in a Questionnaire, when you create or edit the questionnaire, in the Response options section of the settings, you must set the &#039;&#039;&#039;Allow branching questions&#039;&#039;&#039; option to &#039;&#039;Yes&#039;&#039;. Please note that this option is set to &#039;&#039;No&#039;&#039; by default.&lt;br /&gt;
&lt;br /&gt;
==A simple example==&lt;br /&gt;
&lt;br /&gt;
===The flow we want to obtain===&lt;br /&gt;
&lt;br /&gt;
*Page 1&lt;br /&gt;
**Question 1 Do you own a car? Yes/No.&lt;br /&gt;
***Answer Yes -&amp;gt; go to page 2&lt;br /&gt;
***Answer No -&amp;gt; go to page 5 (i.e. skip over irrelevant questions in pages 2 through 4)&lt;br /&gt;
*Page 2&lt;br /&gt;
**Question 2: What is the color of your car?&lt;br /&gt;
**Question 3: Did you buy it new or second-hand?&lt;br /&gt;
***Answer new -&amp;gt; go to page 3&lt;br /&gt;
***Answer second-hand -&amp;gt; go to page 4&lt;br /&gt;
*Page 3&lt;br /&gt;
**Question 4: Did you pay your new car cash or did you get a bank loan?&lt;br /&gt;
*Page 4&lt;br /&gt;
**Question 5: Did you buy your second-hand car from a garage or directly from its previous owner?&lt;br /&gt;
*Page 5&lt;br /&gt;
**Question 6: Do you sometimes use public transport to go to work?&lt;br /&gt;
etc.&lt;br /&gt;
&lt;br /&gt;
===Procedure to obtain that flow===&lt;br /&gt;
&lt;br /&gt;
*Create Q1 as a Yes/No question.&lt;br /&gt;
**&#039;&#039;&#039;Question Name&#039;&#039;&#039;: &#039;&#039;own car&#039;&#039;. Note that you &#039;&#039;must&#039;&#039; give your question a name, as this name will be used later on in the Questionnaire to build the list of available Parent questions. Please keep this name as short as possible.&lt;br /&gt;
**&#039;&#039;&#039;Response Required&#039;&#039;&#039;: &#039;&#039;Yes&#039;&#039;. Since you plan to use question Q1 as a Parent question, it would not make sense to set it as non-required.&lt;br /&gt;
**&#039;&#039;&#039;Question Text&#039;&#039;&#039;: &#039;&#039;Do you own a car?&#039;&#039;&lt;br /&gt;
**Save Q1. No Page break will be inserted at this stage because you have not yet used a Parent question to create one or more Child questions.&lt;br /&gt;
&lt;br /&gt;
*Create Q2 as a Text Box question type&lt;br /&gt;
**&#039;&#039;&#039;Question Name&#039;&#039;&#039;: optional&lt;br /&gt;
**&#039;&#039;&#039;Response Required&#039;&#039;&#039;: &#039;&#039;Yes&#039;&#039; or &#039;&#039;No&#039;&#039; (depending on what you want to do with that question&#039;s answers later on).&lt;br /&gt;
**&#039;&#039;&#039;Parent Question&#039;&#039;&#039; : &#039;&#039;own car-&amp;gt;Yes&#039;&#039;. The Parent question (Q1) option offers 2 choices, since it is a Yes/No question.&lt;br /&gt;
**&#039;&#039;&#039;Question Text&#039;&#039;&#039;: &#039;&#039;What is the colour of your car?&#039;&#039;&lt;br /&gt;
**Save Q2. Upon saving Child question Q2 you notice that a Page break has been automatically inserted between the Parent question Q1 and its Child question Q2.&lt;br /&gt;
&lt;br /&gt;
*Create Q3 as a Radio Buttons (or Dropdown Box) question type&lt;br /&gt;
**&#039;&#039;&#039;Question Name&#039;&#039;&#039;: &#039;&#039;car status&#039;&#039;&lt;br /&gt;
**&#039;&#039;&#039;Response Required&#039;&#039;&#039;: &#039;&#039;Yes&#039;&#039;. We are giving question Q3 a name and setting it as Required because we plan to use it as a Parent question.&lt;br /&gt;
**&#039;&#039;&#039;Parent Question&#039;&#039;&#039;: own car-&amp;gt;Yes&lt;br /&gt;
**&#039;&#039;&#039;Question Text&#039;&#039;&#039;: Did you buy it new or second-hand?&lt;br /&gt;
**&#039;&#039;&#039;Possible answers&#039;&#039;&#039;:&lt;br /&gt;
***&#039;&#039;new::I bought it new&#039;&#039;&lt;br /&gt;
***&#039;&#039;used::I bought it second-hand&#039;&#039;. &lt;br /&gt;
**Please note that in the Possible answers field we are using the &amp;quot;short label&amp;quot; feature. You should use this feature if the full text of your Possible answers choices is fairly long.&lt;br /&gt;
**Save Q3. Upon saving Child question Q3 you notice that no Page break has been inserted. This is because both Q2 and Q3 are Child questions of the same Parent question Q1 and thus will be displayed on the same page of the questionnaire.&lt;br /&gt;
&lt;br /&gt;
*Create Q4 as a Radio Buttons question type&lt;br /&gt;
**&#039;&#039;&#039;Question Name&#039;&#039;&#039;: optional&lt;br /&gt;
**&#039;&#039;&#039;Response Required&#039;&#039;&#039;: Yes or No&lt;br /&gt;
**&#039;&#039;&#039;Parent Question&#039;&#039;&#039;: car status-&amp;gt;new&lt;br /&gt;
&lt;br /&gt;
**Please note that the list of potential Parent question choices displays the &amp;quot;short label&amp;quot; that we entered for the Possible answers in Q3, instead of the full text.&lt;br /&gt;
&lt;br /&gt;
**&#039;&#039;&#039;Question Text&#039;&#039;&#039;: How did you pay for your new car?&lt;br /&gt;
**&#039;&#039;&#039;Possible answers&#039;&#039;&#039;:&lt;br /&gt;
***&#039;&#039;I paid cash&#039;&#039;&lt;br /&gt;
***&#039;&#039;I got a bank loan&#039;&#039;&lt;br /&gt;
**Save Q4. Upon saving Child question Q4 you notice that a Page break has been automatically inserted between Parent question Q3 and its Child question Q4.&lt;br /&gt;
&lt;br /&gt;
*Create Q5 as a Radio Buttons question type&lt;br /&gt;
**&#039;&#039;&#039;Question Name&#039;&#039;&#039;: optional&lt;br /&gt;
**&#039;&#039;&#039;Response Required&#039;&#039;&#039;: Yes or No&lt;br /&gt;
**&#039;&#039;&#039;Parent Question&#039;&#039;&#039;: car status-&amp;gt;used&lt;br /&gt;
**&#039;&#039;&#039;Question Text&#039;&#039;&#039;: Where did you buy your second-hand car? &lt;br /&gt;
**&#039;&#039;&#039;Possible answers&#039;&#039;&#039;:&lt;br /&gt;
***&#039;&#039;I bought it from a garage&#039;&#039;&lt;br /&gt;
***&#039;&#039;I bought it directly from its previous owner&#039;&#039;&lt;br /&gt;
**Save Q5. Upon saving Child question Q5 you notice that a Page break has been automatically inserted between Child question Q4 and Child question Q5 because these two question do not have the same Parent question.&lt;br /&gt;
&lt;br /&gt;
*Create Q6 as YES/NO question type.&lt;br /&gt;
**&#039;&#039;&#039;Question Name&#039;&#039;&#039;: optional&lt;br /&gt;
**&#039;&#039;&#039;Response Required&#039;&#039;&#039;: Yes or No&lt;br /&gt;
**&#039;&#039;&#039;Parent Question&#039;&#039;&#039;: None. &amp;lt;br /&amp;gt;Question 6 is not dependent on any of the previous questions, and it will be displayed to the questionnaire respondent regardless of their previous answers.&lt;br /&gt;
**&#039;&#039;&#039;Question Text&#039;&#039;&#039;: Do you sometimes use public transport to go to work?&lt;br /&gt;
**Save Q6. Upon saving question Q6 you notice that a Page break has been automatically inserted between Child question Q5 and question Q6.&lt;br /&gt;
&lt;br /&gt;
Now continue creating questions normally, until you want to use Conditional branching again.&lt;br /&gt;
&lt;br /&gt;
Here is what your Manage questions section will look like after you have created those first 6 questions.&lt;br /&gt;
[[Image:07-08-2013 17-49-53.jpg]]&lt;br /&gt;
&lt;br /&gt;
==Operations on Conditional branching questions==&lt;br /&gt;
===Move===&lt;br /&gt;
By using the standard Moodle &amp;quot;Move&amp;quot; icon you can move your questionnaire questions to different positions. However, due to the special nature of the questionnaire flow when using the Conditional branching feature, there are restrictions on the new positions that you can move our questions to.&lt;br /&gt;
&lt;br /&gt;
*You cannot move a Parent question &#039;&#039;below&#039;&#039; any of its Child questions.&lt;br /&gt;
&lt;br /&gt;
*You cannot move a Child question &#039;&#039;above&#039;&#039; its Parent question.&lt;br /&gt;
&lt;br /&gt;
*You cannot remove those Page breaks which are needed to ensure a correct flow of dependent questions.&lt;br /&gt;
&lt;br /&gt;
[[Image:07-08-2013 18-04-16.jpg]]&lt;br /&gt;
&lt;br /&gt;
Those restrictions will show on the Manage questions screen where the Move icon is replaced with a &amp;quot;Forbidden&amp;quot; (Moodle &amp;quot;block&amp;quot;) icon. They will also operate when you are in &amp;quot;Move question&amp;quot; mode, where the Move to here icon/placeholder will not be displayed in the &amp;quot;forbidden&amp;quot; positions.&lt;br /&gt;
&lt;br /&gt;
===Edit===&lt;br /&gt;
Using the standard Moodle &amp;quot;Edit&amp;quot; icon you may edit any question. However, for those questions which have both a Parent question and one or more Child questions, you cannot change their Parent question &amp;amp; Choice, as that might ruin the consequent flow. The only way to change their Parent is to edit their Child question(s) first.&lt;br /&gt;
&lt;br /&gt;
[[Image:07-08-2013 18-12-59.jpg]]&lt;br /&gt;
&lt;br /&gt;
===Delete===&lt;br /&gt;
You cannot Delete those Page breaks which have been automatically inserted when adding Child questions.&lt;br /&gt;
&lt;br /&gt;
If you try to Delete a Parent question, you will get a warning with the list of its Child questions. If you answer Yes to the warning, the Parent question will be deleted, together with all its Child (and Grand-Child questions).&lt;br /&gt;
&lt;br /&gt;
[[Image:07-08-2013 18-20-29.jpg]]&lt;br /&gt;
&lt;br /&gt;
===Setting as Required/Not required===&lt;br /&gt;
&lt;br /&gt;
As said above, you would normally set all potential Parent questions as Required. However, there might be cases where you want to leave the respondent the choice to respond or not. If you set a question as Not required, then the usual &amp;quot;No answer&amp;quot; button will be displayed (for Yes/No and Radio Buttons questions). If the respondent does not answer a Parent question, all of its Child questions will be skipped over.&lt;br /&gt;
&lt;br /&gt;
==Previewing Questionnaire==&lt;br /&gt;
&lt;br /&gt;
The Previewing Questionnaire page is useful for a Questionnaire creator to test it out before making it available in a course. In the case of a Conditional branching questionnaire, the Preview is especially useful as it will mimic the flow that a respondent will see, by selecting the various choices offered by the Parent questions.&lt;br /&gt;
&lt;br /&gt;
When a Conditional branching questionnaire is first displayed on the Preview page, only those pages containing &amp;quot;top&amp;quot; parent questions are displayed, as well as pages containing questions that do not have a Parent question. &lt;br /&gt;
&lt;br /&gt;
When a choice id made in the Parent questions, the Child question(s) corresponding to that choice is/are displayed.&lt;br /&gt;
&lt;br /&gt;
The following screnshots illustrate the various possible sequences that can be displayed. In this example, we have set Question 3 as Non-required.&lt;br /&gt;
&lt;br /&gt;
[[File:07-08-2013 18-52-40.jpg]]&lt;br /&gt;
&lt;br /&gt;
The only 2 questions displayed are those with no Parent: Q1 and Q6.&lt;br /&gt;
&lt;br /&gt;
[[File:07-08-2013 18-54-36.jpg]]&lt;br /&gt;
&lt;br /&gt;
Upon clicking on Q1 &#039;No&#039;, nothing changes in the display, because in our questionnaire we do not have any Child question dependent on that choice.&lt;br /&gt;
&lt;br /&gt;
[[File:08-08-2013 19-07-13.jpg]]&lt;br /&gt;
&lt;br /&gt;
It is possible for a teacher previewing a questionnaire to &amp;quot;Submit the preview&amp;quot;. This will mimic the behaviour of the real Submit questionnaire process: any required question that has not been responded to or any response that does not conform to the question&#039;s conditions will be marked with a Warning.&lt;br /&gt;
&lt;br /&gt;
[[File:08-08-2013 18-56-25.jpg]]&lt;br /&gt;
&lt;br /&gt;
If all the required questions have been correctly filled in, then upon submitting the preview, a &amp;quot;correct&amp;quot; message will be displayed.&lt;/div&gt;</summary>
		<author><name>Rezeau</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/25/en/index.php?title=File:08-08-2013_19-07-13.jpg&amp;diff=106317</id>
		<title>File:08-08-2013 19-07-13.jpg</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/25/en/index.php?title=File:08-08-2013_19-07-13.jpg&amp;diff=106317"/>
		<updated>2013-08-08T17:08:45Z</updated>

		<summary type="html">&lt;p&gt;Rezeau: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Rezeau</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/25/en/index.php?title=File:08-08-2013_18-56-25.jpg&amp;diff=106316</id>
		<title>File:08-08-2013 18-56-25.jpg</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/25/en/index.php?title=File:08-08-2013_18-56-25.jpg&amp;diff=106316"/>
		<updated>2013-08-08T17:00:08Z</updated>

		<summary type="html">&lt;p&gt;Rezeau: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Rezeau</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/25/en/index.php?title=Questionnaire_Conditional_branching&amp;diff=106308</id>
		<title>Questionnaire Conditional branching</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/25/en/index.php?title=Questionnaire_Conditional_branching&amp;diff=106308"/>
		<updated>2013-08-07T16:58:52Z</updated>

		<summary type="html">&lt;p&gt;Rezeau: /* Previewing Questionnaire */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Questionnaire}}&lt;br /&gt;
{{New features}}&lt;br /&gt;
==Overview==&lt;br /&gt;
&lt;br /&gt;
===Definition===&lt;br /&gt;
Conditional branching (or Skip logic) is a feature that changes what question or page a respondent sees next based on how they answer the current question. Conditional branching creates a custom path through the survey that varies based on a respondent’s answers.&lt;br /&gt;
&lt;br /&gt;
===Organization===&lt;br /&gt;
In the Questionnaire plugin, the Conditional branching path is organized through &#039;&#039;pages&#039;&#039;, containing one or more &amp;quot;child&amp;quot; questions depending on a &amp;quot;parent&amp;quot; question.&lt;br /&gt;
&lt;br /&gt;
===Settings===&lt;br /&gt;
If you want to use the Conditional branching feature in a Questionnaire, when you create or edit the questionnaire, in the Response options section of the settings, you must set the &#039;&#039;&#039;Allow branching questions&#039;&#039;&#039; option to &#039;&#039;Yes&#039;&#039;. Please note that this option is set to &#039;&#039;No&#039;&#039; by default.&lt;br /&gt;
&lt;br /&gt;
==A simple example==&lt;br /&gt;
&lt;br /&gt;
===The flow we want to obtain===&lt;br /&gt;
&lt;br /&gt;
*Page 1&lt;br /&gt;
**Question 1 Do you own a car? Yes/No.&lt;br /&gt;
***Answer Yes -&amp;gt; go to page 2&lt;br /&gt;
***Answer No -&amp;gt; go to page 5 (i.e. skip over irrelevant questions in pages 2 through 4)&lt;br /&gt;
*Page 2&lt;br /&gt;
**Question 2: What is the color of your car?&lt;br /&gt;
**Question 3: Did you buy it new or second-hand?&lt;br /&gt;
***Answer new -&amp;gt; go to page 3&lt;br /&gt;
***Answer second-hand -&amp;gt; go to page 4&lt;br /&gt;
*Page 3&lt;br /&gt;
**Question 4: Did you pay your new car cash or did you get a bank loan?&lt;br /&gt;
*Page 4&lt;br /&gt;
**Question 5: Did you buy your second-hand car from a garage or directly from its previous owner?&lt;br /&gt;
*Page 5&lt;br /&gt;
**Question 6: Do you sometimes use public transport to go to work?&lt;br /&gt;
etc.&lt;br /&gt;
&lt;br /&gt;
===Procedure to obtain that flow===&lt;br /&gt;
&lt;br /&gt;
*Create Q1 as a Yes/No question.&lt;br /&gt;
**&#039;&#039;&#039;Question Name&#039;&#039;&#039;: &#039;&#039;own car&#039;&#039;. Note that you &#039;&#039;must&#039;&#039; give your question a name, as this name will be used later on in the Questionnaire to build the list of available Parent questions. Please keep this name as short as possible.&lt;br /&gt;
**&#039;&#039;&#039;Response Required&#039;&#039;&#039;: &#039;&#039;Yes&#039;&#039;. Since you plan to use question Q1 as a Parent question, it would not make sense to set it as non-required.&lt;br /&gt;
**&#039;&#039;&#039;Question Text&#039;&#039;&#039;: &#039;&#039;Do you own a car?&#039;&#039;&lt;br /&gt;
**Save Q1. No Page break will be inserted at this stage because you have not yet used a Parent question to create one or more Child questions.&lt;br /&gt;
&lt;br /&gt;
*Create Q2 as a Text Box question type&lt;br /&gt;
**&#039;&#039;&#039;Question Name&#039;&#039;&#039;: optional&lt;br /&gt;
**&#039;&#039;&#039;Response Required&#039;&#039;&#039;: &#039;&#039;Yes&#039;&#039; or &#039;&#039;No&#039;&#039; (depending on what you want to do with that question&#039;s answers later on).&lt;br /&gt;
**&#039;&#039;&#039;Parent Question&#039;&#039;&#039; : &#039;&#039;own car-&amp;gt;Yes&#039;&#039;. The Parent question (Q1) option offers 2 choices, since it is a Yes/No question.&lt;br /&gt;
**&#039;&#039;&#039;Question Text&#039;&#039;&#039;: &#039;&#039;What is the colour of your car?&#039;&#039;&lt;br /&gt;
**Save Q2. Upon saving Child question Q2 you notice that a Page break has been automatically inserted between the Parent question Q1 and its Child question Q2.&lt;br /&gt;
&lt;br /&gt;
*Create Q3 as a Radio Buttons (or Dropdown Box) question type&lt;br /&gt;
**&#039;&#039;&#039;Question Name&#039;&#039;&#039;: &#039;&#039;car status&#039;&#039;&lt;br /&gt;
**&#039;&#039;&#039;Response Required&#039;&#039;&#039;: &#039;&#039;Yes&#039;&#039;. We are giving question Q3 a name and setting it as Required because we plan to use it as a Parent question.&lt;br /&gt;
**&#039;&#039;&#039;Parent Question&#039;&#039;&#039;: own car-&amp;gt;Yes&lt;br /&gt;
**&#039;&#039;&#039;Question Text&#039;&#039;&#039;: Did you buy it new or second-hand?&lt;br /&gt;
**&#039;&#039;&#039;Possible answers&#039;&#039;&#039;:&lt;br /&gt;
***&#039;&#039;new::I bought it new&#039;&#039;&lt;br /&gt;
***&#039;&#039;used::I bought it second-hand&#039;&#039;. &lt;br /&gt;
**Please note that in the Possible answers field we are using the &amp;quot;short label&amp;quot; feature. You should use this feature if the full text of your Possible answers choices is fairly long.&lt;br /&gt;
**Save Q3. Upon saving Child question Q3 you notice that no Page break has been inserted. This is because both Q2 and Q3 are Child questions of the same Parent question Q1 and thus will be displayed on the same page of the questionnaire.&lt;br /&gt;
&lt;br /&gt;
*Create Q4 as a Radio Buttons question type&lt;br /&gt;
**&#039;&#039;&#039;Question Name&#039;&#039;&#039;: optional&lt;br /&gt;
**&#039;&#039;&#039;Response Required&#039;&#039;&#039;: Yes or No&lt;br /&gt;
**&#039;&#039;&#039;Parent Question&#039;&#039;&#039;: car status-&amp;gt;new&lt;br /&gt;
&lt;br /&gt;
**Please note that the list of potential Parent question choices displays the &amp;quot;short label&amp;quot; that we entered for the Possible answers in Q3, instead of the full text.&lt;br /&gt;
&lt;br /&gt;
**&#039;&#039;&#039;Question Text&#039;&#039;&#039;: How did you pay for your new car?&lt;br /&gt;
**&#039;&#039;&#039;Possible answers&#039;&#039;&#039;:&lt;br /&gt;
***&#039;&#039;I paid cash&#039;&#039;&lt;br /&gt;
***&#039;&#039;I got a bank loan&#039;&#039;&lt;br /&gt;
**Save Q4. Upon saving Child question Q4 you notice that a Page break has been automatically inserted between Parent question Q3 and its Child question Q4.&lt;br /&gt;
&lt;br /&gt;
*Create Q5 as a Radio Buttons question type&lt;br /&gt;
**&#039;&#039;&#039;Question Name&#039;&#039;&#039;: optional&lt;br /&gt;
**&#039;&#039;&#039;Response Required&#039;&#039;&#039;: Yes or No&lt;br /&gt;
**&#039;&#039;&#039;Parent Question&#039;&#039;&#039;: car status-&amp;gt;used&lt;br /&gt;
**&#039;&#039;&#039;Question Text&#039;&#039;&#039;: Where did you buy your second-hand car? &lt;br /&gt;
**&#039;&#039;&#039;Possible answers&#039;&#039;&#039;:&lt;br /&gt;
***&#039;&#039;I bought it from a garage&#039;&#039;&lt;br /&gt;
***&#039;&#039;I bought it directly from its previous owner&#039;&#039;&lt;br /&gt;
**Save Q5. Upon saving Child question Q5 you notice that a Page break has been automatically inserted between Child question Q4 and Child question Q5 because these two question do not have the same Parent question.&lt;br /&gt;
&lt;br /&gt;
*Create Q6 as YES/NO question type.&lt;br /&gt;
**&#039;&#039;&#039;Question Name&#039;&#039;&#039;: optional&lt;br /&gt;
**&#039;&#039;&#039;Response Required&#039;&#039;&#039;: Yes or No&lt;br /&gt;
**&#039;&#039;&#039;Parent Question&#039;&#039;&#039;: None. &amp;lt;br /&amp;gt;Question 6 is not dependent on any of the previous questions, and it will be displayed to the questionnaire respondent regardless of their previous answers.&lt;br /&gt;
**&#039;&#039;&#039;Question Text&#039;&#039;&#039;: Do you sometimes use public transport to go to work?&lt;br /&gt;
**Save Q6. Upon saving question Q6 you notice that a Page break has been automatically inserted between Child question Q5 and question Q6.&lt;br /&gt;
&lt;br /&gt;
Now continue creating questions normally, until you want to use Conditional branching again.&lt;br /&gt;
&lt;br /&gt;
Here is what your Manage questions section will look like after you have created those first 6 questions.&lt;br /&gt;
[[Image:07-08-2013 17-49-53.jpg]]&lt;br /&gt;
&lt;br /&gt;
==Operations on Conditional branching questions==&lt;br /&gt;
===Move===&lt;br /&gt;
By using the standard Moodle &amp;quot;Move&amp;quot; icon you can move your questionnaire questions to different positions. However, due to the special nature of the questionnaire flow when using the Conditional branching feature, there are restrictions on the new positions that you can move our questions to.&lt;br /&gt;
&lt;br /&gt;
*You cannot move a Parent question &#039;&#039;below&#039;&#039; any of its Child questions.&lt;br /&gt;
&lt;br /&gt;
*You cannot move a Child question &#039;&#039;above&#039;&#039; its Parent question.&lt;br /&gt;
&lt;br /&gt;
*You cannot remove those Page breaks which are needed to ensure a correct flow of dependent questions.&lt;br /&gt;
&lt;br /&gt;
[[Image:07-08-2013 18-04-16.jpg]]&lt;br /&gt;
&lt;br /&gt;
Those restrictions will show on the Manage questions screen where the Move icon is replaced with a &amp;quot;Forbidden&amp;quot; (Moodle &amp;quot;block&amp;quot;) icon. They will also operate when you are in &amp;quot;Move question&amp;quot; mode, where the Move to here icon/placeholder will not be displayed in the &amp;quot;forbidden&amp;quot; positions.&lt;br /&gt;
&lt;br /&gt;
===Edit===&lt;br /&gt;
Using the standard Moodle &amp;quot;Edit&amp;quot; icon you may edit any question. However, for those questions which have both a Parent question and one or more Child questions, you cannot change their Parent question &amp;amp; Choice, as that might ruin the consequent flow. The only way to change their Parent is to edit their Child question(s) first.&lt;br /&gt;
&lt;br /&gt;
[[Image:07-08-2013 18-12-59.jpg]]&lt;br /&gt;
&lt;br /&gt;
===Delete===&lt;br /&gt;
You cannot Delete those Page breaks which have been automatically inserted when adding Child questions.&lt;br /&gt;
&lt;br /&gt;
If you try to Delete a Parent question, you will get a warning with the list of its Child questions. If you answer Yes to the warning, the Parent question will be deleted, together with all its Child (and Grand-Child questions).&lt;br /&gt;
&lt;br /&gt;
[[Image:07-08-2013 18-20-29.jpg]]&lt;br /&gt;
&lt;br /&gt;
===Setting as Required/Not required===&lt;br /&gt;
&lt;br /&gt;
As said above, you would normally set all potential Parent questions as Required. However, there might be cases where you want to leave the respondent the choice to respond or not. If you set a question as Not required, then the usual &amp;quot;No answer&amp;quot; button will be displayed (for Yes/No and Radio Buttons questions). If the respondent does not answer a Parent question, all of its Child questions will be skipped over.&lt;br /&gt;
&lt;br /&gt;
==Previewing Questionnaire==&lt;br /&gt;
&lt;br /&gt;
The Previewing Questionnaire page is useful for a Questionnaire creator to test it out before making it available in a course. In the case of a Conditional branching questionnaire, the Preview is especially useful as it will mimick the flow that a respondent will see, by selecting the various choices offered by the Parent questions.&lt;br /&gt;
&lt;br /&gt;
When a Conditional branching questionnaire is first displayed on the Preview page, only those pages containing &amp;quot;top&amp;quot; parent questions are displayed, as well as pages containing questions that do not have a Parent question. &lt;br /&gt;
&lt;br /&gt;
When a choice id made in the Parent questions, the Child question(s) corresponding to that choice is/are displayed.&lt;br /&gt;
&lt;br /&gt;
The following screnshots illustrate the various possible sequences that can be displayed. In this example, we have set Question 3 as Non-required.&lt;br /&gt;
&lt;br /&gt;
[[File:07-08-2013 18-52-40.jpg]]&lt;br /&gt;
&lt;br /&gt;
[[File:07-08-2013 18-54-36.jpg]]&lt;/div&gt;</summary>
		<author><name>Rezeau</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/25/en/index.php?title=File:07-08-2013_18-54-36.jpg&amp;diff=106307</id>
		<title>File:07-08-2013 18-54-36.jpg</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/25/en/index.php?title=File:07-08-2013_18-54-36.jpg&amp;diff=106307"/>
		<updated>2013-08-07T16:55:35Z</updated>

		<summary type="html">&lt;p&gt;Rezeau: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Rezeau</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/25/en/index.php?title=File:07-08-2013_18-52-40.jpg&amp;diff=106306</id>
		<title>File:07-08-2013 18-52-40.jpg</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/25/en/index.php?title=File:07-08-2013_18-52-40.jpg&amp;diff=106306"/>
		<updated>2013-08-07T16:53:58Z</updated>

		<summary type="html">&lt;p&gt;Rezeau: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Rezeau</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/25/en/index.php?title=Questionnaire_Conditional_branching&amp;diff=106305</id>
		<title>Questionnaire Conditional branching</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/25/en/index.php?title=Questionnaire_Conditional_branching&amp;diff=106305"/>
		<updated>2013-08-07T16:42:50Z</updated>

		<summary type="html">&lt;p&gt;Rezeau: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Questionnaire}}&lt;br /&gt;
{{New features}}&lt;br /&gt;
==Overview==&lt;br /&gt;
&lt;br /&gt;
===Definition===&lt;br /&gt;
Conditional branching (or Skip logic) is a feature that changes what question or page a respondent sees next based on how they answer the current question. Conditional branching creates a custom path through the survey that varies based on a respondent’s answers.&lt;br /&gt;
&lt;br /&gt;
===Organization===&lt;br /&gt;
In the Questionnaire plugin, the Conditional branching path is organized through &#039;&#039;pages&#039;&#039;, containing one or more &amp;quot;child&amp;quot; questions depending on a &amp;quot;parent&amp;quot; question.&lt;br /&gt;
&lt;br /&gt;
===Settings===&lt;br /&gt;
If you want to use the Conditional branching feature in a Questionnaire, when you create or edit the questionnaire, in the Response options section of the settings, you must set the &#039;&#039;&#039;Allow branching questions&#039;&#039;&#039; option to &#039;&#039;Yes&#039;&#039;. Please note that this option is set to &#039;&#039;No&#039;&#039; by default.&lt;br /&gt;
&lt;br /&gt;
==A simple example==&lt;br /&gt;
&lt;br /&gt;
===The flow we want to obtain===&lt;br /&gt;
&lt;br /&gt;
*Page 1&lt;br /&gt;
**Question 1 Do you own a car? Yes/No.&lt;br /&gt;
***Answer Yes -&amp;gt; go to page 2&lt;br /&gt;
***Answer No -&amp;gt; go to page 5 (i.e. skip over irrelevant questions in pages 2 through 4)&lt;br /&gt;
*Page 2&lt;br /&gt;
**Question 2: What is the color of your car?&lt;br /&gt;
**Question 3: Did you buy it new or second-hand?&lt;br /&gt;
***Answer new -&amp;gt; go to page 3&lt;br /&gt;
***Answer second-hand -&amp;gt; go to page 4&lt;br /&gt;
*Page 3&lt;br /&gt;
**Question 4: Did you pay your new car cash or did you get a bank loan?&lt;br /&gt;
*Page 4&lt;br /&gt;
**Question 5: Did you buy your second-hand car from a garage or directly from its previous owner?&lt;br /&gt;
*Page 5&lt;br /&gt;
**Question 6: Do you sometimes use public transport to go to work?&lt;br /&gt;
etc.&lt;br /&gt;
&lt;br /&gt;
===Procedure to obtain that flow===&lt;br /&gt;
&lt;br /&gt;
*Create Q1 as a Yes/No question.&lt;br /&gt;
**&#039;&#039;&#039;Question Name&#039;&#039;&#039;: &#039;&#039;own car&#039;&#039;. Note that you &#039;&#039;must&#039;&#039; give your question a name, as this name will be used later on in the Questionnaire to build the list of available Parent questions. Please keep this name as short as possible.&lt;br /&gt;
**&#039;&#039;&#039;Response Required&#039;&#039;&#039;: &#039;&#039;Yes&#039;&#039;. Since you plan to use question Q1 as a Parent question, it would not make sense to set it as non-required.&lt;br /&gt;
**&#039;&#039;&#039;Question Text&#039;&#039;&#039;: &#039;&#039;Do you own a car?&#039;&#039;&lt;br /&gt;
**Save Q1. No Page break will be inserted at this stage because you have not yet used a Parent question to create one or more Child questions.&lt;br /&gt;
&lt;br /&gt;
*Create Q2 as a Text Box question type&lt;br /&gt;
**&#039;&#039;&#039;Question Name&#039;&#039;&#039;: optional&lt;br /&gt;
**&#039;&#039;&#039;Response Required&#039;&#039;&#039;: &#039;&#039;Yes&#039;&#039; or &#039;&#039;No&#039;&#039; (depending on what you want to do with that question&#039;s answers later on).&lt;br /&gt;
**&#039;&#039;&#039;Parent Question&#039;&#039;&#039; : &#039;&#039;own car-&amp;gt;Yes&#039;&#039;. The Parent question (Q1) option offers 2 choices, since it is a Yes/No question.&lt;br /&gt;
**&#039;&#039;&#039;Question Text&#039;&#039;&#039;: &#039;&#039;What is the colour of your car?&#039;&#039;&lt;br /&gt;
**Save Q2. Upon saving Child question Q2 you notice that a Page break has been automatically inserted between the Parent question Q1 and its Child question Q2.&lt;br /&gt;
&lt;br /&gt;
*Create Q3 as a Radio Buttons (or Dropdown Box) question type&lt;br /&gt;
**&#039;&#039;&#039;Question Name&#039;&#039;&#039;: &#039;&#039;car status&#039;&#039;&lt;br /&gt;
**&#039;&#039;&#039;Response Required&#039;&#039;&#039;: &#039;&#039;Yes&#039;&#039;. We are giving question Q3 a name and setting it as Required because we plan to use it as a Parent question.&lt;br /&gt;
**&#039;&#039;&#039;Parent Question&#039;&#039;&#039;: own car-&amp;gt;Yes&lt;br /&gt;
**&#039;&#039;&#039;Question Text&#039;&#039;&#039;: Did you buy it new or second-hand?&lt;br /&gt;
**&#039;&#039;&#039;Possible answers&#039;&#039;&#039;:&lt;br /&gt;
***&#039;&#039;new::I bought it new&#039;&#039;&lt;br /&gt;
***&#039;&#039;used::I bought it second-hand&#039;&#039;. &lt;br /&gt;
**Please note that in the Possible answers field we are using the &amp;quot;short label&amp;quot; feature. You should use this feature if the full text of your Possible answers choices is fairly long.&lt;br /&gt;
**Save Q3. Upon saving Child question Q3 you notice that no Page break has been inserted. This is because both Q2 and Q3 are Child questions of the same Parent question Q1 and thus will be displayed on the same page of the questionnaire.&lt;br /&gt;
&lt;br /&gt;
*Create Q4 as a Radio Buttons question type&lt;br /&gt;
**&#039;&#039;&#039;Question Name&#039;&#039;&#039;: optional&lt;br /&gt;
**&#039;&#039;&#039;Response Required&#039;&#039;&#039;: Yes or No&lt;br /&gt;
**&#039;&#039;&#039;Parent Question&#039;&#039;&#039;: car status-&amp;gt;new&lt;br /&gt;
&lt;br /&gt;
**Please note that the list of potential Parent question choices displays the &amp;quot;short label&amp;quot; that we entered for the Possible answers in Q3, instead of the full text.&lt;br /&gt;
&lt;br /&gt;
**&#039;&#039;&#039;Question Text&#039;&#039;&#039;: How did you pay for your new car?&lt;br /&gt;
**&#039;&#039;&#039;Possible answers&#039;&#039;&#039;:&lt;br /&gt;
***&#039;&#039;I paid cash&#039;&#039;&lt;br /&gt;
***&#039;&#039;I got a bank loan&#039;&#039;&lt;br /&gt;
**Save Q4. Upon saving Child question Q4 you notice that a Page break has been automatically inserted between Parent question Q3 and its Child question Q4.&lt;br /&gt;
&lt;br /&gt;
*Create Q5 as a Radio Buttons question type&lt;br /&gt;
**&#039;&#039;&#039;Question Name&#039;&#039;&#039;: optional&lt;br /&gt;
**&#039;&#039;&#039;Response Required&#039;&#039;&#039;: Yes or No&lt;br /&gt;
**&#039;&#039;&#039;Parent Question&#039;&#039;&#039;: car status-&amp;gt;used&lt;br /&gt;
**&#039;&#039;&#039;Question Text&#039;&#039;&#039;: Where did you buy your second-hand car? &lt;br /&gt;
**&#039;&#039;&#039;Possible answers&#039;&#039;&#039;:&lt;br /&gt;
***&#039;&#039;I bought it from a garage&#039;&#039;&lt;br /&gt;
***&#039;&#039;I bought it directly from its previous owner&#039;&#039;&lt;br /&gt;
**Save Q5. Upon saving Child question Q5 you notice that a Page break has been automatically inserted between Child question Q4 and Child question Q5 because these two question do not have the same Parent question.&lt;br /&gt;
&lt;br /&gt;
*Create Q6 as YES/NO question type.&lt;br /&gt;
**&#039;&#039;&#039;Question Name&#039;&#039;&#039;: optional&lt;br /&gt;
**&#039;&#039;&#039;Response Required&#039;&#039;&#039;: Yes or No&lt;br /&gt;
**&#039;&#039;&#039;Parent Question&#039;&#039;&#039;: None. &amp;lt;br /&amp;gt;Question 6 is not dependent on any of the previous questions, and it will be displayed to the questionnaire respondent regardless of their previous answers.&lt;br /&gt;
**&#039;&#039;&#039;Question Text&#039;&#039;&#039;: Do you sometimes use public transport to go to work?&lt;br /&gt;
**Save Q6. Upon saving question Q6 you notice that a Page break has been automatically inserted between Child question Q5 and question Q6.&lt;br /&gt;
&lt;br /&gt;
Now continue creating questions normally, until you want to use Conditional branching again.&lt;br /&gt;
&lt;br /&gt;
Here is what your Manage questions section will look like after you have created those first 6 questions.&lt;br /&gt;
[[Image:07-08-2013 17-49-53.jpg]]&lt;br /&gt;
&lt;br /&gt;
==Operations on Conditional branching questions==&lt;br /&gt;
===Move===&lt;br /&gt;
By using the standard Moodle &amp;quot;Move&amp;quot; icon you can move your questionnaire questions to different positions. However, due to the special nature of the questionnaire flow when using the Conditional branching feature, there are restrictions on the new positions that you can move our questions to.&lt;br /&gt;
&lt;br /&gt;
*You cannot move a Parent question &#039;&#039;below&#039;&#039; any of its Child questions.&lt;br /&gt;
&lt;br /&gt;
*You cannot move a Child question &#039;&#039;above&#039;&#039; its Parent question.&lt;br /&gt;
&lt;br /&gt;
*You cannot remove those Page breaks which are needed to ensure a correct flow of dependent questions.&lt;br /&gt;
&lt;br /&gt;
[[Image:07-08-2013 18-04-16.jpg]]&lt;br /&gt;
&lt;br /&gt;
Those restrictions will show on the Manage questions screen where the Move icon is replaced with a &amp;quot;Forbidden&amp;quot; (Moodle &amp;quot;block&amp;quot;) icon. They will also operate when you are in &amp;quot;Move question&amp;quot; mode, where the Move to here icon/placeholder will not be displayed in the &amp;quot;forbidden&amp;quot; positions.&lt;br /&gt;
&lt;br /&gt;
===Edit===&lt;br /&gt;
Using the standard Moodle &amp;quot;Edit&amp;quot; icon you may edit any question. However, for those questions which have both a Parent question and one or more Child questions, you cannot change their Parent question &amp;amp; Choice, as that might ruin the consequent flow. The only way to change their Parent is to edit their Child question(s) first.&lt;br /&gt;
&lt;br /&gt;
[[Image:07-08-2013 18-12-59.jpg]]&lt;br /&gt;
&lt;br /&gt;
===Delete===&lt;br /&gt;
You cannot Delete those Page breaks which have been automatically inserted when adding Child questions.&lt;br /&gt;
&lt;br /&gt;
If you try to Delete a Parent question, you will get a warning with the list of its Child questions. If you answer Yes to the warning, the Parent question will be deleted, together with all its Child (and Grand-Child questions).&lt;br /&gt;
&lt;br /&gt;
[[Image:07-08-2013 18-20-29.jpg]]&lt;br /&gt;
&lt;br /&gt;
===Setting as Required/Not required===&lt;br /&gt;
&lt;br /&gt;
As said above, you would normally set all potential Parent questions as Required. However, there might be cases where you want to leave the respondent the choice to respond or not. If you set a question as Not required, then the usual &amp;quot;No answer&amp;quot; button will be displayed (for Yes/No and Radio Buttons questions). If the respondent does not answer a Parent question, all of its Child questions will be skipped over.&lt;br /&gt;
&lt;br /&gt;
==Previewing Questionnaire==&lt;/div&gt;</summary>
		<author><name>Rezeau</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/25/en/index.php?title=Questionnaire_Conditional_branching&amp;diff=106304</id>
		<title>Questionnaire Conditional branching</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/25/en/index.php?title=Questionnaire_Conditional_branching&amp;diff=106304"/>
		<updated>2013-08-07T16:41:42Z</updated>

		<summary type="html">&lt;p&gt;Rezeau: /* Operations on Conditional branching questions */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Questionnaire}}&lt;br /&gt;
{{New features}}&lt;br /&gt;
==Overview==&lt;br /&gt;
&lt;br /&gt;
===Definition===&lt;br /&gt;
Conditional branching (or Skip logic) is a feature that changes what question or page a respondent sees next based on how they answer the current question. Conditional branching creates a custom path through the survey that varies based on a respondent’s answers.&lt;br /&gt;
&lt;br /&gt;
===Organization===&lt;br /&gt;
In the Questionnaire plugin, the Conditional branching path is organized through &#039;&#039;pages&#039;&#039;, containing one or more &amp;quot;child&amp;quot; questions depending on a &amp;quot;parent&amp;quot; question.&lt;br /&gt;
&lt;br /&gt;
===Settings===&lt;br /&gt;
If you want to use the Conditional branching feature in a Questionnaire, when you create or edit the questionnaire, in the Response options section of the settings, you must set the &#039;&#039;&#039;Allow branching questions&#039;&#039;&#039; option to &#039;&#039;Yes&#039;&#039;. Please note that this option is set to &#039;&#039;No&#039;&#039; by default.&lt;br /&gt;
&lt;br /&gt;
==A simple example==&lt;br /&gt;
&lt;br /&gt;
===The flow we want to obtain===&lt;br /&gt;
&lt;br /&gt;
*Page 1&lt;br /&gt;
**Question 1 Do you own a car? Yes/No.&lt;br /&gt;
***Answer Yes -&amp;gt; go to page 2&lt;br /&gt;
***Answer No -&amp;gt; go to page 5 (i.e. skip over irrelevant questions in pages 2 through 4)&lt;br /&gt;
*Page 2&lt;br /&gt;
**Question 2: What is the color of your car?&lt;br /&gt;
**Question 3: Did you buy it new or second-hand?&lt;br /&gt;
***Answer new -&amp;gt; go to page 3&lt;br /&gt;
***Answer second-hand -&amp;gt; go to page 4&lt;br /&gt;
*Page 3&lt;br /&gt;
**Question 4: Did you pay your new car cash or did you get a bank loan?&lt;br /&gt;
*Page 4&lt;br /&gt;
**Question 5: Did you buy your second-hand car from a garage or directly from its previous owner?&lt;br /&gt;
*Page 5&lt;br /&gt;
**Question 6: Do you sometimes use public transport to go to work?&lt;br /&gt;
etc.&lt;br /&gt;
&lt;br /&gt;
===Procedure to obtain that flow===&lt;br /&gt;
&lt;br /&gt;
*Create Q1 as a Yes/No question.&lt;br /&gt;
**&#039;&#039;&#039;Question Name&#039;&#039;&#039;: &#039;&#039;own car&#039;&#039;. Note that you &#039;&#039;must&#039;&#039; give your question a name, as this name will be used later on in the Questionnaire to build the list of available Parent questions. Please keep this name as short as possible.&lt;br /&gt;
**&#039;&#039;&#039;Response Required&#039;&#039;&#039;: &#039;&#039;Yes&#039;&#039;. Since you plan to use question Q1 as a Parent question, it would not make sense to set it as non-required.&lt;br /&gt;
**&#039;&#039;&#039;Question Text&#039;&#039;&#039;: &#039;&#039;Do you own a car?&#039;&#039;&lt;br /&gt;
**Save Q1. No Page break will be inserted at this stage because you have not yet used a Parent question to create one or more Child questions.&lt;br /&gt;
&lt;br /&gt;
*Create Q2 as a Text Box question type&lt;br /&gt;
**&#039;&#039;&#039;Question Name&#039;&#039;&#039;: optional&lt;br /&gt;
**&#039;&#039;&#039;Response Required&#039;&#039;&#039;: &#039;&#039;Yes&#039;&#039; or &#039;&#039;No&#039;&#039; (depending on what you want to do with that question&#039;s answers later on).&lt;br /&gt;
**&#039;&#039;&#039;Parent Question&#039;&#039;&#039; : &#039;&#039;own car-&amp;gt;Yes&#039;&#039;. The Parent question (Q1) option offers 2 choices, since it is a Yes/No question.&lt;br /&gt;
**&#039;&#039;&#039;Question Text&#039;&#039;&#039;: &#039;&#039;What is the colour of your car?&#039;&#039;&lt;br /&gt;
**Save Q2. Upon saving Child question Q2 you notice that a Page break has been automatically inserted between the Parent question Q1 and its Child question Q2.&lt;br /&gt;
&lt;br /&gt;
*Create Q3 as a Radio Buttons (or Dropdown Box) question type&lt;br /&gt;
**&#039;&#039;&#039;Question Name&#039;&#039;&#039;: &#039;&#039;car status&#039;&#039;&lt;br /&gt;
**&#039;&#039;&#039;Response Required&#039;&#039;&#039;: &#039;&#039;Yes&#039;&#039;. We are giving question Q3 a name and setting it as Required because we plan to use it as a Parent question.&lt;br /&gt;
**&#039;&#039;&#039;Parent Question&#039;&#039;&#039;: own car-&amp;gt;Yes&lt;br /&gt;
**&#039;&#039;&#039;Question Text&#039;&#039;&#039;: Did you buy it new or second-hand?&lt;br /&gt;
**&#039;&#039;&#039;Possible answers&#039;&#039;&#039;:&lt;br /&gt;
***&#039;&#039;new::I bought it new&#039;&#039;&lt;br /&gt;
***&#039;&#039;used::I bought it second-hand&#039;&#039;. &lt;br /&gt;
**Please note that in the Possible answers field we are using the &amp;quot;short label&amp;quot; feature. You should use this feature if the full text of your Possible answers choices is fairly long.&lt;br /&gt;
**Save Q3. Upon saving Child question Q3 you notice that no Page break has been inserted. This is because both Q2 and Q3 are Child questions of the same Parent question Q1 and thus will be displayed on the same page of the questionnaire.&lt;br /&gt;
&lt;br /&gt;
*Create Q4 as a Radio Buttons question type&lt;br /&gt;
**&#039;&#039;&#039;Question Name&#039;&#039;&#039;: optional&lt;br /&gt;
**&#039;&#039;&#039;Response Required&#039;&#039;&#039;: Yes or No&lt;br /&gt;
**&#039;&#039;&#039;Parent Question&#039;&#039;&#039;: car status-&amp;gt;new&lt;br /&gt;
&lt;br /&gt;
**Please note that the list of potential Parent question choices displays the &amp;quot;short label&amp;quot; that we entered for the Possible answers in Q3, instead of the full text.&lt;br /&gt;
&lt;br /&gt;
**&#039;&#039;&#039;Question Text&#039;&#039;&#039;: How did you pay for your new car?&lt;br /&gt;
**&#039;&#039;&#039;Possible answers&#039;&#039;&#039;:&lt;br /&gt;
***&#039;&#039;I paid cash&#039;&#039;&lt;br /&gt;
***&#039;&#039;I got a bank loan&#039;&#039;&lt;br /&gt;
**Save Q4. Upon saving Child question Q4 you notice that a Page break has been automatically inserted between Parent question Q3 and its Child question Q4.&lt;br /&gt;
&lt;br /&gt;
*Create Q5 as a Radio Buttons question type&lt;br /&gt;
**&#039;&#039;&#039;Question Name&#039;&#039;&#039;: optional&lt;br /&gt;
**&#039;&#039;&#039;Response Required&#039;&#039;&#039;: Yes or No&lt;br /&gt;
**&#039;&#039;&#039;Parent Question&#039;&#039;&#039;: car status-&amp;gt;used&lt;br /&gt;
**&#039;&#039;&#039;Question Text&#039;&#039;&#039;: Where did you buy your second-hand car? &lt;br /&gt;
**&#039;&#039;&#039;Possible answers&#039;&#039;&#039;:&lt;br /&gt;
***&#039;&#039;I bought it from a garage&#039;&#039;&lt;br /&gt;
***&#039;&#039;I bought it directly from its previous owner&#039;&#039;&lt;br /&gt;
**Save Q5. Upon saving Child question Q5 you notice that a Page break has been automatically inserted between Child question Q4 and Child question Q5 because these two question do not have the same Parent question.&lt;br /&gt;
&lt;br /&gt;
*Create Q6 as YES/NO question type.&lt;br /&gt;
**&#039;&#039;&#039;Question Name&#039;&#039;&#039;: optional&lt;br /&gt;
**&#039;&#039;&#039;Response Required&#039;&#039;&#039;: Yes or No&lt;br /&gt;
**&#039;&#039;&#039;Parent Question&#039;&#039;&#039;: None. &amp;lt;br /&amp;gt;Question 6 is not dependent on any of the previous questions, and it will be displayed to the questionnaire respondent regardless of their previous answers.&lt;br /&gt;
**&#039;&#039;&#039;Question Text&#039;&#039;&#039;: Do you sometimes use public transport to go to work?&lt;br /&gt;
**Save Q6. Upon saving question Q6 you notice that a Page break has been automatically inserted between Child question Q5 and question Q6.&lt;br /&gt;
&lt;br /&gt;
Now continue creating questions normally, until you want to use Conditional branching again.&lt;br /&gt;
&lt;br /&gt;
Here is what your Manage questions section will look like after you have created those first 6 questions.&lt;br /&gt;
[[Image:07-08-2013 17-49-53.jpg]]&lt;br /&gt;
&lt;br /&gt;
==Operations on Conditional branching questions==&lt;br /&gt;
===Move===&lt;br /&gt;
By using the standard Moodle &amp;quot;Move&amp;quot; icon you can move your questionnaire questions to different positions. However, due to the special nature of the questionnaire flow when using the Conditional branching feature, there are restrictions on the new positions that you can move our questions to.&lt;br /&gt;
&lt;br /&gt;
*You cannot move a Parent question &#039;&#039;below&#039;&#039; any of its Child questions.&lt;br /&gt;
&lt;br /&gt;
*You cannot move a Child question &#039;&#039;above&#039;&#039; its Parent question.&lt;br /&gt;
&lt;br /&gt;
*You cannot remove those Page breaks which are needed to ensure a correct flow of dependent questions.&lt;br /&gt;
&lt;br /&gt;
[[Image:07-08-2013 18-04-16.jpg]]&lt;br /&gt;
&lt;br /&gt;
Those restrictions will show on the Manage questions screen where the Move icon is replaced with a &amp;quot;Forbidden&amp;quot; (Moodle &amp;quot;block&amp;quot;) icon. They will also operate when you are in &amp;quot;Move question&amp;quot; mode, where the Move to here icon/placeholder will not be displayed in the &amp;quot;forbidden&amp;quot; positions.&lt;br /&gt;
&lt;br /&gt;
===Edit===&lt;br /&gt;
Using the standard Moodle &amp;quot;Edit&amp;quot; icon you may edit any question. However, for those questions which have both a Parent question and one or more Child questions, you cannot change their Parent question &amp;amp; Choice, as that might ruin the consequent flow. The only way to change their Parent is to edit their Child question(s) first.&lt;br /&gt;
&lt;br /&gt;
[[Image:07-08-2013 18-12-59.jpg]]&lt;br /&gt;
&lt;br /&gt;
===Delete===&lt;br /&gt;
You cannot Delete those Page breaks which have been automatically inserted when adding Child questions.&lt;br /&gt;
&lt;br /&gt;
If you try to Delete a Parent question, you will get a warning with the list of its Child questions. If you answer Yes to the warning, the Parent question will be deleted, together with all its Child (and Grand-Child questions).&lt;br /&gt;
&lt;br /&gt;
[[Image:07-08-2013 18-20-29.jpg]]&lt;br /&gt;
&lt;br /&gt;
===Setting as Required/Not required===&lt;br /&gt;
&lt;br /&gt;
As said above, you would normally set all potential Parent questions as Required. However, there might be cases where you want to leave the respondent the choice to respond or not. If you set a question as Not required, then the usual &amp;quot;No answer&amp;quot; button will be displayed (for Yes/No and Radio Buttons questions). If the respondent does not answer a Parent question, all of its Child questions will be skipped over.&lt;/div&gt;</summary>
		<author><name>Rezeau</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/25/en/index.php?title=Questionnaire_Conditional_branching&amp;diff=106303</id>
		<title>Questionnaire Conditional branching</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/25/en/index.php?title=Questionnaire_Conditional_branching&amp;diff=106303"/>
		<updated>2013-08-07T16:22:23Z</updated>

		<summary type="html">&lt;p&gt;Rezeau: /* Delete */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Questionnaire}}&lt;br /&gt;
{{New features}}&lt;br /&gt;
==Overview==&lt;br /&gt;
&lt;br /&gt;
===Definition===&lt;br /&gt;
Conditional branching (or Skip logic) is a feature that changes what question or page a respondent sees next based on how they answer the current question. Conditional branching creates a custom path through the survey that varies based on a respondent’s answers.&lt;br /&gt;
&lt;br /&gt;
===Organization===&lt;br /&gt;
In the Questionnaire plugin, the Conditional branching path is organized through &#039;&#039;pages&#039;&#039;, containing one or more &amp;quot;child&amp;quot; questions depending on a &amp;quot;parent&amp;quot; question.&lt;br /&gt;
&lt;br /&gt;
===Settings===&lt;br /&gt;
If you want to use the Conditional branching feature in a Questionnaire, when you create or edit the questionnaire, in the Response options section of the settings, you must set the &#039;&#039;&#039;Allow branching questions&#039;&#039;&#039; option to &#039;&#039;Yes&#039;&#039;. Please note that this option is set to &#039;&#039;No&#039;&#039; by default.&lt;br /&gt;
&lt;br /&gt;
==A simple example==&lt;br /&gt;
&lt;br /&gt;
===The flow we want to obtain===&lt;br /&gt;
&lt;br /&gt;
*Page 1&lt;br /&gt;
**Question 1 Do you own a car? Yes/No.&lt;br /&gt;
***Answer Yes -&amp;gt; go to page 2&lt;br /&gt;
***Answer No -&amp;gt; go to page 5 (i.e. skip over irrelevant questions in pages 2 through 4)&lt;br /&gt;
*Page 2&lt;br /&gt;
**Question 2: What is the color of your car?&lt;br /&gt;
**Question 3: Did you buy it new or second-hand?&lt;br /&gt;
***Answer new -&amp;gt; go to page 3&lt;br /&gt;
***Answer second-hand -&amp;gt; go to page 4&lt;br /&gt;
*Page 3&lt;br /&gt;
**Question 4: Did you pay your new car cash or did you get a bank loan?&lt;br /&gt;
*Page 4&lt;br /&gt;
**Question 5: Did you buy your second-hand car from a garage or directly from its previous owner?&lt;br /&gt;
*Page 5&lt;br /&gt;
**Question 6: Do you sometimes use public transport to go to work?&lt;br /&gt;
etc.&lt;br /&gt;
&lt;br /&gt;
===Procedure to obtain that flow===&lt;br /&gt;
&lt;br /&gt;
*Create Q1 as a Yes/No question.&lt;br /&gt;
**&#039;&#039;&#039;Question Name&#039;&#039;&#039;: &#039;&#039;own car&#039;&#039;. Note that you &#039;&#039;must&#039;&#039; give your question a name, as this name will be used later on in the Questionnaire to build the list of available Parent questions. Please keep this name as short as possible.&lt;br /&gt;
**&#039;&#039;&#039;Response Required&#039;&#039;&#039;: &#039;&#039;Yes&#039;&#039;. Since you plan to use question Q1 as a Parent question, it would not make sense to set it as non-required.&lt;br /&gt;
**&#039;&#039;&#039;Question Text&#039;&#039;&#039;: &#039;&#039;Do you own a car?&#039;&#039;&lt;br /&gt;
**Save Q1. No Page break will be inserted at this stage because you have not yet used a Parent question to create one or more Child questions.&lt;br /&gt;
&lt;br /&gt;
*Create Q2 as a Text Box question type&lt;br /&gt;
**&#039;&#039;&#039;Question Name&#039;&#039;&#039;: optional&lt;br /&gt;
**&#039;&#039;&#039;Response Required&#039;&#039;&#039;: &#039;&#039;Yes&#039;&#039; or &#039;&#039;No&#039;&#039; (depending on what you want to do with that question&#039;s answers later on).&lt;br /&gt;
**&#039;&#039;&#039;Parent Question&#039;&#039;&#039; : &#039;&#039;own car-&amp;gt;Yes&#039;&#039;. The Parent question (Q1) option offers 2 choices, since it is a Yes/No question.&lt;br /&gt;
**&#039;&#039;&#039;Question Text&#039;&#039;&#039;: &#039;&#039;What is the colour of your car?&#039;&#039;&lt;br /&gt;
**Save Q2. Upon saving Child question Q2 you notice that a Page break has been automatically inserted between the Parent question Q1 and its Child question Q2.&lt;br /&gt;
&lt;br /&gt;
*Create Q3 as a Radio Buttons (or Dropdown Box) question type&lt;br /&gt;
**&#039;&#039;&#039;Question Name&#039;&#039;&#039;: &#039;&#039;car status&#039;&#039;&lt;br /&gt;
**&#039;&#039;&#039;Response Required&#039;&#039;&#039;: &#039;&#039;Yes&#039;&#039;. We are giving question Q3 a name and setting it as Required because we plan to use it as a Parent question.&lt;br /&gt;
**&#039;&#039;&#039;Parent Question&#039;&#039;&#039;: own car-&amp;gt;Yes&lt;br /&gt;
**&#039;&#039;&#039;Question Text&#039;&#039;&#039;: Did you buy it new or second-hand?&lt;br /&gt;
**&#039;&#039;&#039;Possible answers&#039;&#039;&#039;:&lt;br /&gt;
***&#039;&#039;new::I bought it new&#039;&#039;&lt;br /&gt;
***&#039;&#039;used::I bought it second-hand&#039;&#039;. &lt;br /&gt;
**Please note that in the Possible answers field we are using the &amp;quot;short label&amp;quot; feature. You should use this feature if the full text of your Possible answers choices is fairly long.&lt;br /&gt;
**Save Q3. Upon saving Child question Q3 you notice that no Page break has been inserted. This is because both Q2 and Q3 are Child questions of the same Parent question Q1 and thus will be displayed on the same page of the questionnaire.&lt;br /&gt;
&lt;br /&gt;
*Create Q4 as a Radio Buttons question type&lt;br /&gt;
**&#039;&#039;&#039;Question Name&#039;&#039;&#039;: optional&lt;br /&gt;
**&#039;&#039;&#039;Response Required&#039;&#039;&#039;: Yes or No&lt;br /&gt;
**&#039;&#039;&#039;Parent Question&#039;&#039;&#039;: car status-&amp;gt;new&lt;br /&gt;
&lt;br /&gt;
**Please note that the list of potential Parent question choices displays the &amp;quot;short label&amp;quot; that we entered for the Possible answers in Q3, instead of the full text.&lt;br /&gt;
&lt;br /&gt;
**&#039;&#039;&#039;Question Text&#039;&#039;&#039;: How did you pay for your new car?&lt;br /&gt;
**&#039;&#039;&#039;Possible answers&#039;&#039;&#039;:&lt;br /&gt;
***&#039;&#039;I paid cash&#039;&#039;&lt;br /&gt;
***&#039;&#039;I got a bank loan&#039;&#039;&lt;br /&gt;
**Save Q4. Upon saving Child question Q4 you notice that a Page break has been automatically inserted between Parent question Q3 and its Child question Q4.&lt;br /&gt;
&lt;br /&gt;
*Create Q5 as a Radio Buttons question type&lt;br /&gt;
**&#039;&#039;&#039;Question Name&#039;&#039;&#039;: optional&lt;br /&gt;
**&#039;&#039;&#039;Response Required&#039;&#039;&#039;: Yes or No&lt;br /&gt;
**&#039;&#039;&#039;Parent Question&#039;&#039;&#039;: car status-&amp;gt;used&lt;br /&gt;
**&#039;&#039;&#039;Question Text&#039;&#039;&#039;: Where did you buy your second-hand car? &lt;br /&gt;
**&#039;&#039;&#039;Possible answers&#039;&#039;&#039;:&lt;br /&gt;
***&#039;&#039;I bought it from a garage&#039;&#039;&lt;br /&gt;
***&#039;&#039;I bought it directly from its previous owner&#039;&#039;&lt;br /&gt;
**Save Q5. Upon saving Child question Q5 you notice that a Page break has been automatically inserted between Child question Q4 and Child question Q5 because these two question do not have the same Parent question.&lt;br /&gt;
&lt;br /&gt;
*Create Q6 as YES/NO question type.&lt;br /&gt;
**&#039;&#039;&#039;Question Name&#039;&#039;&#039;: optional&lt;br /&gt;
**&#039;&#039;&#039;Response Required&#039;&#039;&#039;: Yes or No&lt;br /&gt;
**&#039;&#039;&#039;Parent Question&#039;&#039;&#039;: None. &amp;lt;br /&amp;gt;Question 6 is not dependent on any of the previous questions, and it will be displayed to the questionnaire respondent regardless of their previous answers.&lt;br /&gt;
**&#039;&#039;&#039;Question Text&#039;&#039;&#039;: Do you sometimes use public transport to go to work?&lt;br /&gt;
**Save Q6. Upon saving question Q6 you notice that a Page break has been automatically inserted between Child question Q5 and question Q6.&lt;br /&gt;
&lt;br /&gt;
Now continue creating questions normally, until you want to use Conditional branching again.&lt;br /&gt;
&lt;br /&gt;
Here is what your Manage questions section will look like after you have created those first 6 questions.&lt;br /&gt;
[[Image:07-08-2013 17-49-53.jpg]]&lt;br /&gt;
&lt;br /&gt;
==Operations on Conditional branching questions==&lt;br /&gt;
===Move===&lt;br /&gt;
By using the standard Moodle &amp;quot;Move&amp;quot; icon you can move your questionnaire questions to different positions. However, due to the special nature of the questionnaire flow when using the Conditional branching feature, there are restrictions on the new positions that you can move our questions to.&lt;br /&gt;
&lt;br /&gt;
*You cannot move a Parent question &#039;&#039;below&#039;&#039; any of its Child questions.&lt;br /&gt;
&lt;br /&gt;
*You cannot move a Child question &#039;&#039;above&#039;&#039; its Parent question.&lt;br /&gt;
&lt;br /&gt;
*You cannot remove those Page breaks which are needed to ensure a correct flow of dependent questions.&lt;br /&gt;
&lt;br /&gt;
[[Image:07-08-2013 18-04-16.jpg]]&lt;br /&gt;
&lt;br /&gt;
Those restrictions will show on the Manage questions screen where the Move icon is replaced with a &amp;quot;Forbidden&amp;quot; (Moodle &amp;quot;block&amp;quot;) icon. They will also operate when you are in &amp;quot;Move question&amp;quot; mode, where the Move to here icon/placeholder will not be displayed in the &amp;quot;forbidden&amp;quot; positions.&lt;br /&gt;
&lt;br /&gt;
===Edit===&lt;br /&gt;
Using the standard Moodle &amp;quot;Edit&amp;quot; icon you may edit any question. However, for those questions which have both a Parent question and one or more Child questions, you cannot change their Parent question &amp;amp; Choice, as that might ruin the consequent flow. The only way to change their Parent is to edit their Child question(s) first.&lt;br /&gt;
&lt;br /&gt;
[[Image:07-08-2013 18-12-59.jpg]]&lt;br /&gt;
&lt;br /&gt;
===Delete===&lt;br /&gt;
You cannot Delete those Page breaks which have been automatically inserted when adding Child questions.&lt;br /&gt;
&lt;br /&gt;
If you try to Delete a Parent question, you will get a warning with the list of its Child questions. If you answer Yes to the warning, the Parent question will be deleted, together with all its Child (and Grand-Child questions).&lt;br /&gt;
&lt;br /&gt;
[[Image:07-08-2013 18-20-29.jpg]]&lt;/div&gt;</summary>
		<author><name>Rezeau</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/25/en/index.php?title=File:07-08-2013_18-20-29.jpg&amp;diff=106302</id>
		<title>File:07-08-2013 18-20-29.jpg</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/25/en/index.php?title=File:07-08-2013_18-20-29.jpg&amp;diff=106302"/>
		<updated>2013-08-07T16:21:22Z</updated>

		<summary type="html">&lt;p&gt;Rezeau: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Rezeau</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/25/en/index.php?title=Questionnaire_Conditional_branching&amp;diff=106301</id>
		<title>Questionnaire Conditional branching</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/25/en/index.php?title=Questionnaire_Conditional_branching&amp;diff=106301"/>
		<updated>2013-08-07T16:18:09Z</updated>

		<summary type="html">&lt;p&gt;Rezeau: /* Edit */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Questionnaire}}&lt;br /&gt;
{{New features}}&lt;br /&gt;
==Overview==&lt;br /&gt;
&lt;br /&gt;
===Definition===&lt;br /&gt;
Conditional branching (or Skip logic) is a feature that changes what question or page a respondent sees next based on how they answer the current question. Conditional branching creates a custom path through the survey that varies based on a respondent’s answers.&lt;br /&gt;
&lt;br /&gt;
===Organization===&lt;br /&gt;
In the Questionnaire plugin, the Conditional branching path is organized through &#039;&#039;pages&#039;&#039;, containing one or more &amp;quot;child&amp;quot; questions depending on a &amp;quot;parent&amp;quot; question.&lt;br /&gt;
&lt;br /&gt;
===Settings===&lt;br /&gt;
If you want to use the Conditional branching feature in a Questionnaire, when you create or edit the questionnaire, in the Response options section of the settings, you must set the &#039;&#039;&#039;Allow branching questions&#039;&#039;&#039; option to &#039;&#039;Yes&#039;&#039;. Please note that this option is set to &#039;&#039;No&#039;&#039; by default.&lt;br /&gt;
&lt;br /&gt;
==A simple example==&lt;br /&gt;
&lt;br /&gt;
===The flow we want to obtain===&lt;br /&gt;
&lt;br /&gt;
*Page 1&lt;br /&gt;
**Question 1 Do you own a car? Yes/No.&lt;br /&gt;
***Answer Yes -&amp;gt; go to page 2&lt;br /&gt;
***Answer No -&amp;gt; go to page 5 (i.e. skip over irrelevant questions in pages 2 through 4)&lt;br /&gt;
*Page 2&lt;br /&gt;
**Question 2: What is the color of your car?&lt;br /&gt;
**Question 3: Did you buy it new or second-hand?&lt;br /&gt;
***Answer new -&amp;gt; go to page 3&lt;br /&gt;
***Answer second-hand -&amp;gt; go to page 4&lt;br /&gt;
*Page 3&lt;br /&gt;
**Question 4: Did you pay your new car cash or did you get a bank loan?&lt;br /&gt;
*Page 4&lt;br /&gt;
**Question 5: Did you buy your second-hand car from a garage or directly from its previous owner?&lt;br /&gt;
*Page 5&lt;br /&gt;
**Question 6: Do you sometimes use public transport to go to work?&lt;br /&gt;
etc.&lt;br /&gt;
&lt;br /&gt;
===Procedure to obtain that flow===&lt;br /&gt;
&lt;br /&gt;
*Create Q1 as a Yes/No question.&lt;br /&gt;
**&#039;&#039;&#039;Question Name&#039;&#039;&#039;: &#039;&#039;own car&#039;&#039;. Note that you &#039;&#039;must&#039;&#039; give your question a name, as this name will be used later on in the Questionnaire to build the list of available Parent questions. Please keep this name as short as possible.&lt;br /&gt;
**&#039;&#039;&#039;Response Required&#039;&#039;&#039;: &#039;&#039;Yes&#039;&#039;. Since you plan to use question Q1 as a Parent question, it would not make sense to set it as non-required.&lt;br /&gt;
**&#039;&#039;&#039;Question Text&#039;&#039;&#039;: &#039;&#039;Do you own a car?&#039;&#039;&lt;br /&gt;
**Save Q1. No Page break will be inserted at this stage because you have not yet used a Parent question to create one or more Child questions.&lt;br /&gt;
&lt;br /&gt;
*Create Q2 as a Text Box question type&lt;br /&gt;
**&#039;&#039;&#039;Question Name&#039;&#039;&#039;: optional&lt;br /&gt;
**&#039;&#039;&#039;Response Required&#039;&#039;&#039;: &#039;&#039;Yes&#039;&#039; or &#039;&#039;No&#039;&#039; (depending on what you want to do with that question&#039;s answers later on).&lt;br /&gt;
**&#039;&#039;&#039;Parent Question&#039;&#039;&#039; : &#039;&#039;own car-&amp;gt;Yes&#039;&#039;. The Parent question (Q1) option offers 2 choices, since it is a Yes/No question.&lt;br /&gt;
**&#039;&#039;&#039;Question Text&#039;&#039;&#039;: &#039;&#039;What is the colour of your car?&#039;&#039;&lt;br /&gt;
**Save Q2. Upon saving Child question Q2 you notice that a Page break has been automatically inserted between the Parent question Q1 and its Child question Q2.&lt;br /&gt;
&lt;br /&gt;
*Create Q3 as a Radio Buttons (or Dropdown Box) question type&lt;br /&gt;
**&#039;&#039;&#039;Question Name&#039;&#039;&#039;: &#039;&#039;car status&#039;&#039;&lt;br /&gt;
**&#039;&#039;&#039;Response Required&#039;&#039;&#039;: &#039;&#039;Yes&#039;&#039;. We are giving question Q3 a name and setting it as Required because we plan to use it as a Parent question.&lt;br /&gt;
**&#039;&#039;&#039;Parent Question&#039;&#039;&#039;: own car-&amp;gt;Yes&lt;br /&gt;
**&#039;&#039;&#039;Question Text&#039;&#039;&#039;: Did you buy it new or second-hand?&lt;br /&gt;
**&#039;&#039;&#039;Possible answers&#039;&#039;&#039;:&lt;br /&gt;
***&#039;&#039;new::I bought it new&#039;&#039;&lt;br /&gt;
***&#039;&#039;used::I bought it second-hand&#039;&#039;. &lt;br /&gt;
**Please note that in the Possible answers field we are using the &amp;quot;short label&amp;quot; feature. You should use this feature if the full text of your Possible answers choices is fairly long.&lt;br /&gt;
**Save Q3. Upon saving Child question Q3 you notice that no Page break has been inserted. This is because both Q2 and Q3 are Child questions of the same Parent question Q1 and thus will be displayed on the same page of the questionnaire.&lt;br /&gt;
&lt;br /&gt;
*Create Q4 as a Radio Buttons question type&lt;br /&gt;
**&#039;&#039;&#039;Question Name&#039;&#039;&#039;: optional&lt;br /&gt;
**&#039;&#039;&#039;Response Required&#039;&#039;&#039;: Yes or No&lt;br /&gt;
**&#039;&#039;&#039;Parent Question&#039;&#039;&#039;: car status-&amp;gt;new&lt;br /&gt;
&lt;br /&gt;
**Please note that the list of potential Parent question choices displays the &amp;quot;short label&amp;quot; that we entered for the Possible answers in Q3, instead of the full text.&lt;br /&gt;
&lt;br /&gt;
**&#039;&#039;&#039;Question Text&#039;&#039;&#039;: How did you pay for your new car?&lt;br /&gt;
**&#039;&#039;&#039;Possible answers&#039;&#039;&#039;:&lt;br /&gt;
***&#039;&#039;I paid cash&#039;&#039;&lt;br /&gt;
***&#039;&#039;I got a bank loan&#039;&#039;&lt;br /&gt;
**Save Q4. Upon saving Child question Q4 you notice that a Page break has been automatically inserted between Parent question Q3 and its Child question Q4.&lt;br /&gt;
&lt;br /&gt;
*Create Q5 as a Radio Buttons question type&lt;br /&gt;
**&#039;&#039;&#039;Question Name&#039;&#039;&#039;: optional&lt;br /&gt;
**&#039;&#039;&#039;Response Required&#039;&#039;&#039;: Yes or No&lt;br /&gt;
**&#039;&#039;&#039;Parent Question&#039;&#039;&#039;: car status-&amp;gt;used&lt;br /&gt;
**&#039;&#039;&#039;Question Text&#039;&#039;&#039;: Where did you buy your second-hand car? &lt;br /&gt;
**&#039;&#039;&#039;Possible answers&#039;&#039;&#039;:&lt;br /&gt;
***&#039;&#039;I bought it from a garage&#039;&#039;&lt;br /&gt;
***&#039;&#039;I bought it directly from its previous owner&#039;&#039;&lt;br /&gt;
**Save Q5. Upon saving Child question Q5 you notice that a Page break has been automatically inserted between Child question Q4 and Child question Q5 because these two question do not have the same Parent question.&lt;br /&gt;
&lt;br /&gt;
*Create Q6 as YES/NO question type.&lt;br /&gt;
**&#039;&#039;&#039;Question Name&#039;&#039;&#039;: optional&lt;br /&gt;
**&#039;&#039;&#039;Response Required&#039;&#039;&#039;: Yes or No&lt;br /&gt;
**&#039;&#039;&#039;Parent Question&#039;&#039;&#039;: None. &amp;lt;br /&amp;gt;Question 6 is not dependent on any of the previous questions, and it will be displayed to the questionnaire respondent regardless of their previous answers.&lt;br /&gt;
**&#039;&#039;&#039;Question Text&#039;&#039;&#039;: Do you sometimes use public transport to go to work?&lt;br /&gt;
**Save Q6. Upon saving question Q6 you notice that a Page break has been automatically inserted between Child question Q5 and question Q6.&lt;br /&gt;
&lt;br /&gt;
Now continue creating questions normally, until you want to use Conditional branching again.&lt;br /&gt;
&lt;br /&gt;
Here is what your Manage questions section will look like after you have created those first 6 questions.&lt;br /&gt;
[[Image:07-08-2013 17-49-53.jpg]]&lt;br /&gt;
&lt;br /&gt;
==Operations on Conditional branching questions==&lt;br /&gt;
===Move===&lt;br /&gt;
By using the standard Moodle &amp;quot;Move&amp;quot; icon you can move your questionnaire questions to different positions. However, due to the special nature of the questionnaire flow when using the Conditional branching feature, there are restrictions on the new positions that you can move our questions to.&lt;br /&gt;
&lt;br /&gt;
*You cannot move a Parent question &#039;&#039;below&#039;&#039; any of its Child questions.&lt;br /&gt;
&lt;br /&gt;
*You cannot move a Child question &#039;&#039;above&#039;&#039; its Parent question.&lt;br /&gt;
&lt;br /&gt;
*You cannot remove those Page breaks which are needed to ensure a correct flow of dependent questions.&lt;br /&gt;
&lt;br /&gt;
[[Image:07-08-2013 18-04-16.jpg]]&lt;br /&gt;
&lt;br /&gt;
Those restrictions will show on the Manage questions screen where the Move icon is replaced with a &amp;quot;Forbidden&amp;quot; (Moodle &amp;quot;block&amp;quot;) icon. They will also operate when you are in &amp;quot;Move question&amp;quot; mode, where the Move to here icon/placeholder will not be displayed in the &amp;quot;forbidden&amp;quot; positions.&lt;br /&gt;
&lt;br /&gt;
===Edit===&lt;br /&gt;
Using the standard Moodle &amp;quot;Edit&amp;quot; icon you may edit any question. However, for those questions which have both a Parent question and one or more Child questions, you cannot change their Parent question &amp;amp; Choice, as that might ruin the consequent flow. The only way to change their Parent is to edit their Child question(s) first.&lt;br /&gt;
&lt;br /&gt;
[[Image:07-08-2013 18-12-59.jpg]]&lt;br /&gt;
&lt;br /&gt;
===Delete===&lt;/div&gt;</summary>
		<author><name>Rezeau</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/25/en/index.php?title=File:07-08-2013_18-12-59.jpg&amp;diff=106300</id>
		<title>File:07-08-2013 18-12-59.jpg</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/25/en/index.php?title=File:07-08-2013_18-12-59.jpg&amp;diff=106300"/>
		<updated>2013-08-07T16:16:10Z</updated>

		<summary type="html">&lt;p&gt;Rezeau: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Rezeau</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/25/en/index.php?title=Questionnaire_Conditional_branching&amp;diff=106299</id>
		<title>Questionnaire Conditional branching</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/25/en/index.php?title=Questionnaire_Conditional_branching&amp;diff=106299"/>
		<updated>2013-08-07T16:10:34Z</updated>

		<summary type="html">&lt;p&gt;Rezeau: /* Move */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Questionnaire}}&lt;br /&gt;
{{New features}}&lt;br /&gt;
==Overview==&lt;br /&gt;
&lt;br /&gt;
===Definition===&lt;br /&gt;
Conditional branching (or Skip logic) is a feature that changes what question or page a respondent sees next based on how they answer the current question. Conditional branching creates a custom path through the survey that varies based on a respondent’s answers.&lt;br /&gt;
&lt;br /&gt;
===Organization===&lt;br /&gt;
In the Questionnaire plugin, the Conditional branching path is organized through &#039;&#039;pages&#039;&#039;, containing one or more &amp;quot;child&amp;quot; questions depending on a &amp;quot;parent&amp;quot; question.&lt;br /&gt;
&lt;br /&gt;
===Settings===&lt;br /&gt;
If you want to use the Conditional branching feature in a Questionnaire, when you create or edit the questionnaire, in the Response options section of the settings, you must set the &#039;&#039;&#039;Allow branching questions&#039;&#039;&#039; option to &#039;&#039;Yes&#039;&#039;. Please note that this option is set to &#039;&#039;No&#039;&#039; by default.&lt;br /&gt;
&lt;br /&gt;
==A simple example==&lt;br /&gt;
&lt;br /&gt;
===The flow we want to obtain===&lt;br /&gt;
&lt;br /&gt;
*Page 1&lt;br /&gt;
**Question 1 Do you own a car? Yes/No.&lt;br /&gt;
***Answer Yes -&amp;gt; go to page 2&lt;br /&gt;
***Answer No -&amp;gt; go to page 5 (i.e. skip over irrelevant questions in pages 2 through 4)&lt;br /&gt;
*Page 2&lt;br /&gt;
**Question 2: What is the color of your car?&lt;br /&gt;
**Question 3: Did you buy it new or second-hand?&lt;br /&gt;
***Answer new -&amp;gt; go to page 3&lt;br /&gt;
***Answer second-hand -&amp;gt; go to page 4&lt;br /&gt;
*Page 3&lt;br /&gt;
**Question 4: Did you pay your new car cash or did you get a bank loan?&lt;br /&gt;
*Page 4&lt;br /&gt;
**Question 5: Did you buy your second-hand car from a garage or directly from its previous owner?&lt;br /&gt;
*Page 5&lt;br /&gt;
**Question 6: Do you sometimes use public transport to go to work?&lt;br /&gt;
etc.&lt;br /&gt;
&lt;br /&gt;
===Procedure to obtain that flow===&lt;br /&gt;
&lt;br /&gt;
*Create Q1 as a Yes/No question.&lt;br /&gt;
**&#039;&#039;&#039;Question Name&#039;&#039;&#039;: &#039;&#039;own car&#039;&#039;. Note that you &#039;&#039;must&#039;&#039; give your question a name, as this name will be used later on in the Questionnaire to build the list of available Parent questions. Please keep this name as short as possible.&lt;br /&gt;
**&#039;&#039;&#039;Response Required&#039;&#039;&#039;: &#039;&#039;Yes&#039;&#039;. Since you plan to use question Q1 as a Parent question, it would not make sense to set it as non-required.&lt;br /&gt;
**&#039;&#039;&#039;Question Text&#039;&#039;&#039;: &#039;&#039;Do you own a car?&#039;&#039;&lt;br /&gt;
**Save Q1. No Page break will be inserted at this stage because you have not yet used a Parent question to create one or more Child questions.&lt;br /&gt;
&lt;br /&gt;
*Create Q2 as a Text Box question type&lt;br /&gt;
**&#039;&#039;&#039;Question Name&#039;&#039;&#039;: optional&lt;br /&gt;
**&#039;&#039;&#039;Response Required&#039;&#039;&#039;: &#039;&#039;Yes&#039;&#039; or &#039;&#039;No&#039;&#039; (depending on what you want to do with that question&#039;s answers later on).&lt;br /&gt;
**&#039;&#039;&#039;Parent Question&#039;&#039;&#039; : &#039;&#039;own car-&amp;gt;Yes&#039;&#039;. The Parent question (Q1) option offers 2 choices, since it is a Yes/No question.&lt;br /&gt;
**&#039;&#039;&#039;Question Text&#039;&#039;&#039;: &#039;&#039;What is the colour of your car?&#039;&#039;&lt;br /&gt;
**Save Q2. Upon saving Child question Q2 you notice that a Page break has been automatically inserted between the Parent question Q1 and its Child question Q2.&lt;br /&gt;
&lt;br /&gt;
*Create Q3 as a Radio Buttons (or Dropdown Box) question type&lt;br /&gt;
**&#039;&#039;&#039;Question Name&#039;&#039;&#039;: &#039;&#039;car status&#039;&#039;&lt;br /&gt;
**&#039;&#039;&#039;Response Required&#039;&#039;&#039;: &#039;&#039;Yes&#039;&#039;. We are giving question Q3 a name and setting it as Required because we plan to use it as a Parent question.&lt;br /&gt;
**&#039;&#039;&#039;Parent Question&#039;&#039;&#039;: own car-&amp;gt;Yes&lt;br /&gt;
**&#039;&#039;&#039;Question Text&#039;&#039;&#039;: Did you buy it new or second-hand?&lt;br /&gt;
**&#039;&#039;&#039;Possible answers&#039;&#039;&#039;:&lt;br /&gt;
***&#039;&#039;new::I bought it new&#039;&#039;&lt;br /&gt;
***&#039;&#039;used::I bought it second-hand&#039;&#039;. &lt;br /&gt;
**Please note that in the Possible answers field we are using the &amp;quot;short label&amp;quot; feature. You should use this feature if the full text of your Possible answers choices is fairly long.&lt;br /&gt;
**Save Q3. Upon saving Child question Q3 you notice that no Page break has been inserted. This is because both Q2 and Q3 are Child questions of the same Parent question Q1 and thus will be displayed on the same page of the questionnaire.&lt;br /&gt;
&lt;br /&gt;
*Create Q4 as a Radio Buttons question type&lt;br /&gt;
**&#039;&#039;&#039;Question Name&#039;&#039;&#039;: optional&lt;br /&gt;
**&#039;&#039;&#039;Response Required&#039;&#039;&#039;: Yes or No&lt;br /&gt;
**&#039;&#039;&#039;Parent Question&#039;&#039;&#039;: car status-&amp;gt;new&lt;br /&gt;
&lt;br /&gt;
**Please note that the list of potential Parent question choices displays the &amp;quot;short label&amp;quot; that we entered for the Possible answers in Q3, instead of the full text.&lt;br /&gt;
&lt;br /&gt;
**&#039;&#039;&#039;Question Text&#039;&#039;&#039;: How did you pay for your new car?&lt;br /&gt;
**&#039;&#039;&#039;Possible answers&#039;&#039;&#039;:&lt;br /&gt;
***&#039;&#039;I paid cash&#039;&#039;&lt;br /&gt;
***&#039;&#039;I got a bank loan&#039;&#039;&lt;br /&gt;
**Save Q4. Upon saving Child question Q4 you notice that a Page break has been automatically inserted between Parent question Q3 and its Child question Q4.&lt;br /&gt;
&lt;br /&gt;
*Create Q5 as a Radio Buttons question type&lt;br /&gt;
**&#039;&#039;&#039;Question Name&#039;&#039;&#039;: optional&lt;br /&gt;
**&#039;&#039;&#039;Response Required&#039;&#039;&#039;: Yes or No&lt;br /&gt;
**&#039;&#039;&#039;Parent Question&#039;&#039;&#039;: car status-&amp;gt;used&lt;br /&gt;
**&#039;&#039;&#039;Question Text&#039;&#039;&#039;: Where did you buy your second-hand car? &lt;br /&gt;
**&#039;&#039;&#039;Possible answers&#039;&#039;&#039;:&lt;br /&gt;
***&#039;&#039;I bought it from a garage&#039;&#039;&lt;br /&gt;
***&#039;&#039;I bought it directly from its previous owner&#039;&#039;&lt;br /&gt;
**Save Q5. Upon saving Child question Q5 you notice that a Page break has been automatically inserted between Child question Q4 and Child question Q5 because these two question do not have the same Parent question.&lt;br /&gt;
&lt;br /&gt;
*Create Q6 as YES/NO question type.&lt;br /&gt;
**&#039;&#039;&#039;Question Name&#039;&#039;&#039;: optional&lt;br /&gt;
**&#039;&#039;&#039;Response Required&#039;&#039;&#039;: Yes or No&lt;br /&gt;
**&#039;&#039;&#039;Parent Question&#039;&#039;&#039;: None. &amp;lt;br /&amp;gt;Question 6 is not dependent on any of the previous questions, and it will be displayed to the questionnaire respondent regardless of their previous answers.&lt;br /&gt;
**&#039;&#039;&#039;Question Text&#039;&#039;&#039;: Do you sometimes use public transport to go to work?&lt;br /&gt;
**Save Q6. Upon saving question Q6 you notice that a Page break has been automatically inserted between Child question Q5 and question Q6.&lt;br /&gt;
&lt;br /&gt;
Now continue creating questions normally, until you want to use Conditional branching again.&lt;br /&gt;
&lt;br /&gt;
Here is what your Manage questions section will look like after you have created those first 6 questions.&lt;br /&gt;
[[Image:07-08-2013 17-49-53.jpg]]&lt;br /&gt;
&lt;br /&gt;
==Operations on Conditional branching questions==&lt;br /&gt;
===Move===&lt;br /&gt;
By using the standard Moodle &amp;quot;Move&amp;quot; icon you can move your questionnaire questions to different positions. However, due to the special nature of the questionnaire flow when using the Conditional branching feature, there are restrictions on the new positions that you can move our questions to.&lt;br /&gt;
&lt;br /&gt;
*You cannot move a Parent question &#039;&#039;below&#039;&#039; any of its Child questions.&lt;br /&gt;
&lt;br /&gt;
*You cannot move a Child question &#039;&#039;above&#039;&#039; its Parent question.&lt;br /&gt;
&lt;br /&gt;
*You cannot remove those Page breaks which are needed to ensure a correct flow of dependent questions.&lt;br /&gt;
&lt;br /&gt;
[[Image:07-08-2013 18-04-16.jpg]]&lt;br /&gt;
&lt;br /&gt;
Those restrictions will show on the Manage questions screen where the Move icon is replaced with a &amp;quot;Forbidden&amp;quot; (Moodle &amp;quot;block&amp;quot;) icon. They will also operate when you are in &amp;quot;Move question&amp;quot; mode, where the Move to here icon/placeholder will not be displayed in the &amp;quot;forbidden&amp;quot; positions.&lt;br /&gt;
&lt;br /&gt;
===Edit===&lt;br /&gt;
===Delete===&lt;/div&gt;</summary>
		<author><name>Rezeau</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/25/en/index.php?title=File:07-08-2013_18-04-16.jpg&amp;diff=106298</id>
		<title>File:07-08-2013 18-04-16.jpg</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/25/en/index.php?title=File:07-08-2013_18-04-16.jpg&amp;diff=106298"/>
		<updated>2013-08-07T16:06:37Z</updated>

		<summary type="html">&lt;p&gt;Rezeau: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Rezeau</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/25/en/index.php?title=Questionnaire_Conditional_branching&amp;diff=106297</id>
		<title>Questionnaire Conditional branching</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/25/en/index.php?title=Questionnaire_Conditional_branching&amp;diff=106297"/>
		<updated>2013-08-07T15:55:50Z</updated>

		<summary type="html">&lt;p&gt;Rezeau: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Questionnaire}}&lt;br /&gt;
{{New features}}&lt;br /&gt;
==Overview==&lt;br /&gt;
&lt;br /&gt;
===Definition===&lt;br /&gt;
Conditional branching (or Skip logic) is a feature that changes what question or page a respondent sees next based on how they answer the current question. Conditional branching creates a custom path through the survey that varies based on a respondent’s answers.&lt;br /&gt;
&lt;br /&gt;
===Organization===&lt;br /&gt;
In the Questionnaire plugin, the Conditional branching path is organized through &#039;&#039;pages&#039;&#039;, containing one or more &amp;quot;child&amp;quot; questions depending on a &amp;quot;parent&amp;quot; question.&lt;br /&gt;
&lt;br /&gt;
===Settings===&lt;br /&gt;
If you want to use the Conditional branching feature in a Questionnaire, when you create or edit the questionnaire, in the Response options section of the settings, you must set the &#039;&#039;&#039;Allow branching questions&#039;&#039;&#039; option to &#039;&#039;Yes&#039;&#039;. Please note that this option is set to &#039;&#039;No&#039;&#039; by default.&lt;br /&gt;
&lt;br /&gt;
==A simple example==&lt;br /&gt;
&lt;br /&gt;
===The flow we want to obtain===&lt;br /&gt;
&lt;br /&gt;
*Page 1&lt;br /&gt;
**Question 1 Do you own a car? Yes/No.&lt;br /&gt;
***Answer Yes -&amp;gt; go to page 2&lt;br /&gt;
***Answer No -&amp;gt; go to page 5 (i.e. skip over irrelevant questions in pages 2 through 4)&lt;br /&gt;
*Page 2&lt;br /&gt;
**Question 2: What is the color of your car?&lt;br /&gt;
**Question 3: Did you buy it new or second-hand?&lt;br /&gt;
***Answer new -&amp;gt; go to page 3&lt;br /&gt;
***Answer second-hand -&amp;gt; go to page 4&lt;br /&gt;
*Page 3&lt;br /&gt;
**Question 4: Did you pay your new car cash or did you get a bank loan?&lt;br /&gt;
*Page 4&lt;br /&gt;
**Question 5: Did you buy your second-hand car from a garage or directly from its previous owner?&lt;br /&gt;
*Page 5&lt;br /&gt;
**Question 6: Do you sometimes use public transport to go to work?&lt;br /&gt;
etc.&lt;br /&gt;
&lt;br /&gt;
===Procedure to obtain that flow===&lt;br /&gt;
&lt;br /&gt;
*Create Q1 as a Yes/No question.&lt;br /&gt;
**&#039;&#039;&#039;Question Name&#039;&#039;&#039;: &#039;&#039;own car&#039;&#039;. Note that you &#039;&#039;must&#039;&#039; give your question a name, as this name will be used later on in the Questionnaire to build the list of available Parent questions. Please keep this name as short as possible.&lt;br /&gt;
**&#039;&#039;&#039;Response Required&#039;&#039;&#039;: &#039;&#039;Yes&#039;&#039;. Since you plan to use question Q1 as a Parent question, it would not make sense to set it as non-required.&lt;br /&gt;
**&#039;&#039;&#039;Question Text&#039;&#039;&#039;: &#039;&#039;Do you own a car?&#039;&#039;&lt;br /&gt;
**Save Q1. No Page break will be inserted at this stage because you have not yet used a Parent question to create one or more Child questions.&lt;br /&gt;
&lt;br /&gt;
*Create Q2 as a Text Box question type&lt;br /&gt;
**&#039;&#039;&#039;Question Name&#039;&#039;&#039;: optional&lt;br /&gt;
**&#039;&#039;&#039;Response Required&#039;&#039;&#039;: &#039;&#039;Yes&#039;&#039; or &#039;&#039;No&#039;&#039; (depending on what you want to do with that question&#039;s answers later on).&lt;br /&gt;
**&#039;&#039;&#039;Parent Question&#039;&#039;&#039; : &#039;&#039;own car-&amp;gt;Yes&#039;&#039;. The Parent question (Q1) option offers 2 choices, since it is a Yes/No question.&lt;br /&gt;
**&#039;&#039;&#039;Question Text&#039;&#039;&#039;: &#039;&#039;What is the colour of your car?&#039;&#039;&lt;br /&gt;
**Save Q2. Upon saving Child question Q2 you notice that a Page break has been automatically inserted between the Parent question Q1 and its Child question Q2.&lt;br /&gt;
&lt;br /&gt;
*Create Q3 as a Radio Buttons (or Dropdown Box) question type&lt;br /&gt;
**&#039;&#039;&#039;Question Name&#039;&#039;&#039;: &#039;&#039;car status&#039;&#039;&lt;br /&gt;
**&#039;&#039;&#039;Response Required&#039;&#039;&#039;: &#039;&#039;Yes&#039;&#039;. We are giving question Q3 a name and setting it as Required because we plan to use it as a Parent question.&lt;br /&gt;
**&#039;&#039;&#039;Parent Question&#039;&#039;&#039;: own car-&amp;gt;Yes&lt;br /&gt;
**&#039;&#039;&#039;Question Text&#039;&#039;&#039;: Did you buy it new or second-hand?&lt;br /&gt;
**&#039;&#039;&#039;Possible answers&#039;&#039;&#039;:&lt;br /&gt;
***&#039;&#039;new::I bought it new&#039;&#039;&lt;br /&gt;
***&#039;&#039;used::I bought it second-hand&#039;&#039;. &lt;br /&gt;
**Please note that in the Possible answers field we are using the &amp;quot;short label&amp;quot; feature. You should use this feature if the full text of your Possible answers choices is fairly long.&lt;br /&gt;
**Save Q3. Upon saving Child question Q3 you notice that no Page break has been inserted. This is because both Q2 and Q3 are Child questions of the same Parent question Q1 and thus will be displayed on the same page of the questionnaire.&lt;br /&gt;
&lt;br /&gt;
*Create Q4 as a Radio Buttons question type&lt;br /&gt;
**&#039;&#039;&#039;Question Name&#039;&#039;&#039;: optional&lt;br /&gt;
**&#039;&#039;&#039;Response Required&#039;&#039;&#039;: Yes or No&lt;br /&gt;
**&#039;&#039;&#039;Parent Question&#039;&#039;&#039;: car status-&amp;gt;new&lt;br /&gt;
&lt;br /&gt;
**Please note that the list of potential Parent question choices displays the &amp;quot;short label&amp;quot; that we entered for the Possible answers in Q3, instead of the full text.&lt;br /&gt;
&lt;br /&gt;
**&#039;&#039;&#039;Question Text&#039;&#039;&#039;: How did you pay for your new car?&lt;br /&gt;
**&#039;&#039;&#039;Possible answers&#039;&#039;&#039;:&lt;br /&gt;
***&#039;&#039;I paid cash&#039;&#039;&lt;br /&gt;
***&#039;&#039;I got a bank loan&#039;&#039;&lt;br /&gt;
**Save Q4. Upon saving Child question Q4 you notice that a Page break has been automatically inserted between Parent question Q3 and its Child question Q4.&lt;br /&gt;
&lt;br /&gt;
*Create Q5 as a Radio Buttons question type&lt;br /&gt;
**&#039;&#039;&#039;Question Name&#039;&#039;&#039;: optional&lt;br /&gt;
**&#039;&#039;&#039;Response Required&#039;&#039;&#039;: Yes or No&lt;br /&gt;
**&#039;&#039;&#039;Parent Question&#039;&#039;&#039;: car status-&amp;gt;used&lt;br /&gt;
**&#039;&#039;&#039;Question Text&#039;&#039;&#039;: Where did you buy your second-hand car? &lt;br /&gt;
**&#039;&#039;&#039;Possible answers&#039;&#039;&#039;:&lt;br /&gt;
***&#039;&#039;I bought it from a garage&#039;&#039;&lt;br /&gt;
***&#039;&#039;I bought it directly from its previous owner&#039;&#039;&lt;br /&gt;
**Save Q5. Upon saving Child question Q5 you notice that a Page break has been automatically inserted between Child question Q4 and Child question Q5 because these two question do not have the same Parent question.&lt;br /&gt;
&lt;br /&gt;
*Create Q6 as YES/NO question type.&lt;br /&gt;
**&#039;&#039;&#039;Question Name&#039;&#039;&#039;: optional&lt;br /&gt;
**&#039;&#039;&#039;Response Required&#039;&#039;&#039;: Yes or No&lt;br /&gt;
**&#039;&#039;&#039;Parent Question&#039;&#039;&#039;: None. &amp;lt;br /&amp;gt;Question 6 is not dependent on any of the previous questions, and it will be displayed to the questionnaire respondent regardless of their previous answers.&lt;br /&gt;
**&#039;&#039;&#039;Question Text&#039;&#039;&#039;: Do you sometimes use public transport to go to work?&lt;br /&gt;
**Save Q6. Upon saving question Q6 you notice that a Page break has been automatically inserted between Child question Q5 and question Q6.&lt;br /&gt;
&lt;br /&gt;
Now continue creating questions normally, until you want to use Conditional branching again.&lt;br /&gt;
&lt;br /&gt;
Here is what your Manage questions section will look like after you have created those first 6 questions.&lt;br /&gt;
[[Image:07-08-2013 17-49-53.jpg]]&lt;br /&gt;
&lt;br /&gt;
==Operations on Conditional branching questions==&lt;br /&gt;
===Move===&lt;br /&gt;
===Edit===&lt;br /&gt;
===Delete===&lt;/div&gt;</summary>
		<author><name>Rezeau</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/25/en/index.php?title=Questionnaire_Conditional_branching&amp;diff=106296</id>
		<title>Questionnaire Conditional branching</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/25/en/index.php?title=Questionnaire_Conditional_branching&amp;diff=106296"/>
		<updated>2013-08-07T15:52:30Z</updated>

		<summary type="html">&lt;p&gt;Rezeau: /* Procedure to obtain that flow */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Questionnaire}}&lt;br /&gt;
{{New features}}&lt;br /&gt;
==Overview==&lt;br /&gt;
&lt;br /&gt;
===Definition===&lt;br /&gt;
Conditional branching (or Skip logic) is a feature that changes what question or page a respondent sees next based on how they answer the current question. Conditional branching creates a custom path through the survey that varies based on a respondent’s answers.&lt;br /&gt;
&lt;br /&gt;
===Organization===&lt;br /&gt;
In the Questionnaire plugin, the Conditional branching path is organized through &#039;&#039;pages&#039;&#039;, containing one or more &amp;quot;child&amp;quot; questions depending on a &amp;quot;parent&amp;quot; question.&lt;br /&gt;
&lt;br /&gt;
===Settings===&lt;br /&gt;
If you want to use the Conditional branching feature in a Questionnaire, when you create or edit the questionnaire, in the Response options section of the settings, you must set the &#039;&#039;&#039;Allow branching questions&#039;&#039;&#039; option to &#039;&#039;Yes&#039;&#039;. Please note that this option is set to &#039;&#039;No&#039;&#039; by default.&lt;br /&gt;
&lt;br /&gt;
==A simple example==&lt;br /&gt;
&lt;br /&gt;
===The flow we want to obtain===&lt;br /&gt;
&lt;br /&gt;
*Page 1&lt;br /&gt;
**Question 1 Do you own a car? Yes/No.&lt;br /&gt;
***Answer Yes -&amp;gt; go to page 2&lt;br /&gt;
***Answer No -&amp;gt; go to page 5 (i.e. skip over irrelevant questions in pages 2 through 4)&lt;br /&gt;
*Page 2&lt;br /&gt;
**Question 2: What is the color of your car?&lt;br /&gt;
**Question 3: Did you buy it new or second-hand?&lt;br /&gt;
***Answer new -&amp;gt; go to page 3&lt;br /&gt;
***Answer second-hand -&amp;gt; go to page 4&lt;br /&gt;
*Page 3&lt;br /&gt;
**Question 4: Did you pay your new car cash or did you get a bank loan?&lt;br /&gt;
*Page 4&lt;br /&gt;
**Question 5: Did you buy your second-hand car from a garage or directly from its previous owner?&lt;br /&gt;
*Page 5&lt;br /&gt;
**Question 6: Do you sometimes use public transport to go to work?&lt;br /&gt;
etc.&lt;br /&gt;
&lt;br /&gt;
===Procedure to obtain that flow===&lt;br /&gt;
&lt;br /&gt;
*Create Q1 as a Yes/No question.&lt;br /&gt;
**&#039;&#039;&#039;Question Name&#039;&#039;&#039;: &#039;&#039;own car&#039;&#039;. Note that you &#039;&#039;must&#039;&#039; give your question a name, as this name will be used later on in the Questionnaire to build the list of available Parent questions. Please keep this name as short as possible.&lt;br /&gt;
**&#039;&#039;&#039;Response Required&#039;&#039;&#039;: &#039;&#039;Yes&#039;&#039;. Since you plan to use question Q1 as a Parent question, it would not make sense to set it as non-required.&lt;br /&gt;
**&#039;&#039;&#039;Question Text&#039;&#039;&#039;: &#039;&#039;Do you own a car?&#039;&#039;&lt;br /&gt;
**Save Q1. No Page break will be inserted at this stage because you have not yet used a Parent question to create one or more Child questions.&lt;br /&gt;
&lt;br /&gt;
*Create Q2 as a Text Box question type&lt;br /&gt;
**&#039;&#039;&#039;Question Name&#039;&#039;&#039;: optional&lt;br /&gt;
**&#039;&#039;&#039;Response Required&#039;&#039;&#039;: &#039;&#039;Yes&#039;&#039; or &#039;&#039;No&#039;&#039; (depending on what you want to do with that question&#039;s answers later on).&lt;br /&gt;
**&#039;&#039;&#039;Parent Question&#039;&#039;&#039; : &#039;&#039;own car-&amp;gt;Yes&#039;&#039;. The Parent question (Q1) option offers 2 choices, since it is a Yes/No question.&lt;br /&gt;
**&#039;&#039;&#039;Question Text&#039;&#039;&#039;: &#039;&#039;What is the colour of your car?&#039;&#039;&lt;br /&gt;
**Save Q2. Upon saving Child question Q2 you notice that a Page break has been automatically inserted between the Parent question Q1 and its Child question Q2.&lt;br /&gt;
&lt;br /&gt;
*Create Q3 as a Radio Buttons (or Dropdown Box) question type&lt;br /&gt;
**&#039;&#039;&#039;Question Name&#039;&#039;&#039;: &#039;&#039;car status&#039;&#039;&lt;br /&gt;
**&#039;&#039;&#039;Response Required&#039;&#039;&#039;: &#039;&#039;Yes&#039;&#039;. We are giving question Q3 a name and setting it as Required because we plan to use it as a Parent question.&lt;br /&gt;
**&#039;&#039;&#039;Parent Question&#039;&#039;&#039;: own car-&amp;gt;Yes&lt;br /&gt;
**&#039;&#039;&#039;Question Text&#039;&#039;&#039;: Did you buy it new or second-hand?&lt;br /&gt;
**&#039;&#039;&#039;Possible answers&#039;&#039;&#039;:&lt;br /&gt;
***&#039;&#039;new::I bought it new&#039;&#039;&lt;br /&gt;
***&#039;&#039;used::I bought it second-hand&#039;&#039;. &lt;br /&gt;
**Please note that in the Possible answers field we are using the &amp;quot;short label&amp;quot; feature. You should use this feature if the full text of your Possible answers choices is fairly long.&lt;br /&gt;
**Save Q3. Upon saving Child question Q3 you notice that no Page break has been inserted. This is because both Q2 and Q3 are Child questions of the same Parent question Q1 and thus will be displayed on the same page of the questionnaire.&lt;br /&gt;
&lt;br /&gt;
*Create Q4 as a Radio Buttons question type&lt;br /&gt;
**&#039;&#039;&#039;Question Name&#039;&#039;&#039;: optional&lt;br /&gt;
**&#039;&#039;&#039;Response Required&#039;&#039;&#039;: Yes or No&lt;br /&gt;
**&#039;&#039;&#039;Parent Question&#039;&#039;&#039;: car status-&amp;gt;new&lt;br /&gt;
&lt;br /&gt;
**Please note that the list of potential Parent question choices displays the &amp;quot;short label&amp;quot; that we entered for the Possible answers in Q3, instead of the full text.&lt;br /&gt;
&lt;br /&gt;
**&#039;&#039;&#039;Question Text&#039;&#039;&#039;: How did you pay for your new car?&lt;br /&gt;
**&#039;&#039;&#039;Possible answers&#039;&#039;&#039;:&lt;br /&gt;
***&#039;&#039;I paid cash&#039;&#039;&lt;br /&gt;
***&#039;&#039;I got a bank loan&#039;&#039;&lt;br /&gt;
**Save Q4. Upon saving Child question Q4 you notice that a Page break has been automatically inserted between Parent question Q3 and its Child question Q4.&lt;br /&gt;
&lt;br /&gt;
*Create Q5 as a Radio Buttons question type&lt;br /&gt;
**&#039;&#039;&#039;Question Name&#039;&#039;&#039;: optional&lt;br /&gt;
**&#039;&#039;&#039;Response Required&#039;&#039;&#039;: Yes or No&lt;br /&gt;
**&#039;&#039;&#039;Parent Question&#039;&#039;&#039;: car status-&amp;gt;used&lt;br /&gt;
**&#039;&#039;&#039;Question Text&#039;&#039;&#039;: Where did you buy your second-hand car? &lt;br /&gt;
**&#039;&#039;&#039;Possible answers&#039;&#039;&#039;:&lt;br /&gt;
***&#039;&#039;I bought it from a garage&#039;&#039;&lt;br /&gt;
***&#039;&#039;I bought it directly from its previous owner&#039;&#039;&lt;br /&gt;
**Save Q5. Upon saving Child question Q5 you notice that a Page break has been automatically inserted between Child question Q4 and Child question Q5 because these two question do not have the same Parent question.&lt;br /&gt;
&lt;br /&gt;
*Create Q6 as YES/NO question type.&lt;br /&gt;
**&#039;&#039;&#039;Question Name&#039;&#039;&#039;: optional&lt;br /&gt;
**&#039;&#039;&#039;Response Required&#039;&#039;&#039;: Yes or No&lt;br /&gt;
**&#039;&#039;&#039;Parent Question&#039;&#039;&#039;: None. &amp;lt;br /&amp;gt;Question 6 is not dependent on any of the previous questions, and it will be displayed to the questionnaire respondent regardless of their previous answers.&lt;br /&gt;
**&#039;&#039;&#039;Question Text&#039;&#039;&#039;: Do you sometimes use public transport to go to work?&lt;br /&gt;
**Save Q6. Upon saving question Q6 you notice that a Page break has been automatically inserted between Child question Q5 and question Q6.&lt;br /&gt;
&lt;br /&gt;
Now continue creating questions normally, until you want to use Conditional branching again.&lt;br /&gt;
&lt;br /&gt;
Here is what your Manage questions section will look like after you have created those first 6 questions.&lt;br /&gt;
[[Image:07-08-2013 17-49-53.jpg]]&lt;/div&gt;</summary>
		<author><name>Rezeau</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/25/en/index.php?title=File:07-08-2013_17-49-53.jpg&amp;diff=106295</id>
		<title>File:07-08-2013 17-49-53.jpg</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/25/en/index.php?title=File:07-08-2013_17-49-53.jpg&amp;diff=106295"/>
		<updated>2013-08-07T15:51:42Z</updated>

		<summary type="html">&lt;p&gt;Rezeau: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Rezeau</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/25/en/index.php?title=File:07-08-2013_17-39-37.jpg&amp;diff=106294</id>
		<title>File:07-08-2013 17-39-37.jpg</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/25/en/index.php?title=File:07-08-2013_17-39-37.jpg&amp;diff=106294"/>
		<updated>2013-08-07T15:41:12Z</updated>

		<summary type="html">&lt;p&gt;Rezeau: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Rezeau</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/25/en/index.php?title=Questionnaire_Conditional_branching&amp;diff=106292</id>
		<title>Questionnaire Conditional branching</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/25/en/index.php?title=Questionnaire_Conditional_branching&amp;diff=106292"/>
		<updated>2013-08-07T09:22:14Z</updated>

		<summary type="html">&lt;p&gt;Rezeau: /* Procedure to obtain that flow */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Questionnaire}}&lt;br /&gt;
{{New features}}&lt;br /&gt;
==Overview==&lt;br /&gt;
&lt;br /&gt;
===Definition===&lt;br /&gt;
Conditional branching (or Skip logic) is a feature that changes what question or page a respondent sees next based on how they answer the current question. Conditional branching creates a custom path through the survey that varies based on a respondent’s answers.&lt;br /&gt;
&lt;br /&gt;
===Organization===&lt;br /&gt;
In the Questionnaire plugin, the Conditional branching path is organized through &#039;&#039;pages&#039;&#039;, containing one or more &amp;quot;child&amp;quot; questions depending on a &amp;quot;parent&amp;quot; question.&lt;br /&gt;
&lt;br /&gt;
===Settings===&lt;br /&gt;
If you want to use the Conditional branching feature in a Questionnaire, when you create or edit the questionnaire, in the Response options section of the settings, you must set the &#039;&#039;&#039;Allow branching questions&#039;&#039;&#039; option to &#039;&#039;Yes&#039;&#039;. Please note that this option is set to &#039;&#039;No&#039;&#039; by default.&lt;br /&gt;
&lt;br /&gt;
==A simple example==&lt;br /&gt;
&lt;br /&gt;
===The flow we want to obtain===&lt;br /&gt;
&lt;br /&gt;
*Page 1&lt;br /&gt;
**Question 1 Do you own a car? Yes/No.&lt;br /&gt;
***Answer Yes -&amp;gt; go to page 2&lt;br /&gt;
***Answer No -&amp;gt; go to page 5 (i.e. skip over irrelevant questions in pages 2 through 4)&lt;br /&gt;
*Page 2&lt;br /&gt;
**Question 2: What is the color of your car?&lt;br /&gt;
**Question 3: Did you buy it new or second-hand?&lt;br /&gt;
***Answer new -&amp;gt; go to page 3&lt;br /&gt;
***Answer second-hand -&amp;gt; go to page 4&lt;br /&gt;
*Page 3&lt;br /&gt;
**Question 4: Did you pay your new car cash or did you get a bank loan?&lt;br /&gt;
*Page 4&lt;br /&gt;
**Question 5: Did you buy your second-hand car from a garage or directly from its previous owner?&lt;br /&gt;
*Page 5&lt;br /&gt;
**Question 6: Do you sometimes use public transport to go to work?&lt;br /&gt;
etc.&lt;br /&gt;
&lt;br /&gt;
===Procedure to obtain that flow===&lt;br /&gt;
&lt;br /&gt;
*Create Q1 as a Yes/No question.&lt;br /&gt;
**&#039;&#039;&#039;Question Name&#039;&#039;&#039;: &#039;&#039;own car&#039;&#039;. Note that you &#039;&#039;must&#039;&#039; give your question a name, as this name will be used later on in the Questionnaire to build the list of available Parent questions. Please keep this name as short as possible.&lt;br /&gt;
**&#039;&#039;&#039;Response Required&#039;&#039;&#039;: &#039;&#039;Yes&#039;&#039;. Since you plan to use question Q1 as a Parent question, it would not make sense to set it as non-required.&lt;br /&gt;
**&#039;&#039;&#039;Question Text&#039;&#039;&#039;: &#039;&#039;Do you own a car?&#039;&#039;&lt;br /&gt;
**Save Q1. No Page break will be inserted at this stage because you have not yet used a Parent question to create one or more Child questions.&lt;br /&gt;
&lt;br /&gt;
*Create Q2 as a Text Box question type&lt;br /&gt;
**&#039;&#039;&#039;Question Name&#039;&#039;&#039;: optional&lt;br /&gt;
**&#039;&#039;&#039;Response Required&#039;&#039;&#039;: &#039;&#039;Yes&#039;&#039; or &#039;&#039;No&#039;&#039; (depending on what you want to do with that question&#039;s answers later on).&lt;br /&gt;
**&#039;&#039;&#039;Parent Question&#039;&#039;&#039; : &#039;&#039;own car-&amp;gt;Yes&#039;&#039;. The Parent question (Q1) option offers 2 choices, since it is a Yes/No question.&lt;br /&gt;
**&#039;&#039;&#039;Question Text&#039;&#039;&#039;: &#039;&#039;What is the colour of your car?&#039;&#039;&lt;br /&gt;
**Save Q2. Upon saving Child question Q2 you notice that a Page break has been automatically inserted between the Parent question Q1 and its Child question Q2.&lt;br /&gt;
&lt;br /&gt;
*Create Q3 as a Radio Buttons (or Dropdown Box) question type&lt;br /&gt;
**&#039;&#039;&#039;Question Name&#039;&#039;&#039;: &#039;&#039;car status&#039;&#039;&lt;br /&gt;
**&#039;&#039;&#039;Response Required&#039;&#039;&#039;: &#039;&#039;Yes&#039;&#039;. We are giving question Q3 a name and setting it as Required because we plan to use it as a Parent question.&lt;br /&gt;
**&#039;&#039;&#039;Parent Question&#039;&#039;&#039;: own car-&amp;gt;Yes&lt;br /&gt;
**&#039;&#039;&#039;Question Text&#039;&#039;&#039;: Did you buy it new or second-hand?&lt;br /&gt;
**&#039;&#039;&#039;Possible answers&#039;&#039;&#039;:&lt;br /&gt;
***&#039;&#039;new::I bought it new&#039;&#039;&lt;br /&gt;
***&#039;&#039;used::I bought it second-hand&#039;&#039;. &lt;br /&gt;
**Please note that in the Possible answers field we are using the &amp;quot;short label&amp;quot; feature. You should use this feature if the full text of your Possible answers choices is fairly long.&lt;br /&gt;
**Save Q3. Upon saving Child question Q3 you notice that no Page break has been inserted. This is because both Q2 and Q3 are Child questions of the same Parent question Q1 and thus will be displayed on the same page of the questionnaire.&lt;br /&gt;
&lt;br /&gt;
*Create Q4 as a Radio Buttons question type&lt;br /&gt;
**&#039;&#039;&#039;Question Name&#039;&#039;&#039;: optional&lt;br /&gt;
**&#039;&#039;&#039;Response Required&#039;&#039;&#039;: Yes or No&lt;br /&gt;
**&#039;&#039;&#039;Parent Question&#039;&#039;&#039;: car status-&amp;gt;new&lt;br /&gt;
&lt;br /&gt;
**Please note that the list of potential Parent question choices displays the &amp;quot;short label&amp;quot; that we entered for the Possible answers in Q3, instead of the full text.&lt;br /&gt;
&lt;br /&gt;
**&#039;&#039;&#039;Question Text&#039;&#039;&#039;: How did you pay for your new car?&lt;br /&gt;
**&#039;&#039;&#039;Possible answers&#039;&#039;&#039;:&lt;br /&gt;
***&#039;&#039;I paid cash&#039;&#039;&lt;br /&gt;
***&#039;&#039;I got a bank loan&#039;&#039;&lt;br /&gt;
**Save Q4. Upon saving Child question Q4 you notice that a Page break has been automatically inserted between Parent question Q3 and its Child question Q4.&lt;br /&gt;
&lt;br /&gt;
*Create Q5 as a Radio Buttons question type&lt;br /&gt;
**&#039;&#039;&#039;Question Name&#039;&#039;&#039;: optional&lt;br /&gt;
**&#039;&#039;&#039;Response Required&#039;&#039;&#039;: Yes or No&lt;br /&gt;
**&#039;&#039;&#039;Parent Question&#039;&#039;&#039;: car status-&amp;gt;used&lt;br /&gt;
**&#039;&#039;&#039;Question Text&#039;&#039;&#039;: Where did you buy your second-hand car? &lt;br /&gt;
**&#039;&#039;&#039;Possible answers&#039;&#039;&#039;:&lt;br /&gt;
***&#039;&#039;I bought it from a garage&#039;&#039;&lt;br /&gt;
***&#039;&#039;I bought it directly from its previous owner&#039;&#039;&lt;br /&gt;
**Save Q5. Upon saving Child question Q5 you notice that a Page break has been automatically inserted between Child question Q4 and Child question Q5 because these two question do not have the same Parent question.&lt;br /&gt;
&lt;br /&gt;
*Create Q6 as YES/NO question type.&lt;br /&gt;
**&#039;&#039;&#039;Question Name&#039;&#039;&#039;: optional&lt;br /&gt;
**&#039;&#039;&#039;Response Required&#039;&#039;&#039;: Yes or No&lt;br /&gt;
**&#039;&#039;&#039;Parent Question&#039;&#039;&#039;: None. &amp;lt;br /&amp;gt;Question 6 is not dependent on any of the previous questions, and it will be displayed to the questionnaire respondent regardless of their previous answers.&lt;br /&gt;
**&#039;&#039;&#039;Question Text&#039;&#039;&#039;: Do you sometimes use public transport to go to work?&lt;br /&gt;
**Save Q6. Upon saving question Q6 you notice that a Page break has been automatically inserted between Child question Q5 and question Q6.&lt;br /&gt;
&lt;br /&gt;
Now continue creating questions normally, until you want to use Conditional branching again.&lt;/div&gt;</summary>
		<author><name>Rezeau</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/25/en/index.php?title=Questionnaire_Conditional_branching&amp;diff=106291</id>
		<title>Questionnaire Conditional branching</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/25/en/index.php?title=Questionnaire_Conditional_branching&amp;diff=106291"/>
		<updated>2013-08-07T08:31:44Z</updated>

		<summary type="html">&lt;p&gt;Rezeau: /* Procedure to obtain that flow */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Questionnaire}}&lt;br /&gt;
{{New features}}&lt;br /&gt;
==Overview==&lt;br /&gt;
&lt;br /&gt;
===Definition===&lt;br /&gt;
Conditional branching (or Skip logic) is a feature that changes what question or page a respondent sees next based on how they answer the current question. Conditional branching creates a custom path through the survey that varies based on a respondent’s answers.&lt;br /&gt;
&lt;br /&gt;
===Organization===&lt;br /&gt;
In the Questionnaire plugin, the Conditional branching path is organized through &#039;&#039;pages&#039;&#039;, containing one or more &amp;quot;child&amp;quot; questions depending on a &amp;quot;parent&amp;quot; question.&lt;br /&gt;
&lt;br /&gt;
===Settings===&lt;br /&gt;
If you want to use the Conditional branching feature in a Questionnaire, when you create or edit the questionnaire, in the Response options section of the settings, you must set the &#039;&#039;&#039;Allow branching questions&#039;&#039;&#039; option to &#039;&#039;Yes&#039;&#039;. Please note that this option is set to &#039;&#039;No&#039;&#039; by default.&lt;br /&gt;
&lt;br /&gt;
==A simple example==&lt;br /&gt;
&lt;br /&gt;
===The flow we want to obtain===&lt;br /&gt;
&lt;br /&gt;
*Page 1&lt;br /&gt;
**Question 1 Do you own a car? Yes/No.&lt;br /&gt;
***Answer Yes -&amp;gt; go to page 2&lt;br /&gt;
***Answer No -&amp;gt; go to page 5 (i.e. skip over irrelevant questions in pages 2 through 4)&lt;br /&gt;
*Page 2&lt;br /&gt;
**Question 2: What is the color of your car?&lt;br /&gt;
**Question 3: Did you buy it new or second-hand?&lt;br /&gt;
***Answer new -&amp;gt; go to page 3&lt;br /&gt;
***Answer second-hand -&amp;gt; go to page 4&lt;br /&gt;
*Page 3&lt;br /&gt;
**Question 4: Did you pay your new car cash or did you get a bank loan?&lt;br /&gt;
*Page 4&lt;br /&gt;
**Question 5: Did you buy your second-hand car from a garage or directly from its previous owner?&lt;br /&gt;
*Page 5&lt;br /&gt;
**Question 6: Do you sometimes use public transport to go to work?&lt;br /&gt;
etc.&lt;br /&gt;
&lt;br /&gt;
===Procedure to obtain that flow===&lt;br /&gt;
&lt;br /&gt;
*Create Q1 as a Yes/No question.&lt;br /&gt;
**&#039;&#039;&#039;Question Name&#039;&#039;&#039;: &#039;&#039;own car&#039;&#039;. Note that you &#039;&#039;must&#039;&#039; give your question a name, as this name will be used later on in the Questionnaire to build the list of available Parent questions. Please keep this name as short as possible.&lt;br /&gt;
**&#039;&#039;&#039;Response Required&#039;&#039;&#039;: &#039;&#039;Yes&#039;&#039;. Since you plan to use question Q1 as a Parent question, it would not make sense to set it as non-required.&lt;br /&gt;
**&#039;&#039;&#039;Question Text&#039;&#039;&#039;: &#039;&#039;Do you own a car?&#039;&#039;&lt;br /&gt;
**Save Q1. No Page break will be inserted at this stage because you have not yet used a Parent question to create one or more Child questions.&lt;br /&gt;
&lt;br /&gt;
*Create Q2 as a Text Box question type&lt;br /&gt;
**&#039;&#039;&#039;Question Name&#039;&#039;&#039;: optional&lt;br /&gt;
**&#039;&#039;&#039;Response Required&#039;&#039;&#039;: &#039;&#039;Yes&#039;&#039; or &#039;&#039;No&#039;&#039; (depending on what you want to do with that question&#039;s answers later on).&lt;br /&gt;
**&#039;&#039;&#039;Parent Question&#039;&#039;&#039; : &#039;&#039;own car-&amp;gt;Yes&#039;&#039;. The Parent question (Q1) option offers 2 choices, since it is a Yes/No question.&lt;br /&gt;
**&#039;&#039;&#039;Question Text&#039;&#039;&#039;: &#039;&#039;What is the colour of your car?&#039;&#039;&lt;br /&gt;
**Save Q2. Upon saving Child question Q2 you notice that a Page break has been automatically inserted between the Parent question Q1 and its Child question Q2.&lt;br /&gt;
&lt;br /&gt;
*Create Q3 as a Radio Buttons (or Dropdown Box) question type&lt;br /&gt;
**&#039;&#039;&#039;Question Name&#039;&#039;&#039;: &#039;&#039;car status&#039;&#039;&lt;br /&gt;
**&#039;&#039;&#039;Response Required&#039;&#039;&#039;: &#039;&#039;Yes&#039;&#039;. We are giving question Q3 a name and setting it as Required because we plan to use it as a Parent question.&lt;br /&gt;
**&#039;&#039;&#039;Parent Question&#039;&#039;&#039;: own car-&amp;gt;Yes&lt;br /&gt;
**&#039;&#039;&#039;Question Text&#039;&#039;&#039;: Did you buy it new or second-hand?&lt;br /&gt;
**&#039;&#039;&#039;Possible answers&#039;&#039;&#039;:&lt;br /&gt;
***&#039;&#039;new&#039;&#039;&lt;br /&gt;
***&#039;&#039;second-hand&#039;&#039;&lt;br /&gt;
**Save Q3. Upon saving Child question Q3 you notice that no Page break has been inserted. This is because both Q2 and Q3 are Child questions of the same Parent question Q1 and thus will be displayed on the same page of the questionnaire.&lt;br /&gt;
&lt;br /&gt;
Create Q4 as a Text Box question type&lt;br /&gt;
Question Name: optional&lt;br /&gt;
Response Required: Yes or No&lt;br /&gt;
Parent Question : car status-&amp;gt;new&lt;br /&gt;
Question Text: Why did you buy your car new?&lt;br /&gt;
&lt;br /&gt;
Create Q5 as a Text Box question type&lt;br /&gt;
Question Name: optional&lt;br /&gt;
Response Required: Yes or No&lt;br /&gt;
Parent Question : car status-&amp;gt;second-hand&lt;br /&gt;
Question Text: Why did you buy your car second-hand?&lt;br /&gt;
&lt;br /&gt;
Question 6 (see above). Now continue creating questions normally, until you want to use Skip Logic again.&lt;/div&gt;</summary>
		<author><name>Rezeau</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/25/en/index.php?title=Questionnaire_Conditional_branching&amp;diff=106284</id>
		<title>Questionnaire Conditional branching</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/25/en/index.php?title=Questionnaire_Conditional_branching&amp;diff=106284"/>
		<updated>2013-08-05T22:08:27Z</updated>

		<summary type="html">&lt;p&gt;Rezeau: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Questionnaire}}&lt;br /&gt;
{{New features}}&lt;br /&gt;
==Overview==&lt;br /&gt;
&lt;br /&gt;
===Definition===&lt;br /&gt;
Conditional branching (or Skip logic) is a feature that changes what question or page a respondent sees next based on how they answer the current question. Conditional branching creates a custom path through the survey that varies based on a respondent’s answers.&lt;br /&gt;
&lt;br /&gt;
===Organization===&lt;br /&gt;
In the Questionnaire plugin, the Conditional branching path is organized through &#039;&#039;pages&#039;&#039;, containing one or more &amp;quot;child&amp;quot; questions depending on a &amp;quot;parent&amp;quot; question.&lt;br /&gt;
&lt;br /&gt;
===Settings===&lt;br /&gt;
If you want to use the Conditional branching feature in a Questionnaire, when you create or edit the questionnaire, in the Response options section of the settings, you must set the &#039;&#039;&#039;Allow branching questions&#039;&#039;&#039; option to &#039;&#039;Yes&#039;&#039;. Please note that this option is set to &#039;&#039;No&#039;&#039; by default.&lt;br /&gt;
&lt;br /&gt;
==A simple example==&lt;br /&gt;
&lt;br /&gt;
===The flow we want to obtain===&lt;br /&gt;
&lt;br /&gt;
*Page 1&lt;br /&gt;
**Question 1 Do you own a car? Yes/No.&lt;br /&gt;
***Answer Yes -&amp;gt; go to page 2&lt;br /&gt;
***Answer No -&amp;gt; go to page 5 (i.e. skip over irrelevant questions in pages 2 through 4)&lt;br /&gt;
*Page 2&lt;br /&gt;
**Question 2: What is the color of your car?&lt;br /&gt;
**Question 3: Did you buy it new or second-hand?&lt;br /&gt;
***Answer new -&amp;gt; go to page 3&lt;br /&gt;
***Answer second-hand -&amp;gt; go to page 4&lt;br /&gt;
*Page 3&lt;br /&gt;
**Question 4: Did you pay your new car cash or did you get a bank loan?&lt;br /&gt;
*Page 4&lt;br /&gt;
**Question 5: Did you buy your second-hand car from a garage or directly from its previous owner?&lt;br /&gt;
*Page 5&lt;br /&gt;
**Question 6: Do you sometimes use public transport to go to work?&lt;br /&gt;
etc.&lt;br /&gt;
&lt;br /&gt;
===Procedure to obtain that flow===&lt;br /&gt;
&lt;br /&gt;
*Create Q1 as a Yes/No question.&lt;br /&gt;
**&#039;&#039;&#039;Question Name&#039;&#039;&#039;: &#039;&#039;own car&#039;&#039;. Note that you &#039;&#039;must&#039;&#039; give your question a name, as this name will be used later on in the Questionnaire to build the list of available Parent questions. Please make this name as short as possible.&lt;br /&gt;
**&#039;&#039;&#039;Response Required&#039;&#039;&#039;: &#039;&#039;Yes&#039;&#039;. Since you plan to use question Q1 as a Parent question, it would not make sense to set it as non-required.&lt;br /&gt;
**&#039;&#039;&#039;Question Text&#039;&#039;&#039;: &#039;&#039;Do you own a car?&#039;&#039;&lt;br /&gt;
**Save Q1. No Page break will be inserted at this stage because you have not yet used a Parent question to create one or more Child questions.&lt;br /&gt;
&lt;br /&gt;
*Create Q2 as a Text Box question type&lt;br /&gt;
**Question Name: optional&lt;br /&gt;
***&#039;&#039;&#039;Response Required&#039;&#039;&#039;: &#039;&#039;Yes&#039;&#039; or &#039;&#039;No&#039;&#039;&lt;br /&gt;
**&#039;&#039;&#039;Parent Question&#039;&#039;&#039; : &#039;&#039;own car-&amp;gt;Yes&#039;&#039;. The Parent question option offers 2 choices, since it is a Yes/No question.&lt;br /&gt;
**&#039;&#039;&#039;Question Text&#039;&#039;&#039;: &#039;&#039;What is the colour of your car?&#039;&#039;&lt;br /&gt;
*Save Q2. Upon saving Child question Q2 you will notice that a Page break has been automatically inserted between the Parent question Q1 and its Child question Q2.&lt;br /&gt;
&lt;br /&gt;
*Create Q3 as a Radio buttons (or Dropdown box) question type&lt;br /&gt;
**&#039;&#039;&#039;Question Name&#039;&#039;&#039;: &#039;&#039;car status&#039;&#039;&lt;br /&gt;
**&#039;&#039;&#039;Response Required&#039;&#039;&#039;: &#039;&#039;Yes&#039;&#039;. We are giving question Q3 a name and setting it as Required because we plan to use it as a Parent question.&lt;br /&gt;
Parent Question : own car-&amp;gt;Yes&lt;br /&gt;
Question Text: Did you buy it new or second-hand?&lt;br /&gt;
Possible answers:&lt;br /&gt;
new&lt;br /&gt;
second-hand&lt;br /&gt;
&lt;br /&gt;
Create Q4 as a Text Box question type&lt;br /&gt;
Question Name: optional&lt;br /&gt;
Response Required: Yes or No&lt;br /&gt;
Parent Question : car status-&amp;gt;new&lt;br /&gt;
Question Text: Why did you buy your car new?&lt;br /&gt;
&lt;br /&gt;
Create Q5 as a Text Box question type&lt;br /&gt;
Question Name: optional&lt;br /&gt;
Response Required: Yes or No&lt;br /&gt;
Parent Question : car status-&amp;gt;second-hand&lt;br /&gt;
Question Text: Why did you buy your car second-hand?&lt;br /&gt;
&lt;br /&gt;
Question 6 (see above). Now continue creating questions normally, until you want to use Skip Logic again.&lt;/div&gt;</summary>
		<author><name>Rezeau</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/25/en/index.php?title=Questionnaire_Conditional_branching&amp;diff=106282</id>
		<title>Questionnaire Conditional branching</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/25/en/index.php?title=Questionnaire_Conditional_branching&amp;diff=106282"/>
		<updated>2013-08-05T17:21:51Z</updated>

		<summary type="html">&lt;p&gt;Rezeau: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{New features}}&lt;br /&gt;
TODO: Questionnaire Conditional branching docs&lt;/div&gt;</summary>
		<author><name>Rezeau</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/25/en/index.php?title=Template:Questionnaire&amp;diff=106281</id>
		<title>Template:Questionnaire</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/25/en/index.php?title=Template:Questionnaire&amp;diff=106281"/>
		<updated>2013-08-05T17:20:49Z</updated>

		<summary type="html">&lt;p&gt;Rezeau: added conditional branching page link&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div class=&amp;quot;navtrail&amp;quot;&amp;gt;[[Main page]] ► [[Managing a Moodle course]] ► [[Activities]] ► [[Questionnaire]] ► [[{{PAGENAME}}]]&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;sideblock right&amp;quot; style=&amp;quot;width: 12em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;header&amp;quot;&amp;gt;[[Questionnaire]]&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;content&amp;quot;&amp;gt;&lt;br /&gt;
* [[Adding/editing a questionnaire]]&lt;br /&gt;
* [[Setting up a questionnaire|Advanced settings]]&lt;br /&gt;
* [[Editing Questionnaire questions|Adding questions]]&lt;br /&gt;
* [[Viewing Questionnaire responses|Viewing responses]]&lt;br /&gt;
* [[Questionnaire Conditional branching|Conditional branching]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;/div&gt;</summary>
		<author><name>Rezeau</name></author>
	</entry>
</feed>