<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.limesurvey.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Joeyh278</id>
	<title>LimeSurvey Manual - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://www.limesurvey.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Joeyh278"/>
	<link rel="alternate" type="text/html" href="https://www.limesurvey.org/manual/Special:Contributions/Joeyh278"/>
	<updated>2026-08-10T16:00:11Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://www.limesurvey.org/manual/index.php?title=Setting_conditions&amp;diff=374838</id>
		<title>Setting conditions</title>
		<link rel="alternate" type="text/html" href="https://www.limesurvey.org/manual/index.php?title=Setting_conditions&amp;diff=374838"/>
		<updated>2024-02-27T00:58:00Z</updated>

		<summary type="html">&lt;p&gt;Joeyh278: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;languages /&amp;gt; &amp;lt;translate&amp;gt;&lt;br /&gt;
&amp;lt;!--T:1--&amp;gt;&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Overview of Conditions in LimeSurvey= &amp;lt;!--T:8--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:9--&amp;gt;&lt;br /&gt;
LimeSurvey has a very powerful logical branching feature. It can be accessed by clicking on the &#039;&#039;&#039;Set conditions&#039;&#039;&#039; button - [[File:conditions_icon.png]] - located on each [[Question toolbar options|question bar]].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:10--&amp;gt;&lt;br /&gt;
In this chapter we will describe:&lt;br /&gt;
* what conditions you can find in LimeSurvey&lt;br /&gt;
* what you can and can&#039;t do with conditions&lt;br /&gt;
* what steps you need to learn to set up simple or more complex conditions&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:11--&amp;gt;&lt;br /&gt;
For step-by-step video instructions check out [http://www.youtube.com/watch?v=oexr0z-eo9U this tutorial] or download the condition sample survey: [[Media:LimeSurvey_Survey_Setting_Conditions.zip|LimeSurvey_Survey_Setting_Conditions.zip]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:238--&amp;gt;&lt;br /&gt;
{{Hint|Text=The conditions functionalities work like a GUI for [[ExpressionScript - Presentation|the expressions and equations that can be applied to questions]], allowing the users to easily increase the complexity of their surveys without getting into expressions and relevance equations. However, [[ExpressionScript - Presentation|the ExpressionScript]] must be studied/known to increase the range of options that is available within LimeSurvey.}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Hide/Show Branching Versus Jump Branching== &amp;lt;!--T:12--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:13--&amp;gt;&lt;br /&gt;
You can design logical branching with LimeSurvey, which means that you can decide that some questions will be displayed only if some conditions are met like &amp;quot;Show question X if the answer to question Y was Z&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:14--&amp;gt;&lt;br /&gt;
Our approach is to implement a &#039;&#039;&#039;Hide/Show Branching Logic&#039;&#039;&#039;:&lt;br /&gt;
* you can define a condition or a set of conditions on each question of your survey - if the condition is met, the question will be then displayed:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:182--&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;[[File:simple-condition-on-yes-question.png]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:15--&amp;gt;&lt;br /&gt;
&amp;lt;div class=&#039;simplebox&#039;&amp;gt; [[File:help.png]] Simply put:&lt;br /&gt;
* a question without a condition defined on it will always be displayed;&lt;br /&gt;
* a question with a condition defined on it will not be displayed unless the condition is met.&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:16--&amp;gt;&lt;br /&gt;
This approach is different from the &#039;&#039;&#039;Jump Branching Logic&#039;&#039;&#039; that is sometimes implemented by other software. In the &#039;&#039;&#039;Jump Branching Logic&#039;&#039;&#039;, the resulting action of a met condition would be to jump to another question (that is to say hide all questions in between). &#039;&#039;&#039;LimeSurvey doesn&#039;t implement this Jump Branching Logic&#039;&#039;&#039; method. Instead, if you wish to jump a series of questions, you should simply set the same condition on all the questions you do not wish to be displayed. For example, if the jump condition you want to set on Question2 is &amp;quot;Jump to Question5 if the answer to Question1 is &#039;Yes&#039;&amp;quot;, you can simply:&lt;br /&gt;
*set a condition on questions 2, 3 and 4 to only display &amp;quot;if the answer to Question1 was &#039;&#039;&#039;NOT&#039;&#039;&#039; &#039;Yes&#039;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:17--&amp;gt;&lt;br /&gt;
LimeSurvey makes setting the same condition on multiple questions (and thus implementing &#039;&#039;&#039;Jump Branching Logic&#039;&#039;&#039;) easy by allowing you to &amp;quot;copy&amp;quot; a condition from one question to a series of others. In the above example, you would begin by setting the condition on Question2, then from the same screen, you would copy that condition to Question3 and Question4.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:191--&amp;gt;&lt;br /&gt;
&amp;lt;div class=&#039;simplebox&#039;&amp;gt; [[File:help.png]] To find out more details on how you can copy conditions within LimeSurvey, please continue reading the following [[Setting conditions#How to copy conditions|wiki section]].&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Supported Types of Conditions== &amp;lt;!--T:18--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:19--&amp;gt;&lt;br /&gt;
Basically, a condition can compare values, returning either true or false.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:20--&amp;gt;&lt;br /&gt;
The values that can be compared are &#039;&#039;&#039;answers to previous questions&#039;&#039;&#039;. For instance, if you answer &#039;Yes&#039; to Question1, Question2 will then be showed to the survey respondent:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:21--&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;[[File:Questions_example_set_conditions_y.png]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:183--&amp;gt;&lt;br /&gt;
&amp;lt;hr width=&amp;quot;50%&amp;quot; style=&amp;quot;margin:auto&amp;quot;&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:22--&amp;gt;&lt;br /&gt;
At this point, it is important to understand what is considered an eligible question-entry for the condition editor.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:23--&amp;gt;&lt;br /&gt;
A &#039;&#039;&#039;question-entry&#039;&#039;&#039; is either:&lt;br /&gt;
* a simple question (for all question types apart from Array questions)&lt;br /&gt;
** for instance: text questions, radio or dropdown lists, and even multiple choices questions&lt;br /&gt;
* or a row in Array questions (except for Array dual scale and Array multiple flexible questions)&lt;br /&gt;
** for instance: array with 5 radio buttons or array with label questions&lt;br /&gt;
* or either the left part or the right part of an Array dual scale question&lt;br /&gt;
* or each cell of an Array flexible question&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:192--&amp;gt;&lt;br /&gt;
{{Note|Check out the following [[Question types|link]] to find out more about the available question types in LimeSurvey.}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:24--&amp;gt;&lt;br /&gt;
* &#039;&#039;&#039;constant values&#039;&#039;&#039;&lt;br /&gt;
** for instance: &amp;quot;If you answered more than 18 years to the question below&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:184--&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;[[File:simple-condition-on-numerical-question.png]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:25--&amp;gt;&lt;br /&gt;
* &#039;&#039;&#039;Participants&#039; profile data:&#039;&#039;&#039; To use data from the survey participants table, &amp;quot;Anonymized responses&amp;quot; must be set to &#039;&#039;&#039;NO&#039;&#039;&#039;.  This option can be found in survey [[Participant settings|participant settings]] panel.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:26--&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;[[File:simple-condition-on-token.png]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:239--&amp;gt;&lt;br /&gt;
&amp;lt;hr width=&amp;quot;50%&amp;quot; style=&amp;quot;margin:auto&amp;quot;&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:27--&amp;gt;&lt;br /&gt;
Several comparison operators are supported - from the simple &amp;quot;equals&amp;quot; to the advanced &amp;quot;regular expression&amp;quot;:&lt;br /&gt;
* The basic ones refer to the &amp;quot;equal&amp;quot; and &amp;quot;not equal to&amp;quot; operations&lt;br /&gt;
* The &#039;&#039;greater/less than&#039;&#039; operator family is also available, and is usually used when using numeric question-entries&lt;br /&gt;
** Please note that comparisons on numeric fields make use of the numeric order. For instance, 2 &amp;lt; 10&lt;br /&gt;
** If you&#039;re using a question entry whose type is text, the condition could be evaluated as &amp;quot;2&amp;quot; &amp;gt; &amp;quot;10&amp;quot; (string order)!&lt;br /&gt;
** Numeric questions, as well as text questions (when they have the &#039;numbers_only&#039; attribute set), will use the numeric order for comparisons&lt;br /&gt;
* An advanced comparison operator using regular expressions is also available (don&#039;t panic! If you don&#039;t know what this means, then you don&#039;t need it)&lt;br /&gt;
** the pattern is &#039;&#039;&#039;not&#039;&#039;&#039; to be enclosed in &#039;/&#039; characters&lt;br /&gt;
** for instance: &#039;&#039;&#039;[a-zA-Z]$&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==How can I combine conditions?== &amp;lt;!--T:28--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:30--&amp;gt;&lt;br /&gt;
You can &#039;&#039;&#039;build complex conditions&#039;&#039;&#039; by &#039;&#039;&#039;combining simple conditions&#039;&#039;&#039; with the &#039;&#039;&#039;AND &#039;&#039;&#039;and &#039;&#039;&#039;OR &#039;&#039;&#039;logical operators.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:29--&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;[[File:simple-conditions-combination.png]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:31--&amp;gt;&lt;br /&gt;
However, it is important to understand that &#039;&#039;&#039;LimeSurvey automatically determines which logical operator to apply&#039;&#039;&#039;. This means that the use of the &#039;&#039;&#039;OR &#039;&#039;&#039;or &#039;&#039;&#039;AND &#039;&#039;&#039;operators is determined &#039;&#039;&#039;according to the context&#039;&#039;&#039; of the condition. In the above example, there is only one scenario. This means that LimeSurvey makes use of [https://en.wikipedia.org/wiki/Boolean_algebra Boolean algebra], which means that operator &#039;&#039;&#039;or&#039;&#039;&#039; is &amp;quot;computed&amp;quot; first.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:32--&amp;gt;&lt;br /&gt;
We&#039;ll talk more about complex conditions [[Setting_conditions#The usage of scenarios - Using ORed conditions between different questions|later]]. Let&#039;s first focus together on the elementary ones.&lt;br /&gt;
&lt;br /&gt;
=The conditions designer= &amp;lt;!--T:34--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:193--&amp;gt;&lt;br /&gt;
First, you need to access the [[Question toolbar options#The question toolbar|conditions designer]]. To do that, click on the question you wish to apply the condition to:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:194--&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;[[File:Question designer search question.png]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:195--&amp;gt;&lt;br /&gt;
Now, look for the &#039;&#039;&#039;Set conditions&#039;&#039;&#039; button located on the top question bar:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:196--&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;[[File:Question designer set conditions.png]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:197--&amp;gt;&lt;br /&gt;
Once accessed, the following page will be displayed:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:198--&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;[[File:Question designer top.png]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:199--&amp;gt;&lt;br /&gt;
The conditions designer panel can be divided into three sections:&lt;br /&gt;
* [[Setting conditions#The conditions designer toolbar|The conditions designer toolbar]]&lt;br /&gt;
* [[Setting conditions#Overview of the existent conditions|The current existent question conditions]]&lt;br /&gt;
* [[Setting conditions#Add/Edit conditions|Add/edit condition menu]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==The conditions designer toolbar== &amp;lt;!--T:200--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:201--&amp;gt;&lt;br /&gt;
You may find on the toolbar the following options:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:240--&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;[[File:Show conditions designer toolbar.png]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:203--&amp;gt;&lt;br /&gt;
*&#039;&#039;&#039;Show conditions for this question&#039;&#039;&#039;: Click on this button to get a quick overview of the current existent conditions that are applied to your question.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:204--&amp;gt;&lt;br /&gt;
*&#039;&#039;&#039;Add and edit conditions&#039;&#039;&#039;: It represents the default page that opens automatically once you click the &#039;&#039;&#039;Set conditions&#039;&#039;&#039; button. It is divided in two parts: (1) a table displaying all the existent conditions and scenarios, and (2) the [[Setting conditions#Add/Edit conditions|add/edit conditions menu]].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:205--&amp;gt;&lt;br /&gt;
*&#039;&#039;&#039;Copy conditions&#039;&#039;&#039;: Sometimes, you wish to apply the same condition to X questions in order to get questionY displayed at the end. For this, click on &#039;&#039;&#039;Copy conditions&#039;&#039;&#039;. A new window will open displaying the current existent conditions added to your question (let&#039;s call it question3). To add them to question5, check the desired conditions you wish to be copied, select question5, and click on the &#039;&#039;&#039;Copy conditions&#039;&#039;&#039; button located on the bottom left part of the panel. For further information, please continue reading the following [[Setting conditions#How to copy conditions|wiki section]].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:207--&amp;gt;&lt;br /&gt;
*&#039;&#039;&#039;Save and close&#039;&#039;&#039;: Once you are done with the changes, click &#039;&#039;&#039;Save and close&#039;&#039;&#039; to get your conditions saved.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:208--&amp;gt;&lt;br /&gt;
*&#039;&#039;&#039;Move to question&#039;&#039;&#039;: In order not to leave the conditions designer panel while moving to another question, use the following option to select from the dropdown list the next question you wish to apply conditions to. Please note that the dropdown list displays the questions that are displayed in the survey before and after the current question.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:209--&amp;gt;&lt;br /&gt;
*&#039;&#039;&#039;Close&#039;&#039;&#039;: If you wish to exit the panel without performing any changes, you can either go straight to the settings/structure tab and select the desired option or click &#039;&#039;&#039;Close&#039;&#039;&#039;, which is located in the upper right of the screen.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Overview of the existent conditions== &amp;lt;!--T:210--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:211--&amp;gt;&lt;br /&gt;
This section displays a table that contains all the existent scenarios and conditions of a question. Certain actions can be performed from here:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:213--&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;[[FIle:Show conditions for this questions pic.png]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:241--&amp;gt;&lt;br /&gt;
*In the top right part, three actions are available:&lt;br /&gt;
**Quick-add conditions - it fastens the process of adding conditions (read [[Setting conditions#Add/Edit conditions|below]] to learn about all the options)&lt;br /&gt;
**Renumber scenarios - if clicked, the scenarios will be renumbered with incremental numbers beginning from one. Please note that this option is displayed only if two or more scenarios are applied to your question.&lt;br /&gt;
**Delete all conditions - you can delete via this action all the current existent conditions and scenarios applied to your question.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:242--&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;[[FIle:Conditions designer quickadd and delete.png]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:243--&amp;gt;&lt;br /&gt;
*Besides the id number of each scenario there are three buttons that allow you to perform the following actions:&lt;br /&gt;
**Delete scenario&lt;br /&gt;
**Change scenario number&lt;br /&gt;
**Add condition to this scenario - click on this button to add another condition to the desired scenario&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:244--&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;[[FIle:Conditions Designer table scenarios.png]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:245--&amp;gt;&lt;br /&gt;
*Two actions can be performed on each condition:&lt;br /&gt;
**Delete condition &lt;br /&gt;
**Edit condition - if clicked, you will be able to edit the condition from the [[Setting conditions#Add/Edit conditions|conditions menu]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:246--&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;[[FIle:Conditions Designer table conditions.png]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Add/Edit conditions== &amp;lt;!--T:215--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:216--&amp;gt;&lt;br /&gt;
The bottom part of the screen is allocated to the Add/edit conditions menu:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:217--&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;[[File:Add_edit_condition_q.png]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:247--&amp;gt;&lt;br /&gt;
&amp;lt;div class=&#039;simplebox&#039;&amp;gt; You can also edit the condition from the same location if you pressed before on the green pencil that corresponds to the question you wish to be edited (see the [[Setting conditions#Overview of the existent conditions|conditions and scenarios table]]).&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:218--&amp;gt;&lt;br /&gt;
To understand how the conditions feature works in LimeSurvey, we will first present the elementary conditions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:38--&amp;gt;&lt;br /&gt;
&amp;lt;div class=&#039;simplebox&#039;&amp;gt;[[File:help.png]] &#039;&#039;&#039;Note&#039;&#039;&#039;: For the moment &#039;&#039;&#039;don&#039;t modify the default scenario&#039;&#039;&#039; ([[File:default_scenario.png]]) that is automatically selected in the condition addition form. It will be covered later within this [[Setting conditions#The usage of scenarios - Using ORed conditions between different questions|wiki section]].&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Definition of elementary conditions=== &amp;lt;!--T:39--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:40--&amp;gt;&lt;br /&gt;
An elementary condition is simply a single condition &#039;&#039;&#039;without any OR or AND&#039;&#039;&#039; logical operators.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:41--&amp;gt;&lt;br /&gt;
It is composed by:&lt;br /&gt;
* a left operand: the &#039;&#039;tested value&#039;&#039;. You can choose the &#039;&#039;tested value&#039;&#039; type by selecting the appropriate tab in the condition editor. It can either be a previous question or a [[Survey participants|survey participant]] attribute.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:185--&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;[[File:edit-conditions-testedvalueTab.png]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:248--&amp;gt;&lt;br /&gt;
If you select a question-entry (from the &#039;&#039;&#039;Previous questions&#039;&#039;&#039; tab) and if this question uses predefined answers, then the corresponding predefined answers are displayed under the &#039;&#039;&#039;Predefined&#039;&#039;&#039; tab of the comparison value selection.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:249--&amp;gt;&lt;br /&gt;
&amp;lt;div class=&#039;simplebox&#039;&amp;gt; [[File:help.png]] Note that in order to use the Token your survey must:&lt;br /&gt;
*not use [[Participant settings|anonymous answers]]&lt;br /&gt;
*use a [[Survey participants|survey participants table]] and [[Participant settings|closed access]].&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:42--&amp;gt;&lt;br /&gt;
* a &#039;&#039;comparison operator&#039;&#039;. Choose the &#039;&#039;comparison operator&#039;&#039; you want to apply from the dropdown list (&#039;&#039;less than&#039;&#039;, &#039;&#039;less than or equal to&#039;&#039;, &#039;&#039;equals&#039;&#039;, &#039;&#039;not equal to&#039;&#039;, &#039;&#039;greater than or equal to&#039;&#039;, &#039;&#039;greater than&#039;&#039;, &#039;&#039;[[ExpressionScript - Presentation|regular expression]]&#039;&#039;).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:43--&amp;gt;&lt;br /&gt;
* a right operand: the &#039;&#039;comparison value&#039;&#039;. You can choose the &#039;&#039;comparison value&#039;&#039; type by selecting the appropriate tab in the condition editor. When you create a condition, you can select as the comparison value a predefined value (answer), a constant, a question, a survey participant attribute, or a regular expression:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:44--&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;[[File:edit-conditions-comparisonvalueTab.png]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Example of elementary conditions and how to create them=== &amp;lt;!--T:219--&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:45--&amp;gt;&lt;br /&gt;
* Show Question &#039;AAMN&#039; &#039;&#039;&#039;if&#039;&#039;&#039; &amp;quot;the answer to Question &#039;Gender&#039; is the predefined answer &#039;Male&#039;&amp;quot;&lt;br /&gt;
** &#039;&#039;tested value&#039;&#039; = answer to Question &#039;Gender&#039;&lt;br /&gt;
** &#039;&#039;comparison operator&#039;&#039; = equals&lt;br /&gt;
** &#039;&#039;comparison value&#039;&#039; = predefined answer code (the &#039;Male&#039; answer in this case)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:187--&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;[[File:edit-simple-condition-predefanswer.png]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:46--&amp;gt;&lt;br /&gt;
* Show Question &#039;Alcohol&#039; &#039;&#039;&#039;if&#039;&#039;&#039; &amp;quot;the answer to Question &#039;Age&#039; is greater or equal than the numerical value &#039;18&#039;&amp;quot;&lt;br /&gt;
** &#039;&#039;tested value&#039;&#039; = answer to Question &#039;Age&#039;&lt;br /&gt;
** &#039;&#039;comparison operator&#039;&#039; = greater than or equal to&lt;br /&gt;
** &#039;&#039;comparison value&#039;&#039; = the constant value &#039;18&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:47--&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;[[File:edit-simple-condition-constant.png]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:48--&amp;gt;&lt;br /&gt;
{{Alert|title=Attention|text=When using a constant &#039;comparison value&#039; for a date question, regardless of the date format set in your survey, you must use the YYYY-MM-DD date format.}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:220--&amp;gt;&lt;br /&gt;
* Show Question &#039;Alcohol&#039; &#039;&#039;&#039;if&#039;&#039;&#039; &amp;quot;the answer to Question &#039;BirthDate&#039; is greater than 2000-01-01&#039;&#039;&#039;&amp;quot;&lt;br /&gt;
** &#039;&#039;tested value&#039;&#039; = answer to Question &#039;BirthDate&#039;&lt;br /&gt;
** &#039;&#039;comparison operator&#039;&#039; = Greater than or equal to &lt;br /&gt;
** &#039;&#039;comparison value&#039;&#039; = &#039;2000-01-01&#039; (the format in the constant field: 2000-01-01)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:188--&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;[[File:Date time example condition.png]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:49--&amp;gt;&lt;br /&gt;
* Show Question &#039;Alcohol&#039; &#039;&#039;&#039;if&#039;&#039;&#039; &amp;quot;the the &#039;DrinkingHistory&#039; [[Survey participants|participant&#039;s attribute]]&amp;quot; matches the &#039;Yes&#039; string.&lt;br /&gt;
** &#039;&#039;tested value&#039;&#039;= the &#039;DrinkingHistory&#039; value taken from the [[Survey participants#Manage attributes|survey participants table]]&lt;br /&gt;
** &#039;&#039;comparison operator&#039;&#039; = equals&lt;br /&gt;
** &#039;&#039;comparison value&#039;&#039; = the constant value &#039;Yes&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:50--&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;[[File:edit-simple-condition-leftToken.png]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Conditions and scenarios in LimeSurvey= &amp;lt;!--T:250--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Default condition combinations== &amp;lt;!--T:52--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:53--&amp;gt;&lt;br /&gt;
As said earlier, LimeSurvey automatically decides which logical operator (AND or OR) should be applied between conditions depending on the &#039;context&#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:54--&amp;gt;&lt;br /&gt;
Note also that &#039;&#039;&#039;the order in which you define your elementary conditions is not relevant&#039;&#039;&#039; as LimeSurvey will automatically reorder them according to its own logic.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:55--&amp;gt;&lt;br /&gt;
Let&#039;s study this in detail. Two rules should be always remembered:&lt;br /&gt;
* [[Setting conditions#First rule: conditions having the same tested value are ORed together|First rule]]: conditions having the same &#039;&#039;tested value&#039;&#039; are ORed together&lt;br /&gt;
* [[Setting conditions#Second rule: conditions having different tested value are ANDed together|Second rule]]: conditions having different tested value are ANDed together&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===First rule: conditions having the same &#039;&#039;tested value&#039;&#039; are ORed together=== &amp;lt;!--T:56--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:57--&amp;gt;&lt;br /&gt;
When you have several conditions, they are &#039;&#039;&#039;ORed&#039;&#039;&#039; together if they share the same &#039;&#039;&#039;tested value&#039;&#039;&#039;. This is the case if the condition applies to several answers belonging to one single question. For example, a condition was applied below to three answers belonging to the same question - if answer to Question &#039;FavColour&#039; equals &#039;green&#039; &#039;&#039;&#039;OR&#039;&#039;&#039;  answer to Question &#039;FavColour&#039; equals &#039;red&#039;  &#039;&#039;&#039;OR&#039;&#039;&#039;  answer to Question &#039;FavColour&#039; equals &#039;blue&#039;, then Question &#039;BirthDate&#039; will be displayed to the survey respondent:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:58--&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;[[File:edit-conditions-naturalOr-edit.png]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:221--&amp;gt;&lt;br /&gt;
[[File:edit-conditions-naturalOr-result.png]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:222--&amp;gt;&lt;br /&gt;
&amp;lt;div class=&#039;simplebox&#039;&amp;gt;[[File:help.png]] Note: To select multiple predefined answers, don&#039;t forget to hold the Shift or Ctrl key while selecting the &#039;&#039;&#039;tested values&#039;&#039;&#039;.&amp;lt;/div&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Second rule: conditions having different &#039;&#039;tested value&#039;&#039; are ANDed together=== &amp;lt;!--T:59--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:60--&amp;gt;&lt;br /&gt;
When you have several conditions, they are &#039;&#039;&#039;ANDed&#039;&#039;&#039; together if they don&#039;t share the same &#039;&#039;&#039;tested values&#039;&#039;&#039;. For example, you may see below the case for several conditions based on different previous questions - &amp;quot;If answer to Question &#039;Alcohol&#039; equals &#039;Y&#039; answer &#039;&#039;&#039;AND&#039;&#039;&#039; answer to Question &#039;Gender&#039; equals &#039;F&#039;&amp;quot;, then Question &#039;Alcoholconsumption&#039; will be displayed to the survey respondent:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:61--&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;[[File:edit-conditions-naturalAND-editA.png]] &lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:223--&amp;gt;&lt;br /&gt;
[[File:edit-conditions-naturalAND-editB.png]] &amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:224--&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;[[File:edit-conditions-naturalAND-result.png]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===The multiple options questions=== &amp;lt;!--T:66--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:67--&amp;gt;&lt;br /&gt;
&amp;lt;div class=&#039;simplebox&#039;&amp;gt;[[File:help.png]] &#039;&#039;&#039;Note:&#039;&#039;&#039; This paragraph applies to &#039;&#039;Multiple options&#039;&#039; and &#039;&#039;Multiple options with comments&#039;&#039; questions, and not to &#039;&#039;Array Multiple Flexible (number) with checkbox layout&#039;&#039; questions (in case of the latter, each checkbox is a separate question-entry and is not really handled as other multiple options question-types).&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:69--&amp;gt;&lt;br /&gt;
The &#039;&#039;Multiple choice&#039;&#039; and &#039;&#039;Multiple choice with comments&#039;&#039; question types will be displayed in two flavors:&lt;br /&gt;
* a &#039;&#039;Group of checkboxes&#039;&#039; flavor which let you set conditions on all possible answers of the respective question;&lt;br /&gt;
* a set of &#039;&#039;Single checkbox&#039;&#039; entries which lets you set conditions on each checkbox individually.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:68--&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;[[File:edit-conditions-MultipleOptions1.png]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====The group of checkboxes flavour==== &amp;lt;!--T:225--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:226--&amp;gt;&lt;br /&gt;
Now, let&#039;s focus on an example to better understand the difference between the two flavours. Let&#039;s imagine that we wish to display the &#039;Pointchoice&#039; Question only if the respondent checks at least one of the &#039;&#039;tested answers&#039;&#039; listed under the &#039;MultipleOrganizations&#039; Question. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:227--&amp;gt;&lt;br /&gt;
As mentioned above, the group of checkboxes flavor allows you to set conditions on all possible answers of the respective question. Therefore, only the options that refer to responsibilities are selected as &#039;&#039;&#039;comparison values&#039;&#039;&#039; below:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:228--&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;[[File:edit-conditions-MultipleOptionsOR.png]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:229--&amp;gt;&lt;br /&gt;
As we can observe, the conditions get ORed due to the &#039;&#039;Group of checkboxes&#039;&#039; flavour selected in the beginning.: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:230--&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;[[File:edit-conditions-MultipleOptionsOR-result.png]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====ANDing conditions in multiple choice questions==== &amp;lt;!--T:231--&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:232--&amp;gt;&lt;br /&gt;
Now, let&#039;s focus on a similar example. However, we are looking this time only for the most active members to ask them further questions. To do this, we make use of the &#039;&#039;&#039;Single checkbox&#039;&#039;&#039; flavour which allows you to set conditions based on each checkbox individually. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:233--&amp;gt;&lt;br /&gt;
In this example, question X will be displayed if &#039;&#039;A&#039;&#039; and &#039;&#039;B&#039;&#039; are checked: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:79--&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;[[File:edit-conditions-MultipleOptionsAND2.png]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:251--&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;[[File:edit-conditions-MultipleOptionsAND3.png]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:234--&amp;gt;&lt;br /&gt;
Once done, you can observe that the two conditions are ANDed now.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:80--&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;[[File:edit-conditions-MultipleOptionsAND-result.png]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:235--&amp;gt;&lt;br /&gt;
This means that your question will not be displayed unless both tested values (the selected subquestions) are met.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==The usage of scenarios - Using ORed conditions between different questions== &amp;lt;!--T:81--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:82--&amp;gt;&lt;br /&gt;
Now, you may argue that sometimes you need to have &#039;&#039;&#039;ORed&#039;&#039;&#039; conditions even when they are set on different questions (that is to say on different &#039;&#039;&#039;tested values&#039;&#039;&#039;). This is why we got scenarios!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Definition of a scenario=== &amp;lt;!--T:84--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:85--&amp;gt;&lt;br /&gt;
A scenario is simply &#039;&#039;&#039;a manual grouping of conditions&#039;&#039;&#039; in which some conditions are evaluated independently of other conditions from other scenarios. The complex condition resulting in this association of several scenarios will be met only if one scenario is met. In other words, scenarios are &#039;&#039;&#039;logical grouping of conditions&#039;&#039;&#039;, respecting the above [[Setting conditions#Default condition combinations|rules]], and &#039;&#039;&#039;which are ORed together&#039;&#039;&#039; to build complex conditions.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:86--&amp;gt;&lt;br /&gt;
Everything described above applies to the conditions located in every scenario. By default, all the new conditions are created inside the &#039;&#039;Default Scenario&#039;&#039;, which uses number &#039;1&#039; as its identifier.  When you create new conditions, you can choose whether they are added to the default scenario or not. To change the scenario, just use another identifier.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Adding a question to another scenario=== &amp;lt;!--T:89--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:90--&amp;gt;&lt;br /&gt;
When you create (or edit) a condition, you can modify the scenario in which the condition is stored by simply clicking on the add scenario button:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:91--&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;[[File:edit-conditions-EditorView-Scenario.png]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:92--&amp;gt;&lt;br /&gt;
As you can observe, the default scenario uses as identifier &#039;1&#039;. To add conditions to different scenarios, change the identifier by typing a different number in the box.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:93--&amp;gt;&lt;br /&gt;
The number id of a scenario has no importance and different scenarios can have non-continuous ids.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:252--&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;[[File:Conditions test ids.png]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:132--&amp;gt;&lt;br /&gt;
You can change the number assigned to a scenario by clicking this Icon [[File:scenario_edit.png]] and assigning the new id to the scenario. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:133--&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;[[File:edit_scenario_conditions.png]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:135--&amp;gt;&lt;br /&gt;
&amp;lt;div class=&#039;simplebox&#039;&amp;gt; [[File:help.png]] &#039;&#039;&#039;Note:&#039;&#039;&#039; As said above, scenario numbers have no impact in the way conditions are evaluated. However, modifying the scenario numbers are needed in order to:&lt;br /&gt;
* decide in which order the scenarios are displayed when using the printable version of a survey&lt;br /&gt;
* merge conditions from two scenarios (in order to merge scenario 10 with scenario 1, just renumber scenario 10, so that it is scenario 1).&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Example: creating three scenarios=== &amp;lt;!--T:236--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:253--&amp;gt;&lt;br /&gt;
To create three scenarios, you need at least three conditions and to add to each of them a different scenario id. Once done, the scenarios are going to be connected among themselves via the &#039;OR&#039; operator. For example, it could look like this:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:94--&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;[[File:edit-conditions-EditorView-Scenario2.png]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== AND vs OR in the same scenario== &amp;lt;!--T:254--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:255--&amp;gt;&lt;br /&gt;
You may end up in certain cases with AND and OR logical operators in the same scenario:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:256--&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;[[File:And vs OR example.png]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:257--&amp;gt;&lt;br /&gt;
LimeSurvey will always apply first OR. For further details on this, you may check the following Wikipedia article on [https://en.wikipedia.org/wiki/Boolean_algebra Boolean algebra].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:258--&amp;gt;&lt;br /&gt;
However. the order of operations can also be observed in the Relevance equation field. For the above example, the relevance equation is highlighted below:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:259--&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;[[File:AND vs OR relevance eq.png]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:260--&amp;gt;&lt;br /&gt;
As it can be observed, a set of extra parentheses is added for the OR logical operations in order to let the software know that it must be &amp;quot;computed&amp;quot; first.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:261--&amp;gt;&lt;br /&gt;
&amp;lt;div class=&#039;simplebox&#039;&amp;gt; [[File:help.png]] &#039;&#039;&#039;Help:&#039;&#039;&#039; For more information on relevance equations, check the [[ExpressionScript - Presentation]] and [[QS:Relevance|relevance equation]] wiki sections. &amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=How to copy conditions= &amp;lt;!--T:262--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:263--&amp;gt;&lt;br /&gt;
The copy conditions functionality can be used when you wish to apply the same set of conditions you applied to Question5 to Question10. In this way, you will not have to manually recreate the conditions you applied to the previous question(s).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:264--&amp;gt;&lt;br /&gt;
To start copying conditions, you first have to select the question the condition(s) is/are applied to (Question &#039;LowQ&#039; in our case). Then, select the conditions you wish to be copied and select the question you wish to have the conditions added to (Question &#039;Alcohol&#039; in our case).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:202--&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;[[File:Copy conditions panel.png]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:265--&amp;gt;&lt;br /&gt;
&amp;lt;div class=&#039;simplebox&#039;&amp;gt;[[FIle:help.png]] &#039;&#039;&#039;Note:&#039;&#039;&#039; Conditions can only be set based on questions that appear before the question on which the condition is set.&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:266--&amp;gt;&lt;br /&gt;
Please pay attention to how the copy conditions functions work when you wish to copy and apply a set of conditions located under different scenarios to another question which uses the same or different scenario id numbers. To summarise the possible cases you might have, check the following example:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:267--&amp;gt;&lt;br /&gt;
* you wish to copy Scenario 1 - Condition A, Scenario 1- Condition B, Scenario 7 - Condition C, and Scenario 7 - Condition D from QuestionX into QuestionY&lt;br /&gt;
*QuestionY already contains Scenario 1 - Condition A, Scenario - Condition C, Scenario 6 - Condition E, Scenario 8- Condition F.&lt;br /&gt;
*Once copied, the following conditions will be applied to QuestionY:&lt;br /&gt;
**Scenario 1: Condition A, Condition B, Condition C -&amp;gt; &#039;&#039;&#039;Condition A is not copied anymore as it already exists in QuestionY, only condition B being copied.&#039;&#039;&#039;&lt;br /&gt;
**Scenario 6: Condition E -&amp;gt; not affected&lt;br /&gt;
**Scenario 7: Condition C, Condition D -&amp;gt; &#039;&#039;&#039;a new scenario is created where the two conditions are added to it&#039;&#039;&#039;&lt;br /&gt;
**Scenario 8: Condition F -&amp;gt; not affected&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Reset conditions= &amp;lt;!--T:271--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:272--&amp;gt;&lt;br /&gt;
To quickly reset all the survey conditions, click on one survey-related setting, look for &#039;&#039;&#039;Tools&#039;&#039;&#039; on the top toolbar, and click &#039;&#039;&#039;Reset conditions:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:273--&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;[[File:Reset_conditions_location.png]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:274--&amp;gt;&lt;br /&gt;
Next, confirm on the next page that you want to proceed and all the conditions will be deleted. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Things to watch out for= &amp;lt;!--T:143--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==General considerations== &amp;lt;!--T:144--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:145--&amp;gt;&lt;br /&gt;
There are a few basic rules you should keep in mind before setting conditions on a question:&lt;br /&gt;
*Once a single condition has been set for a question, that question &#039;&#039;&#039;will not be displayed&#039;&#039;&#039; unless that condition is met.&lt;br /&gt;
*Conditions can only be set based on questions that appear &#039;&#039;&#039;before&#039;&#039;&#039; the question on which the condition is set.&lt;br /&gt;
*If you change the order of questions in your survey after you create conditions, LimeSurvey does not warn you if the changed order will break any of your conditions. You should always put aside the creation of conditions until you are satisfied with the order of questions and groups in your survey.&lt;br /&gt;
*You can modify conditions even after a survey has been activated. This should be done with caution, as there is no &amp;quot;consistency checking&amp;quot; applied here.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Conditions using the &#039;no answer&#039; predefined answer== &amp;lt;!--T:146--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:147--&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;[[File:noanswer_conditions.png]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:148--&amp;gt;&lt;br /&gt;
Setting the following condition &amp;quot;Show question &#039;FavColour&#039; if the answer to the question &#039;Gender&#039; is &#039;no answer&#039;&amp;quot; really means &amp;quot;show question &#039;FavColour&#039; if question &#039;Gender&#039; was displayed to the survey participant who did not submit answer&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:268--&amp;gt;&lt;br /&gt;
{{Hint|Text=To have the no answer option displayed as a predefined answer, the question cannot be [[QS:Mandatory|mandatory]].}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Chained conditions== &amp;lt;!--T:149--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:150--&amp;gt;&lt;br /&gt;
If you set conditions on a question that, itself, has conditions, you could end up with your survey behaving in ways you might not have predicted. For example, a typical side-effect is that if you hide all questions in a group with chained conditions, the group header will still be shown unless you correct these conditions as explained below.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:151--&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;[[File:chained_conditions1.png]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:152--&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;[[File:chained_conditions2_bad.png]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:153--&amp;gt;&lt;br /&gt;
In the above example, the &#039;Alcohol&#039; question is displayed if the respondent has previously answered to the &#039;AAMN&#039; question &#039;No (N)&#039;. However, the &#039;AAMN&#039; question might not be displayed at the end if the respondent did not select to the previous question (&#039;Gender&#039;) answer &#039;Male (M)&#039;. In this scenario, no &#039;Alcohol&#039; question will be displayed if &#039;Male (M)&#039; was chosen previously.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:269--&amp;gt;&lt;br /&gt;
To have the &#039;Alcohol&#039; question displayed, you have to copy the conditions from the earlier question(s) to the one you&#039;re editing. To have the &#039;Alcohol&#039; question displayed, you need to set up the following set of conditions:&lt;br /&gt;
* Show &#039;AAMN&#039; if the answer to &#039;Gender&#039; is &#039;Male (M)&#039; &lt;br /&gt;
* Show &#039;Alcohol&#039; if answer to &#039;Gender&#039; is &#039;Male (M)&#039; &#039;&#039;&#039;and&#039;&#039;&#039; if answer to &#039;AAMN&#039; is No (N)&#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:157--&amp;gt;&lt;br /&gt;
After correction, the correct set of conditions for &#039;Alcohol&#039; should look like this:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:158--&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;[[File:chained_conditions2_good.png]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:159--&amp;gt;&lt;br /&gt;
So if you are designing a complicated survey with a large number of conditions, make sure you test the survey for as many different combinations of results as you can think of.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:270--&amp;gt;&lt;br /&gt;
&amp;lt;div class=&#039;simplebox&#039;&amp;gt;[[File:help.png]] To find out more on how you can copy conditions in LimeSurvey, please scroll up or click here to continue reading the dedicates [[Setting_conditions#How_to_copy_conditions|wiki section]].&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Limitations and workarounds== &amp;lt;!--T:160--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Progress-bar=== &amp;lt;!--T:161--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:162--&amp;gt;&lt;br /&gt;
If you create a survey where many questions get skipped because of conditions, the progress bar either jumps over a set of questions or the survey ends at 50%.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:163--&amp;gt;&lt;br /&gt;
To avoid such behavior, the questions that could be skipped should be arranged between the shown questions. In this way, only one or two questions get skipped per answer.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:164--&amp;gt;&lt;br /&gt;
For example, based on Question1 (yes or no question), 14 questions (2A to 15A) will be displayed if the answer to Question1 is &#039;Yes&#039;, or 2B to 15B if the answer to Question1 was &#039;No&#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:165--&amp;gt;&lt;br /&gt;
If you arrange the questions in one group and arrange them like 2A, 2B, 3A, 3B, and so on, you will get a nearly correct progress bar, while arranging the questions like 2A, 3A, 4A, [...], 2B, 3B, 4B, ... you will get a progress bar from 0 to 50% or from 50% to 100%, depending on the answer to the first question.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Setting a constant comparison value for a &amp;quot;Date&amp;quot; Question Type=== &amp;lt;!--T:166--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:167--&amp;gt;&lt;br /&gt;
You have to use the internal representation of Date values (which is &#039;&#039;&#039;YYYY-MM-DD&#039;&#039;&#039;) to define your constant comparison value.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Setting conditions for &amp;quot;Other&amp;quot; Options in the Multiple Options Question Type=== &amp;lt;!--T:168--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:169--&amp;gt;&lt;br /&gt;
In the multiple options question type, you can use the &amp;quot;Other&amp;quot; provided in the question type as a valid choice but you cannot set conditions on it. For example, Question No 1 says &amp;quot;Which color do you prefer to use?&amp;quot; Answer checkbox choices are Blue, Black and Other. If the participant chooses Blue, you can set a condition. If the participant chooses Black, you can set a different condition. &#039;&#039;&#039;However, if the participant chooses &amp;quot;Other&amp;quot; and types in something in the text box, there is NO way a condition can be set.&#039;&#039;&#039; LimeSurvey does not recognize if the participant chose the &amp;quot;Other&amp;quot; condition. This is NOT a bug but a limitation.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:170--&amp;gt;&lt;br /&gt;
There is no real field recorded for the &#039;other&#039; checkbox for this question type. Thus, the only way to know if the user has answered the &#039;other&#039; part of the question or not would be to check if the value of the text written in the other input field is empty or not.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:171--&amp;gt;&lt;br /&gt;
However, due to the specific way Multiple choice questions are handled, testing the &#039;other&#039; text input field has never been implemented.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:172--&amp;gt;&lt;br /&gt;
As a workaround, add an explicit answer option called &#039;Other&#039; and do not use the built-in &#039;other&#039; option of these question types. Then add an additional short text question which will be displayed if this &#039;Other&#039; checkbox was clicked.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===How to use parentheses for the boolean expressions?=== &amp;lt;!--T:173--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:174--&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;You can&#039;t!&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:175--&amp;gt;&lt;br /&gt;
If you want to design something like:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:176--&amp;gt;&lt;br /&gt;
&#039;&#039;(condition1 OR condition2)&#039;&#039; AND &#039;&#039;(condition3 OR condition4)&#039;&#039;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:177--&amp;gt;&lt;br /&gt;
you&#039;ll have to set up:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:178--&amp;gt;&lt;br /&gt;
 &#039;&#039;(condition1 AND condition3)&#039;&#039; OR&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:179--&amp;gt;&lt;br /&gt;
 &#039;&#039;(condition1 AND condition4)&#039;&#039; OR&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:180--&amp;gt;&lt;br /&gt;
 &#039;&#039;(condition2 AND condition3)&#039;&#039; OR&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:181--&amp;gt;&lt;br /&gt;
 &#039;&#039;(condition2 AND condition4)&#039;&#039;&lt;br /&gt;
&amp;lt;/translate&amp;gt;&lt;/div&gt;</summary>
		<author><name>Joeyh278</name></author>
	</entry>
	<entry>
		<id>https://www.limesurvey.org/manual/index.php?title=Assessments&amp;diff=374837</id>
		<title>Assessments</title>
		<link rel="alternate" type="text/html" href="https://www.limesurvey.org/manual/index.php?title=Assessments&amp;diff=374837"/>
		<updated>2024-02-27T00:52:50Z</updated>

		<summary type="html">&lt;p&gt;Joeyh278: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;languages /&amp;gt; &amp;lt;translate&amp;gt;&lt;br /&gt;
&amp;lt;!--T:1--&amp;gt;&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:2--&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;simplebox&amp;quot;&amp;gt;[[File:help.png]] &#039;&#039;&#039;Hint:&#039;&#039;&#039; You can create more sophisticated assessments and reports using the [[ExpressionScript - Presentation|ExpressionScript]]. It lets you access all variable types and easily generate tailored reports at any point in the survey (not only at the end). Using the new &#039;&#039;Equation&#039;&#039; question type, LimeSurvey can automatically save your assessment calculations and/or report to the database.&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Introduction= &amp;lt;!--T:32--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:4--&amp;gt;&lt;br /&gt;
LimeSurvey contains a feature that allows survey administrators to create survey &amp;quot;&#039;&#039;assessments&#039;&#039;&amp;quot; for survey participants - even for multilingual surveys. Assessments are rules which evaluate the responses to a survey immediately after it is submitted, displaying text blocks to the survey participant (based on that evaluation). &lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:33--&amp;gt;&lt;br /&gt;
In order to use LimeSurvey&#039;s assessment feature, from the &#039;&#039;&#039;Survey menu&#039;&#039;&#039; click the &#039;&#039;&#039;Assessments&#039;&#039;&#039; tab.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:34--&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;[[File:Assessments - location.png]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:35--&amp;gt;&lt;br /&gt;
You can then &#039;&#039;activate&#039;&#039; the assessment mode.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:36--&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;[[File:LS3 - enable assessments.png]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:11--&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;simplebox&amp;quot;&amp;gt;[[File:help.png]] To create and edit assessments in the older versions of LimeSurvey (e.g., 2.x), access the survey settings and enable the assessment mode from the &#039;&#039;&#039;Notification &amp;amp; data management&#039;&#039;&#039; tab. Additional fields where you can introduce assessment values will be displayed when editing answers.&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=How Do Assessments Work?= &amp;lt;!--T:37--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:38--&amp;gt;&lt;br /&gt;
The following is an example that will hopefully help you better understand how &#039;&#039;&#039;assessment mode&#039;&#039;&#039; is designed to work. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:6--&amp;gt;&lt;br /&gt;
Imagine you have two questions in your survey, the first question asks if the user smokes: &amp;quot;Do you smoke?&amp;quot;. The question has 3 possible answers, &amp;quot;Yes, more than 10 per day&amp;quot; with a value of &amp;quot;10&amp;quot;, &amp;quot;Yes, but less than 10 per day&amp;quot; with a value of &amp;quot;5&amp;quot;, and &amp;quot;No, I don&#039;t smoke at all&amp;quot; with an assessment value of &amp;quot;1&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:7--&amp;gt;&lt;br /&gt;
The second question &amp;quot;Do you exercise?&amp;quot; has three possible answers: &amp;quot;Yes, I exercise for at least half an hour three times a week&amp;quot; with a value of &amp;quot;1&amp;quot;, &amp;quot;Yes, I exercise occasionally &amp;quot; with a value of &amp;quot;5&amp;quot; and &amp;quot;No, I do not exercise&amp;quot; with an answer code/value of &amp;quot;10&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:8--&amp;gt;&lt;br /&gt;
If we were to add the totals of the values for each possible answer at the end of the survey, we would get a good indication of the general health of the respondent. Someone who smokes and doesn&#039;t ever do any exercises will score 10 points for each answer, getting a total score of 20 when we add the two values. Someone who doesn&#039;t smoke and exercise will score 1 for each answer, obtaining, in the end, a total score of 2.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:5--&amp;gt;&lt;br /&gt;
{{Box|A sample survey demonstrating the use of assessments is available for download. You can import this survey into your own LimeSurvey installation via the [[Surveys_-_introduction#Import_a_survey|import function]]: [[File:Limesurvey_sample_survey_Assessment.lss]].}}&lt;br /&gt;
&lt;br /&gt;
=Assessments= &amp;lt;!--T:9--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:39--&amp;gt;&lt;br /&gt;
Assessments page:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:40--&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;[[File:Assessments panel 1.png]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:41--&amp;gt;&lt;br /&gt;
To create new assessments rules complete the fields located below the &#039;&#039;&#039;Assessment rules&#039;&#039;&#039; table. The following options are available:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:24--&amp;gt;&lt;br /&gt;
*&#039;&#039;&#039;Scope:&#039;&#039;&#039; You can choose either &#039;&#039;Total&#039;&#039; or &#039;&#039;Group&#039;&#039;. The first will create an assessment based on the sum of all the submitted answers in the entire survey. The latter will create an assessment based on the sum of all the submitted answers from a question group;&lt;br /&gt;
*&#039;&#039;&#039;Group:&#039;&#039;&#039; The dropdown list allows you to choose the question group you wish to assess.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:42--&amp;gt;&lt;br /&gt;
{{Box|If you selected &#039;&#039;Total&#039;&#039; before, then the &#039;&#039;&#039;Group&#039;&#039;&#039; field will not influence the assessment of the survey answers - important when the &#039;&#039;&#039;{PERC}&#039;&#039;&#039; placeholder is used.}}&lt;br /&gt;
*&#039;&#039;&#039;Minimum:&#039;&#039;&#039; The minimum score to which this assessment will apply.&lt;br /&gt;
*&#039;&#039;&#039;Maximum:&#039;&#039;&#039; The maximum score of answers to which this assessment will apply;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:43--&amp;gt;&lt;br /&gt;
{{Box|Let&#039;s take again the example presented [[Assessments#How do assessments work|above]]. If a participant scored between 1 (minimum) and 10 (maximum), then the assessment feature would display a message telling the respondent that he or she has a good health condition. If he or she scored between 11 (minimum) and 20 (maximum), then the assessment feature would display on the last page a message related to the not-so-good health condition of the participant.}} &lt;br /&gt;
*&#039;&#039;&#039;Heading:&#039;&#039;&#039; The heading of the assessment that will appear if the assessment is going to be displayed;&lt;br /&gt;
*&#039;&#039;&#039;Message:&#039;&#039;&#039; The text message of the assessment - displayed at the end of the survey to the participants. You can use placeholders such as &#039;&#039;&#039;{PERC}&#039;&#039;&#039; and/or &#039;&#039;&#039;{TOTAL}&#039;&#039;&#039; to emphasize the scores of each survey question group or the total survey score. Click the green pencil button to access the HTML-editor and enhance the final message of the assessment by adding colours, tables, images, etc.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:25--&amp;gt;&lt;br /&gt;
You can create as many assessments as you like, and you can create more than one assessment to display for a given score.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:44--&amp;gt;&lt;br /&gt;
After adding some assessments, the possible assessments actions will be displayed under the &#039;&#039;&#039;Actions&#039;&#039;&#039; column in the &#039;&#039;&#039;Assessments rules&#039;&#039;&#039; table. From there, you can either edit or delete an assessment rule:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:45--&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;[[File:Assessments panel 2.png]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:26--&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;simplebox&amp;quot;&amp;gt;[[File:help.png]] It is important to note that if you use assessments, you must ensure that you have not enabled the &#039;&#039;&#039;autoload the URL&#039;&#039;&#039; option. If it is enabled, no end page with the text of the assessment rule will be displayed anymore and LimeSurvey will automatically load the URL field from the [[Presentation]]. You can disable it from the same tab.&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==How Question Types Are Evaluated== &amp;lt;!--T:16--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:17--&amp;gt;&lt;br /&gt;
There are certain [[question types]] which can not be assessed or have to be assessed in a special way. Some of the questions cannot be used with the assessment feature. However, they can be replaced with question types that can be used with this feature. For example, a 5-point choice question can be replaced with a simple list (radio) question type. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:18--&amp;gt;&lt;br /&gt;
The following question types &#039;&#039;&#039;can always be assessed&#039;&#039;&#039;:&lt;br /&gt;
*Array dual scale&lt;br /&gt;
*Array &lt;br /&gt;
*Array by column&lt;br /&gt;
*List (Dropdown)&lt;br /&gt;
*List (Radio)&lt;br /&gt;
*List with comment&lt;br /&gt;
*Multiple options&lt;br /&gt;
*Multiple options with comments&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:46--&amp;gt;&lt;br /&gt;
&amp;lt;hr width=&amp;quot;50%&amp;quot; style=&amp;quot;margin:auto&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:21--&amp;gt;&lt;br /&gt;
The following list contains question types that &#039;&#039;&#039;cannot be assessed&#039;&#039;&#039;:&lt;br /&gt;
* 5 point choice&lt;br /&gt;
* Array (5 point choice)&lt;br /&gt;
* Array (10 point choice)&lt;br /&gt;
* Array (Increase, Same, Decrease)&lt;br /&gt;
* Array (Text)&lt;br /&gt;
* Array (Yes/No/Uncertain)&lt;br /&gt;
* Array (Numbers)&lt;br /&gt;
* Text display&lt;br /&gt;
* Date&lt;br /&gt;
* Gender&lt;br /&gt;
* Huge free text&lt;br /&gt;
* Language switch&lt;br /&gt;
* Long free text&lt;br /&gt;
* Multiple numerical input&lt;br /&gt;
* Numerical input&lt;br /&gt;
* Ranking&lt;br /&gt;
* Short free text&lt;br /&gt;
* Yes/No&lt;br /&gt;
&lt;br /&gt;
==Set Assessment Values For Each Answer/Label== &amp;lt;!--T:13--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:47--&amp;gt;&lt;br /&gt;
If enabled, the assessment mode will add an additional field between the answer code and answer option name for all the questions to be assessed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:31--&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;[[File:Assesment_value_set.png]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:48--&amp;gt;&lt;br /&gt;
You can also use label sets as answers options for your set of questions. Just click the &#039;&#039;&#039;Predefined label sets...&#039;&#039;&#039; button located under the answers matrix and select your predefined label set.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:49--&amp;gt;&lt;br /&gt;
If you decide to use label sets, assessment values can be added to all your labels from the moment they are first created. This allows the survey administrator to quickly use predefined label sets with assessment values as answers for multiple sets of questions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:50--&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;[[File:Labels table.png]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:51--&amp;gt;&lt;br /&gt;
This process is less time-consuming and more practical. You can create a plan in the early stages of your survey to use only one set of label sets with predefined assessment values for multiple questions. This way, you will not have to manually add assessment values to all the answers of the questions used in your survey to be assessed.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:52--&amp;gt;&lt;br /&gt;
{{Note|To find out more about the label sets and their usage, read the following [[Label sets|wiki section]].}}&lt;br /&gt;
&lt;br /&gt;
==Assessment Placeholders== &amp;lt;!--T:27--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:28--&amp;gt;&lt;br /&gt;
When using assessments the following placeholders are available:&lt;br /&gt;
* &#039;&#039;&#039;{PERC}&#039;&#039;&#039;: Displays the score of a question group. &#039;&#039;&#039;It can be used only in the message field of the assessment rule!&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;{TOTAL}&#039;&#039;&#039;: Displays the total score. &#039;&#039;&#039;It can be used only in the message field of the assessment rule!&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;{ASSESSMENT_CURRENT_TOTAL}&#039;&#039;&#039;: This placeholder can be used within a survey to display the current total score. Keep in mind that the score is only updated when the respondent clicks the &amp;quot;Next&amp;quot; button. Therefore, it is useless in an &#039;&#039;all-in-one&#039;&#039; survey. Also, its use requires the existence of at least one assessment rule. Otherwise, the placeholder will not display any value.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:92--&amp;gt;&lt;br /&gt;
If your survey is &#039;&#039;&#039;not&#039;&#039;&#039; anonymous,  the following placeholders are available.&lt;br /&gt;
* &#039;&#039;&#039;{TOKEN:EMAIL}&#039;&#039;&#039;: Displays the email of the respondent from the survey participants table&lt;br /&gt;
* &#039;&#039;&#039;{TOKEN:FIRSTNAME}&#039;&#039;&#039;: Displays the first name of the respondent from the survey participants table&lt;br /&gt;
* &#039;&#039;&#039;{TOKEN:LASTNAME}&#039;&#039;&#039;: Displays the last name of the respondent from the survey participants table&lt;br /&gt;
* &#039;&#039;&#039;{TOKEN}&#039;&#039;&#039;: Displays the token code of the respondent from the survey participants table&lt;br /&gt;
&lt;br /&gt;
=Tips &amp;amp; Tricks= &amp;lt;!--T:29--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Save Assessment Value in Data == &amp;lt;!--T:93--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:94--&amp;gt;&lt;br /&gt;
To save assessment value in data and have it in an export : you can create a [[Question_type_-_Equation]] and put &#039;&#039;&#039;{ASSESSMENT_CURRENT_TOTAL}&#039;&#039;&#039; in the equation setting.&lt;br /&gt;
&lt;br /&gt;
== Use {ASSESSMENT_CURRENT_TOTAL} Without Assessment Message == &amp;lt;!--T:95--&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:96--&amp;gt;&lt;br /&gt;
If you choose not to add an assessment message, then no assessment message is shown.&lt;br /&gt;
&lt;br /&gt;
=How to Disable the Assessment Mode= &amp;lt;!--T:54--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:55--&amp;gt;&lt;br /&gt;
To deactivate assessment mode, go to the &#039;&#039;&#039;Survey menu&#039;&#039;&#039; and click the &#039;&#039;&#039;Data management&#039;&#039;&#039; tab. The &#039;&#039;&#039;Notification and data management&#039;&#039;&#039; panel will be displayed. Click the &#039;&#039;&#039;Enable assessment mode&#039;&#039;&#039; option and disabled  it for the respective survey.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:56--&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;[[File:Disable assessment mode - picture.png]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Examples= &amp;lt;!--T:57--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==How To Use the Assessment Mode== &amp;lt;!--T:58--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:59--&amp;gt;&lt;br /&gt;
Let&#039;s recreate the [[Assessments#How do assessments work|example presented above]] to better understand the steps you have to pursue in order to correctly use the assessment feature.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:60--&amp;gt;&lt;br /&gt;
{{Note|If you are unsure of how to create a survey, refer to the [[Quick start guide#Create a survey|quick start guide.]]}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:61--&amp;gt;&lt;br /&gt;
1) [[Surveys_-_introduction#Create_a_new_survey|Create the survey]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:62--&amp;gt;&lt;br /&gt;
2) [[Assessments#Introduction|Activate the assessments]]. Go to the settings menu of the survey and click the &#039;&#039;&#039;Assessments&#039;&#039;&#039; tab. Once there, activate the feature:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:63--&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;[[File:LS3 - enable assessments.png]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:64--&amp;gt;&lt;br /&gt;
3) [[Question_groups_-_introduction|Create a question group]] and [[Questions - introduction|start adding the questions]]. Your survey structure should look like this:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:65--&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;[[File:Example assessment - question group.png]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:66--&amp;gt;&lt;br /&gt;
{{Alert|title=Attention|text=Do not forget to check whether the questions are the types that can be assessed! Otherwise, no assessment value field will be displayed in the edit answer options panel.}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:67--&amp;gt;&lt;br /&gt;
4) [[Adding_answers_or_subquestions|Add answers]] for each question created above. While adding/editing the answers, complete also the assessment value field for each answer:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:68--&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;[[File:Example assessment - edit answers.png]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:69--&amp;gt;&lt;br /&gt;
5) Now that you know the assessment values, access the &#039;&#039;&#039;Assessments&#039;&#039;&#039; panel and start [[Assessments#Assessments|adding assessment rules]]. Two rules were created for this example: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:70--&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;[[File:Assessments_example_-_assessment_rules.png]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:71--&amp;gt;&lt;br /&gt;
The text message of the first assessment rule (&#039;&#039;You should start exercising!&#039;&#039;) will be displayed if the respondent scores between 1 and 10 points. The text message of the second assessment rule (&#039;&#039;Well, that&#039;s what I call being healthy!&#039;&#039;) will be shown if the respondent scores between 11 and 21 points.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:72--&amp;gt;&lt;br /&gt;
6) Now, preview the survey and see if the assessment mode is active. At the end of the survey, a text message will be displayed based on the score obtained by the respondent. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:73--&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;simplebox&amp;quot;&amp;gt;[[File:help.png]] &#039;&#039;&#039;Note:&#039;&#039;&#039; The score is not displayed in this example! If you would like to have it displayed in your assessment, create more assessment rules (for each possible scenario) or use assessment placeholders.&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:74--&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;[[File:Assessment results.png]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==How To Use the Assessment Placeholders== &amp;lt;!--T:75--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:76--&amp;gt;&lt;br /&gt;
As mentioned in [[Assessments#Assessment placeholders|the previous subsection]], three assessment-related placeholders can be used: &#039;&#039;&#039;{PERC}&#039;&#039;&#039;, &#039;&#039;&#039;{TOTAL}&#039;&#039;&#039;, and &#039;&#039;&#039;{ASSESSMENT_CURRENT_TOTAL}&#039;&#039;&#039;. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:77--&amp;gt;&lt;br /&gt;
In the previous example, the following result was obtained: &#039;&#039;&amp;quot;Well, that&#039;s what I call being healthy!&amp;quot;&#039;&#039;. However, no score was displayed. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:78--&amp;gt;&lt;br /&gt;
There are different ways to have the score displayed. You can either create 6 assessment rules to emphasize each possible score/result or use assessment placeholders. The below example explains the latter option.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:79--&amp;gt;&lt;br /&gt;
[[Assessments#Assessment placeholders|As mentioned above]], &#039;&#039;&#039;{PERC}&#039;&#039;&#039; and &#039;&#039;&#039;{TOTAL}&#039;&#039;&#039; can be used in the message text box of the assessment rule to emphasize the score of the current group and the total score, respectively. Let&#039;s take a look at the following two screenshots to understand their usage.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:80--&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;[[File:Example perc - assessments - part 1.png]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:81--&amp;gt;&lt;br /&gt;
In the first screenshot, {PERC} and {TOTAL} were added into the message text box of the assessment rule.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:82--&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;[[File:Example perc - assessments - part 2.png]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:83--&amp;gt;&lt;br /&gt;
In the second screenshot, you can see how the assessment rule looks to correctly use both placeholders. Because &#039;&#039;&#039;{PERC}&#039;&#039;&#039; is used, the &#039;&#039;&#039;scope&#039;&#039;&#039; of the assessment rule must be switched from &#039;&#039;Total&#039;&#039; to &#039;&#039;Group&#039;&#039; to correctly display the score of the question group selected from the &#039;&#039;&#039;Question group&#039;&#039;&#039; dropdown list:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:84--&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;[[File:Example assessment - right question group.png]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:85--&amp;gt;&lt;br /&gt;
After completing the survey and depending on their answers, the participants should receive the following assessment message at the end:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:86--&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;[[File:Assessment results - perc and total.png]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:87--&amp;gt;&lt;br /&gt;
&amp;lt;hr width=&amp;quot;50%&amp;quot; style=&amp;quot;margin:auto&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:88--&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;{ASSESSMENT_CURRENT_TOTAL}&#039;&#039;&#039; can be used only inside a survey. You can use it after each question or question group from a quiz. This way you could show each participant his or her current quiz/survey score. To use it, you could add, for example, at the beginning of every question or question group a message like: &amp;quot;You have accumulated till now  &#039;&#039;&#039;{ASSESSMENT_CURRENT_TOTAL}&#039;&#039;&#039; points&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:89--&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;simplebox&amp;quot;&amp;gt;[[File:help.png]] &#039;&#039;&#039;Hint:&#039;&#039;&#039; Check the [https://www.youtube.com/watch?v=s5OOzDoPjIU following YouTube video] to see other situations where you can use placeholders.&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Video tutorial= &amp;lt;!--T:90--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:91--&amp;gt;&lt;br /&gt;
To understand the basics of the LimeSurvey assessments feature, watch the following [https://www.youtube.com/watch?v=aeb93vAe7R4 video]. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;/translate&amp;gt;&lt;/div&gt;</summary>
		<author><name>Joeyh278</name></author>
	</entry>
	<entry>
		<id>https://www.limesurvey.org/manual/index.php?title=Label_sets&amp;diff=374728</id>
		<title>Label sets</title>
		<link rel="alternate" type="text/html" href="https://www.limesurvey.org/manual/index.php?title=Label_sets&amp;diff=374728"/>
		<updated>2024-02-26T04:14:47Z</updated>

		<summary type="html">&lt;p&gt;Joeyh278: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&amp;lt;languages /&amp;gt; &lt;br /&gt;
&amp;lt;translate&amp;gt;&lt;br /&gt;
&amp;lt;!--T:1--&amp;gt;&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
=General= &amp;lt;!--T:31--&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:4--&amp;gt;&lt;br /&gt;
Label sets are list templates where each list has a set of codes with labels and can be used in most question types either as answers or as subquestions. Please bear in mind that LimeSurvey&#039;s label sets are merely copied to the particular question as subquestions or answers. Therefore, if you change a label set after you have &#039;used&#039; it in a questionnaire, the changes will not propagate to the questions from the questionnaire where the respective label set is utilized.&lt;br /&gt;
    &lt;br /&gt;
This new usage of label sets gives much more flexibility for future development and makes the structure of a question more logical.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:6--&amp;gt;&lt;br /&gt;
{{Alert|title=Attention|text=A label set must contain the same base language as the survey, or you will not be able to use it for any question of your survey.}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:7--&amp;gt;&lt;br /&gt;
Below is a label set example to help you better grasp the concept. [[Label sets#Label sets - how to...|Click here]] if you want to go straight to the label set management functions of LimeSurvey. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:32--&amp;gt;&lt;br /&gt;
If you want to define a custom 7-point scale, a label set provides this function. In the example below, a very simple custom label set with the code/label pairs (&#039;&#039;&#039;the label is what appears in the actual questions&#039;&#039;&#039;).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:8--&amp;gt;&lt;br /&gt;
{|class=wikitable&lt;br /&gt;
|&#039;&#039;&#039;Code&#039;&#039;&#039;||&#039;&#039;&#039;Label&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|1||Not useful at all&lt;br /&gt;
|-&lt;br /&gt;
|2||2&lt;br /&gt;
|-&lt;br /&gt;
|3||3&lt;br /&gt;
|-&lt;br /&gt;
|4||Somewhat useful&lt;br /&gt;
|-&lt;br /&gt;
|5||5&lt;br /&gt;
|-&lt;br /&gt;
|6||6&lt;br /&gt;
|-&lt;br /&gt;
|7||Very useful&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:9--&amp;gt;&lt;br /&gt;
Below is a graphical example where three different smileys are used instead of label text:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:11--&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;[[File:3xSmiley-Question.gif]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Label sets - how to...= &amp;lt;!--T:12--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:13--&amp;gt;&lt;br /&gt;
Click &#039;&#039;&#039;Manage label sets&#039;&#039;&#039; in the &#039;&#039;&#039;Configuration&#039;&#039;&#039; menu to edit, create, delete, import, and/or export label sets.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:30--&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;[[File:labels.png]]&amp;lt;/center&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==...create or import new label set(s)== &amp;lt;!--T:14--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:33--&amp;gt;&lt;br /&gt;
Click the &#039;&#039;&#039;Create or import new label set(s)&#039;&#039;&#039; button located in the upper-left corner of the page. You can either create a new label set or import it from [https://www.limesurvey.org/index.php/downloads/category/19-templates another source]:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:34--&amp;gt;&lt;br /&gt;
*&#039;&#039;&#039;New label set:&#039;&#039;&#039; Label sets must be manually created.&lt;br /&gt;
**&#039;&#039;&#039;Set Name:&#039;&#039;&#039; Each new label set has to be given a name.&lt;br /&gt;
**&#039;&#039;&#039;Languages:&#039;&#039;&#039; Every label set must be specified for the language it&#039;s used for. You can choose as many languages from the menu as you want.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:20--&amp;gt;&lt;br /&gt;
*&#039;&#039;&#039;Import label set(s):&#039;&#039;&#039; In order to import a label set, click browse and add the &#039;&#039;&#039;.lsl&#039;&#039;&#039; label set file. If you have previously created a label set, then LimeSurvey will not allow you import a similar external label set unless you turn off the &#039;&#039;Don&#039;t import if label set already exists&#039;&#039; option. &#039;&#039;&#039;Some useful label sets are available on the [https://www.limesurvey.org/index.php/downloads/category/19-templates LimeSurvey website]&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:35--&amp;gt;&lt;br /&gt;
Once the label has been imported or created, click the Save button located in the right-upper part of the screen.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:36--&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;[[File:Save_Close.jpg]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:37--&amp;gt;&lt;br /&gt;
{{Note|If you import a whole survey, the label sets are imported too (with the questions). Duplicated label sets are ignored.}}&lt;br /&gt;
&lt;br /&gt;
==...edit, delete, or export a label set== &amp;lt;!--T:16--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:17--&amp;gt;&lt;br /&gt;
Each label set located in the &#039;&#039;&#039;Label sets&#039;&#039;&#039; list has a corresponding menu that contains the following four options:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:72--&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;[[File:Edit menu labels.png|150px]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:73--&amp;gt;&lt;br /&gt;
*&#039;&#039;&#039;View labels:&#039;&#039;&#039; Allows the user to view the existing labels located in the respective label set.&lt;br /&gt;
*&#039;&#039;&#039;Edit label set:&#039;&#039;&#039; The user can rename the label set and/or add/remove languages.&lt;br /&gt;
*&#039;&#039;&#039;Export label set:&#039;&#039;&#039; Export label set to a .lsl file.&lt;br /&gt;
*&#039;&#039;&#039;Delete label set:&#039;&#039;&#039; A window will pop up in order to confirm whether you want to delete the respective label set or not.&lt;br /&gt;
&lt;br /&gt;
=Labels - how to...= &amp;lt;!--T:25--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==...add a label== &amp;lt;!--T:38--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:18--&amp;gt;&lt;br /&gt;
You must fill in a label code, an assessment value, and a label description. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:74--&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;[[File:Labels table.png]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:75--&amp;gt;&lt;br /&gt;
Then, click the plus sign [[File:Add label.png]] to add the new label. It&#039;s possible to use a graphic instead of (or in addition to) a label text. To do that, you must use HTML-code to include the graphic you want, e.g.:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:19--&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;html4strict&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;img border=&amp;quot;0&amp;quot; src=&amp;quot;http://www.yourdomain.at/pics/pic.gif&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:39--&amp;gt;&lt;br /&gt;
{{Note|Read also our wiki on [[Assessments|assessments]]. The column is ignored if you set all the values to 0.}} &lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:40--&amp;gt;&lt;br /&gt;
To help with the editing process of the HTML-code, use the embedded HTML editor of LimeSurvey, which is located at the end of the label-text box (click on the green pen button -&amp;gt;[[File: HTML editor.png|0.85px]]).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:41--&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;[[File:Labels HTML editor.png]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:42--&amp;gt;&lt;br /&gt;
{{Note|For a short introduction on the HTML editor utilized by LimeSurvey, check [[First_login_-_your_user_preferences#Your_account_preferences#Your_personal_settings#HTML_editor_mode|the following page]].}}&lt;br /&gt;
&lt;br /&gt;
===Quick add=== &amp;lt;!--T:43--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:44--&amp;gt;&lt;br /&gt;
Another way to add labels is to use the &#039;&#039;&#039;Quick add...&#039;&#039;&#039; button. When you click it, a window be displayed. It works under the following form: &#039;&#039;&#039;Code ; Title&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:45--&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;[[File:QuickAddCodeLabel.png|0.8px]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:46--&amp;gt;&lt;br /&gt;
You can either replace or add labels. If you click &#039;&#039;&#039;Replace&#039;&#039;&#039;, all the preexisting labels will be deleted and replaced by the ones entered by you. If you click &#039;&#039;&#039;Add&#039;&#039;&#039;, the new labels will be added into the label set (the preexisting ones not being affected).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:47--&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;[[File:QuickAddResultsCodeandTitle.png|0.8px]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:48--&amp;gt;&lt;br /&gt;
The &#039;&#039;&#039;Code&#039;&#039;&#039; is automatically added if new entrances are created. Therefore, you can type in only the title of the labels which will automatically be assigned a code:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:49--&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;[[File:QuickAddLabel.png|0.8px]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:76--&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;[[File:QuickAddLabelResults.png|0.8px]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:50--&amp;gt;&lt;br /&gt;
The &#039;&#039;assessment values&#039;&#039; cannot be edited/entered via this option - it has to be changed manually from the list of labels.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:51--&amp;gt;&lt;br /&gt;
{{Alert|title=Attention|text=If you wish to translate labels by using the &#039;&#039;&#039;Quick add...&#039;&#039;&#039; function, you need to add the translation on the same line(s) and be separated by a semicolon.}}&lt;br /&gt;
&lt;br /&gt;
==...delete a label== &amp;lt;!--T:21--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:52--&amp;gt;&lt;br /&gt;
To delete a label, click the red trash button ([[File:Delete label.png|0.85px]]) located under the &#039;Action&#039; column.&lt;br /&gt;
&lt;br /&gt;
==...rearrange a label== &amp;lt;!--T:53--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:54--&amp;gt;&lt;br /&gt;
To rearrange the order of the labels, click the green sign ([[File:Reorder labels.png|0.85px]]) located under the column called &#039;Position&#039; and re-position the label.&lt;br /&gt;
&lt;br /&gt;
==...add a new language== &amp;lt;!--T:22--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:55--&amp;gt;&lt;br /&gt;
To add a new language: &#039;&#039;&#039;Create or import new label set(s)&#039;&#039;&#039; -&amp;gt; &#039;&#039;&#039;Languages&#039;&#039;&#039; -&amp;gt; select the languages you wish to add. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:56--&amp;gt;&lt;br /&gt;
To start translating the labels into another language, select the language in which you would like to translate the labels to from the upper part of the matrix.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:77--&amp;gt;&lt;br /&gt;
[[File:Labels switch language.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:78--&amp;gt;&lt;br /&gt;
[[File:Labels 4lang ro.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:26--&amp;gt;&lt;br /&gt;
Every label needs a code, an assessment value, and a description (as mentioned above). While the label description can be edited for all language options, label codes and assessment values can be edited only from the first language option that is located on the languages toolbar of the matrix. The order of the languages is alphabetical and cannot be changed. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:57--&amp;gt;&lt;br /&gt;
In our case, the language from where the label codes and assessment values can be changed is English. Only the label description can be edited when the Romanian tab is selected  - which represents the corresponding Romanian label translation of the English label.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:58--&amp;gt;&lt;br /&gt;
Once you are done with the changes, do not forget to click on the &#039;Save changes&#039; button located in the upper-right part of the screen.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:59--&amp;gt;&lt;br /&gt;
[[File:Save_changes_close.png]]&lt;br /&gt;
&lt;br /&gt;
=Examples= &amp;lt;!--T:27--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:60--&amp;gt;&lt;br /&gt;
{{Box|&#039;&#039;Before reading further, take a look at our [[Surveys - introduction|wiki on how to create surveys]] since it is already assumed in the examples from below that you have already created your survey.&#039;&#039;}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:61--&amp;gt;&lt;br /&gt;
For a better understanding of the label sets option, let&#039;s take a look at the following examples:&lt;br /&gt;
*[[Label_sets#I_want_to_use_a_label_set_as_an_answer_list_for_one_question| I want to use a label set as an answer list for one question]];&lt;br /&gt;
*[[Label sets#I want to use labels in another language as answers|I want to use labels in another language as answers]];&lt;br /&gt;
*[[Label sets#I want to use emoticons instead of label text|I want to use emoticons instead of label text]];&lt;br /&gt;
*[[Label sets#I want to import a label set and use it as a subquestion list|I want to import a label set and use it as a subquestion list]].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:62--&amp;gt;&lt;br /&gt;
{{Box|The screenshots used below are from LimeSurvey 3.0, the interface being slightly different from the last LimeSurvey 2.xx release.}}&lt;br /&gt;
&lt;br /&gt;
==I want to use a label set as an answer list for one question== &amp;lt;!--T:79--&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:80--&amp;gt;&lt;br /&gt;
&amp;lt;div class=&#039;simplebox&#039;&amp;gt;[[File:help.png]] All the label sets that are displayed under &#039;&#039;&#039;Configuration&#039;&#039;&#039; -&amp;gt; &#039;&#039;&#039;Label sets&#039;&#039;&#039; are called &#039;&#039;predefined label sets&#039;&#039;. They can be used either as subquestions or as answers.&amp;lt;/div&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:63--&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Assuming that the [[Label sets#General|label set]] and [[Surveys - introduction|survey]] are created:&#039;&#039;&#039;&lt;br /&gt;
*Go to the structure of the survey and create a [[Creating a question group|question group]] - &#039;&#039;About LimeSurvey&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:81--&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;[[File:CreateQuestionGroup.png]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:82--&amp;gt;&lt;br /&gt;
*Click the Structure tab and then on the newly created question group (&#039;&#039;About LimeSurvey&#039;&#039; in our case). Look for group quick actions and choose &#039;&#039;&#039;Add new question to group&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:83--&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;[[File:AddNewQuestiontoGroup.png]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:84--&amp;gt;&lt;br /&gt;
*Type in the code and text of the question.&lt;br /&gt;
*To use a label set as a set of answers, pick the right type of question that can make use of label sets. The &#039;&#039;array&#039;&#039; question type is selected in our example: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:85--&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;[[File:ArrayQuestionTypeLabelSets.png]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:86--&amp;gt;&lt;br /&gt;
*Save the question to add it into your question group.&lt;br /&gt;
*Once created, you will have to add subquestions and answers:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:87--&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;[[File:EditSubquestionsandAnswerOptions.png]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:64--&amp;gt;&lt;br /&gt;
&amp;lt;div class=&#039;simplebox&#039;&amp;gt;[[File:help.png]] Please note that not all question types ask for subquestions and/or answers!&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:65--&amp;gt;&lt;br /&gt;
*Add at least one subquestion:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:88--&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;[[File:ArraySubquestions.png]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:89--&amp;gt;&lt;br /&gt;
*Add answer options. &#039;&#039;&#039;Predefined label sets...&#039;&#039;&#039; option will be used:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:90--&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;[[File:EditAnswerOptions.png]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:91--&amp;gt;&lt;br /&gt;
*Select the label set you want to use:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:92--&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;[[File:AvailableLabelSetsEnglish.png|0.7px]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:93--&amp;gt;&lt;br /&gt;
The result should look like this:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:94--&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;[[File:EditAnswerOptionsResults.png]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:95--&amp;gt;&lt;br /&gt;
*Save &amp;amp; preview the question:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:96--&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;[[File:LabelSetsFinal.png]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==I want to use labels in another language as answers== &amp;lt;!--T:66--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:67--&amp;gt;&lt;br /&gt;
{{Box|Before reading this example:&lt;br /&gt;
#Create a label set and select the other languages you would like to use in your survey. For further details, read our wiki on [[Label sets#...add a new language|how to translate a label set in other languages.]]&lt;br /&gt;
#Edit your survey (&#039;&#039;&#039;Settings&#039;&#039;&#039; -&amp;gt; &#039;&#039;&#039;General Settings&#039;&#039;&#039;) by adding the additional languages you want to translate to. For more details on how to create a survey, read [[Surveys - introduction|the following wiki]].}}&lt;br /&gt;
&#039;&#039;&#039;Assuming that the [[Label sets#General|label set]] and [[Surveys - introduction|survey]] are created:&#039;&#039;&#039;&lt;br /&gt;
*Create a question that can make use of label sets (e.g. &#039;&#039;array&#039;&#039; question type):&lt;br /&gt;
{{Alert|title=Attention|text=Do not forget to select the language you want to translate to from the languages toolbar!}}&lt;br /&gt;
*Because the &#039;&#039;array&#039;&#039; question type is selected, both the subquestions and answers need to be translated.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:97--&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;[[File:EditSubquestionsandAnswerOptions.png]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:98--&amp;gt;&lt;br /&gt;
*Translate the subquestions. Do not forget to select the right language tab for translation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:99--&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;[[File:ExampleAddLanguageSubquestions.png]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:100--&amp;gt;&lt;br /&gt;
*Translate the answers. However, because we use predefined label sets, select the right language tab to add the translated label set as answer options:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:101--&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;[[File:AvailableLabelSetsRomanian.png]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:102--&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;[[File:ExampleEditAnswerOptionsRomanian.png]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:103--&amp;gt;&lt;br /&gt;
*Save &amp;amp; Preview the survey:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:104--&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;[[File:PreviewAddRomanianLabels.png]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==I want to use emoticons instead of label text== &amp;lt;!--T:68--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:69--&amp;gt;&lt;br /&gt;
{{Box|To use emoticons (or any other graphics) , you have to use the embedded HTML editor when creating labels.}}&lt;br /&gt;
&#039;&#039;&#039;Assuming that the [[Surveys - introduction|survey]] is created:&#039;&#039;&#039;&lt;br /&gt;
*[[Label sets#...add a label|Create a label set and access it]]. Instead of writing in the &#039;&#039;Title&#039;&#039; column, open the HTML editor by clicking on the green pen and add graphics instead of text:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:105--&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;[[File:GreenPenButtonHTMLLabels.png]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:106--&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;[[File:InlineMode1.PNG]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:107--&amp;gt;&lt;br /&gt;
The HTML editor offers you a more comprehensive view on how different options can be used to enhance your survey. It is not necessary to have HTML knowledge because the toolbar is self-explaining (for further details you can either hover the mouse over the options or click on that option for more details). By using such an editor, you can also add (for example) smileys, images and/or videos that are either hosted online or on your server. &lt;br /&gt;
In this example. three smileys have been added:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:108--&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;[[File:SmileysLabelsExample.png]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:109--&amp;gt;&lt;br /&gt;
*Create a question that can make use of label sets as predefined answers (e.g. &#039;&#039;array&#039;&#039; question type):&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:110--&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;[[File:New Question Label Sets Emoticons.png]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:111--&amp;gt;&lt;br /&gt;
*Edit the subquestions and the answer options&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:112--&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;[[File:EditSubquestionsandAnswerOptions.png]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:113--&amp;gt;&lt;br /&gt;
*Set predefined labels as answer options.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:114--&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;[[File:SmileysLabelsExample.png|SmileysLabelsExample.png]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:115--&amp;gt;&lt;br /&gt;
*Save and preview the question:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:116--&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;[[File:Preview Label Set Emoticons.png]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==I want to import a label set and use it as a subquestion list== &amp;lt;!--T:70--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:71--&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Assuming that the [[Surveys - introduction|survey]] is created:&#039;&#039;&#039;&lt;br /&gt;
{{Box|&#039;&#039;Optional&#039;&#039;: Access [https://www.limesurvey.org/index.php/downloads/category/19-templates &#039;&#039;&#039;LimeSurvey templates database&#039;&#039;&#039;] and download the one you wish to use - .lsl file format (&#039;&#039;Australian states&#039;&#039; in our example).}}&lt;br /&gt;
*Go to &#039;&#039;&#039;Configuration&#039;&#039;&#039; and click &#039;&#039;&#039;Manage label sets&#039;&#039;&#039; button.&lt;br /&gt;
*Click &#039;&#039;&#039;Create or import new label set(s)&#039;&#039;&#039; (in the upper-left side of the screen) -&amp;gt; &#039;&#039;&#039;Import label set(s)&#039;&#039;&#039;. &#039;&#039;&#039;Browse&#039;&#039;&#039; your computer and select the .lsl file (the label set format).&lt;br /&gt;
&amp;lt;center&amp;gt;[[File:ImportaNewLabel.png]]&amp;lt;/center&amp;gt;&lt;br /&gt;
* Now that the label set was uploaded, create a question that requires the usage of subquestions (&#039;&#039;array&#039;&#039; question types).&lt;br /&gt;
* Edit subquestions.&lt;br /&gt;
&amp;lt;center&amp;gt;[[File:EditSubquestionsandAnswerOptions.png]]&amp;lt;/center&amp;gt;&lt;br /&gt;
* Load the imported label set:&lt;br /&gt;
&amp;lt;center&amp;gt;[[File:Australia Code Label.png]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;[[File:Australia Label Set.png]]&amp;lt;/center&amp;gt;&lt;br /&gt;
* Save and preview.&lt;br /&gt;
&amp;lt;center&amp;gt;[[File:Australia Save and Preview.png]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/translate&amp;gt;&lt;/div&gt;</summary>
		<author><name>Joeyh278</name></author>
	</entry>
	<entry>
		<id>https://www.limesurvey.org/manual/index.php?title=Questions_-_introduction&amp;diff=374727</id>
		<title>Questions - introduction</title>
		<link rel="alternate" type="text/html" href="https://www.limesurvey.org/manual/index.php?title=Questions_-_introduction&amp;diff=374727"/>
		<updated>2024-02-26T03:58:48Z</updated>

		<summary type="html">&lt;p&gt;Joeyh278: make sentence clearer&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;languages /&amp;gt; &amp;lt;translate&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:1--&amp;gt;&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:31--&amp;gt;&lt;br /&gt;
{{Alert|title=Attention|text=Please note that the explanations and screenshots from this wiki section are based on LimeSurvey 3.}}&lt;br /&gt;
&lt;br /&gt;
=Introduction= &amp;lt;!--T:2--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:3--&amp;gt;&lt;br /&gt;
Once you have [[Question groups - introduction#create a question group|created your question groups]], you can start adding questions within each group. There are multiple ways through which you can do that. Two solutions are presented below:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:32--&amp;gt;&lt;br /&gt;
* You may add questions from the [[Survey structure|survey structure menu]];&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:33--&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;[[File:Survey structure - add new question.png]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:34--&amp;gt;&lt;br /&gt;
* Access a question group and look for the &#039;&#039;add question&#039;&#039; quick action button;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:35--&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;[[File:Question group - add a new question.png]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Field descriptions= &amp;lt;!--T:5--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:4--&amp;gt;&lt;br /&gt;
When adding a question, you will be asked about the &#039;&#039;&#039;question code&#039;&#039;&#039;, &#039;&#039;&#039;question&#039;&#039;&#039; and &#039;&#039;&#039;help&#039;&#039;&#039; texts, and the general question options: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:38--&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;[[File:Add a question - 1.png]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:39--&amp;gt;&lt;br /&gt;
*&#039;&#039;&#039;Question code:&#039;&#039;&#039; It represents the ID, number or code for the question that is used for quick identification. This field is normally not displayed to people taking the survey unless specified in the [[Presentation]] panel - &#039;&#039;&#039;Show question number and/or code&#039;&#039;&#039;. It is especially useful if you wish to use the [[Assessments|LimeSurvey assessments feature]] and/or the [[ExpressionScript - Presentation|ExpressionScript]].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:6--&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;simplebox&amp;quot;&amp;gt;[[File:help.png]] &#039;&#039;&#039;Note:&#039;&#039;&#039; The question &#039;&#039;&#039;code&#039;&#039;&#039; must be unique across the same survey, must start with a letter, and can only contain alphanumeric characters. If you ever try to export your data to SPSS or R, you will discover that the &amp;quot;qcode&amp;quot; becomes the value label, so you have to make the code unique. For the time being, LimeSurvey will support legacy code values, but the [[Show logic file|Show logic file]] button will color-code such questions so that you know you should change their names.&amp;lt;/div&amp;gt;&lt;br /&gt;
*&#039;&#039;&#039;Question:&#039;&#039;&#039; This is the actual question being asked. There is no real limit to the length of the question here, however if you want to explain how to fill out the question, leave that for the &amp;quot;Help&amp;quot; field. HTML-code can be used, e.g., for including images:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:40--&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;html&amp;quot; enclose=&amp;quot;pre&amp;quot;&amp;gt;       &lt;br /&gt;
&amp;lt;img src=&amp;quot;http://www.yourdomain.com/yourpics/pic.jpg&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:41--&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;simplebox&amp;quot;&amp;gt;[[File:help.png]] &#039;&#039;&#039;Hint:&#039;&#039;&#039; You can also use the HTML WYSIWYG editor, which offers a GUI to perform the most important tasks such as using different fonts or sizes, including images, etc. To find out more about it, read the following [[First_login_-_your_user_preferences#HTML_editor_mode|wiki section]].&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:42--&amp;gt;&lt;br /&gt;
*&#039;&#039;&#039;Help:&#039;&#039;&#039; This is an optional field. It is useful if a question needs some explanation or you want to explain how it should be answered. When you put text in this field, a &amp;quot;question mark&amp;quot; icon appears on the survey entry screens with the help text right beside it.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:60--&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;simplebox&amp;quot;&amp;gt;[[File:help.png]] &#039;&#039;&#039;Note:&#039;&#039;&#039; The &#039;&#039;&#039;General options&#039;&#039;&#039; tab is accessed by default when you wish to add/edit a question (on the right side of the panel). The most important attributes can be found here such as the question type, question theme, as well as the mandatory attribute. However, you can edit your question further by making use of all the other attributes located under the rest of the tabs (see the below screenshot). To find out more about the multitude ways of designing questions in LimeSurvey, please continue reading the following [[Question types|wiki section]].&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:61--&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;[[File:Add question - 2.png]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=General options= &amp;lt;!--T:43--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:44--&amp;gt;&lt;br /&gt;
Different tabs are displayed on the right part of the screen. The most basic and important one is the &#039;&#039;&#039;General options&#039;&#039;&#039; tab. The following question settings can be changed from here:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:45--&amp;gt;&lt;br /&gt;
*&#039;&#039;&#039;Question type:&#039;&#039;&#039; This determines the type of response the survey allows. View the [[Question types|question types]] section for a description on the various available options.&lt;br /&gt;
*&#039;&#039;&#039;Question group&#039;&#039;&#039;: To change the question group of a question, select from the dropdown list the desired group. &lt;br /&gt;
*&#039;&#039;&#039;Validation:&#039;&#039;&#039; This feature is available in all text- and numeric- type questions. You can use standard [[Using regular expressions|regular expressions]] in this field to validate the responses to the question, and if the responses don&#039;t validate against this expression, the user will be prompted to try again before he or she can progress further.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:7--&amp;gt;&lt;br /&gt;
*&#039;&#039;&#039;Other?:&#039;&#039;&#039; This option can be used only with certain question types. If enabled, the question will include as a possible answer an extra &amp;quot;other&amp;quot; option/answer box, which can be selected by the survey participant if he or she is not satisfied with the predefined answer options.&lt;br /&gt;
*&#039;&#039;&#039;Mandatory?:&#039;&#039;&#039; This setting allows you to require survey participants to answer all the mandatory questions before they can move on to the next question. Note that for ranking question, all items have to be ranked.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:9--&amp;gt;&lt;br /&gt;
*&#039;&#039;&#039;Condition&#039;&#039;&#039;: This is the ExpressionScript equation that specifies the question conditions. If it evaluates to true (1), the question will be displayed to the survey participant; otherwise it is hidden and since it is irrelevant, data for that question is NULLed in the database. Details about how to use this option can be found in the [[ExpressionScript - Presentation|ExpressionScript]] wiki section.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:71--&amp;gt;&lt;br /&gt;
*&#039;&#039;&#039;Encrypted&#039;&#039;&#039;: This setting is only available for some question types and determines if the saved response data is encrypted in the database. This gives an additional layer of security if your database gets hacked. However, it has some minor drawbacks, as you will not be able to search for partial texts in the response view and encrypting/decrypting also requires additional server resources.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:72--&amp;gt;&lt;br /&gt;
*&#039;&#039;&#039;Save as default values&#039;&#039;&#039;: This setting allows you to save the settings of the current question type as default settings for new questions. If you set it to &#039;On&#039;, it will save the default values, then automatically reset to &#039;Off&#039; after you saved.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:73--&amp;gt;&lt;br /&gt;
*&#039;&#039;&#039;Clear default values&#039;&#039;&#039;: With this setting, you can reset any default values saved by the function &#039;Save as default values&#039; and revert to system default values. If you set it to &#039;On&#039;, it will reset the default values, then automatically reset to &#039;Off&#039; after you saves.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:8--&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;simplebox&amp;quot;&amp;gt;[[File:help.png]] &#039;&#039;&#039;Note:&#039;&#039;&#039; As it can be observed in the above screenshot, many other options can be used besides the general options tab to customize your question. These more advanced question settings are different for each question type! Therefore, please consult the documentation for your particular [[Question types|question type]].&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Importing a question= &amp;lt;!--T:10--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:11--&amp;gt;&lt;br /&gt;
The following steps demonstrate how to import a question into a survey. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:62--&amp;gt;&lt;br /&gt;
(1) From within a survey, click the &#039;&#039;&#039;Structure&#039;&#039;&#039; tab.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:70--&amp;gt;&lt;br /&gt;
(2) From the &#039;&#039;Create question&#039;&#039; page, click &#039;&#039;&#039;Import a question&#039;&#039;&#039; at the top of the page.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:46--&amp;gt;&lt;br /&gt;
[[File:ImportQuestion.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:47--&amp;gt;&lt;br /&gt;
The &#039;&#039;Import a question&#039;&#039; options will be displayed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:48--&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;[[File:Import a question 2.png]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:49--&amp;gt;&lt;br /&gt;
(3) Click &#039;&#039;&#039;Browse&#039;&#039;&#039; and select the .lsq file (which is the LimeSurvey question-type format).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:63--&amp;gt;&lt;br /&gt;
(4) Select the &#039;&#039;&#039;Destination question group&#039;&#039;&#039; that you want to add the imported question into.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:64--&amp;gt;&lt;br /&gt;
(5) Choose whether or not you would like to &#039;&#039;&#039;Automatically rename the question code if it already exits&#039;&#039;&#039;.  If the question code already exists, enable this option to use another question code. You can also have two questions that use the same question code. However, some issues might appear if you use more complex LimeSurvey options such as the [[ExpressionScript - Presentation|ExpressionScript]] or when you work with the exported data in R or SPSS (qcode becoming a value label). &lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:50--&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;simplebox&amp;quot;&amp;gt;[[File:help.png]] &#039;&#039;&#039;Hint:&#039;&#039;&#039; To check if the question codes are unique across your survey, use the [[Show logic file]] LimeSurvey function to highlight the similar question codes.&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:51--&amp;gt;&lt;br /&gt;
(6) Choose whether or not to &#039;&#039;&#039;Convert resource links&#039;&#039;&#039;.  This option is usually used together with the  [[ExpressionScript - Presentation|ExpressionScript]]  to create advanced question types. If you use them together, complex branching, assessments, validation, and/or tailoring can be done.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:65--&amp;gt;&lt;br /&gt;
(7) Click &#039;&#039;&#039;Import&#039;&#039;&#039; located on the upper right part of the screen.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:52--&amp;gt;&lt;br /&gt;
The &#039;&#039;Question import summary&#039;&#039; will be displayed. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:53--&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;[[File:Import a question 3.png]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Information from survey participants table= &amp;lt;!--T:13--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:54--&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;simplebox&amp;quot;&amp;gt;[[File:help.png]] Please note that the token tables are called now survey participants tables.&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:14--&amp;gt;&lt;br /&gt;
You can insert information or text from the survey participants table into your question so that it can show context related information. For LimeSurvey to do this, the survey needs to be set as [[Participant settings#Participant settings panel|not anonymous]] (i.e: tracked) and it needs to have a [[Survey participants|survey participants table]] created.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:55--&amp;gt;&lt;br /&gt;
The following placeholders can be used within a question:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:15--&amp;gt;&lt;br /&gt;
{|&lt;br /&gt;
|{TOKEN:FIRSTNAME}||inserts the value from the &amp;quot;firstname&amp;quot; field located in the survey participants table&lt;br /&gt;
|-&lt;br /&gt;
|{TOKEN:LASTNAME}||inserts the value from the &amp;quot;lastname&amp;quot; field located in the survey participants table&lt;br /&gt;
|-&lt;br /&gt;
|{TOKEN:EMAIL}||inserts the value from the &amp;quot;email&amp;quot; field located in the survey participants table&lt;br /&gt;
|-&lt;br /&gt;
|{TOKEN:ATTRIBUTE_1}||inserts the value from the &amp;quot;attribute_1&amp;quot; field located in the survey participants table&lt;br /&gt;
|-&lt;br /&gt;
|{TOKEN:ATTRIBUTE_2}||inserts the value from the &amp;quot;attribute_2&amp;quot; field located in the survey participants table&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:16--&amp;gt;&lt;br /&gt;
To use any of the placeholders from above, you must type it/them as written above in the question field text. For example: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:17--&amp;gt;&lt;br /&gt;
&#039;&#039;Hello {TOKEN:FIRSTNAME}. We sent an email to you using this address {TOKEN:EMAIL}.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:59--&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;php&amp;quot; enclose=&amp;quot;pre&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:56--&amp;gt;&lt;br /&gt;
If you wish to further customize your questions, use the [[ExpressionScript - Presentation|ExpressionScript]]. For example, if you wish to make use of the tailoring technique, type in:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:23--&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;php&amp;quot;&amp;gt;What do you as a {TOKEN:ATTRIBUTE_1} think about your {if(TOKEN:ATTRIBUTE_1==&#039;worker&#039;,&#039;bosses&#039;,&#039;workers&#039;)}?&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:57--&amp;gt;&lt;br /&gt;
&amp;lt;hr width=&amp;quot;50%&amp;quot; style=&amp;quot;margin:auto&amp;quot;&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:18--&amp;gt;&lt;br /&gt;
You may also use JavaScript to achieve further question customization. First, you have to allow JavaScript to be used when setting up questions. This can be achieved by deactivating the XSS filter from the [[Global settings|global settings]] of your LimeSurvey installation. However, deactivating this option is not always a good idea - read the following [[Optional settings|wiki section]] for further information. Question tailoring via JavaScript:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:21--&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;php&amp;quot;&amp;gt;Hello {TOKEN:FIRSTNAME}. We sent an email to you using this address {TOKEN:EMAIL}. Is this correct?&lt;br /&gt;
What do you as a {TOKEN:ATTRIBUTE_1} think about your&lt;br /&gt;
&amp;lt;script type=&amp;quot;text/javascript&amp;quot; language=&amp;quot;Javascript&amp;quot;&amp;gt;;&lt;br /&gt;
   var job=&#039;{TOKEN:ATTRIBUTE_1}&#039;;&lt;br /&gt;
   if (job==&#039;worker&#039;) {&lt;br /&gt;
      document.write (&#039;bosses&#039;)&lt;br /&gt;
   } else {&lt;br /&gt;
      document.write(&#039;workers&#039;)&lt;br /&gt;
   }&lt;br /&gt;
&amp;lt;/script&amp;gt;&lt;br /&gt;
?&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Information from previous answers= &amp;lt;!--T:24--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:25--&amp;gt;&lt;br /&gt;
LimeSurvey allows survey administrators to insert an answer(s) from the previous question(s) into the text of a question:&lt;br /&gt;
*You can refer to answers on the same page and even dynamically update tailored messages as responses change on the page.&lt;br /&gt;
*You can use question code naming - for more details, see the [[ExpressionScript - Presentation|ExpressionScript]] documentation.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:27--&amp;gt;&lt;br /&gt;
A wizard has been integrated in the WYSIWYG HTML editor (FCKeditor), so that you can easily insert previous question/answer codes. This plugin is called &#039;&#039;LimeReplacementFields&#039;&#039;. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:66--&amp;gt;&lt;br /&gt;
In order to use this feature in the FCKeditor: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:67--&amp;gt;&lt;br /&gt;
(1) Click the &amp;quot;lime between brackets&amp;quot; icon.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:68--&amp;gt;&lt;br /&gt;
(2) Select a question from the select box.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:58--&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;[[File:Editor_replacementfields_button.png]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:69--&amp;gt;&lt;br /&gt;
Only answers from previous pages are displayed.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:28--&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;simplebox&amp;quot;&amp;gt;[[File:help.png]] &#039;&#039;&#039;LimeReplacementFields notice:&#039;&#039;&#039; When you want to delete a reference to a {name} tag, please select all characters from the opening bracket to the closing bracket and press delete: DO NOT erase it character by character with the delete or backspace key, otherwise the field will appear again.&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Styling questions= &amp;lt;!--T:29--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:30--&amp;gt;&lt;br /&gt;
It is possible to edit the question layout/design with CSS using [[Theme editor|the theme editor]].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/translate&amp;gt;&lt;/div&gt;</summary>
		<author><name>Joeyh278</name></author>
	</entry>
	<entry>
		<id>https://www.limesurvey.org/manual/index.php?title=Manage_user_groups&amp;diff=374726</id>
		<title>Manage user groups</title>
		<link rel="alternate" type="text/html" href="https://www.limesurvey.org/manual/index.php?title=Manage_user_groups&amp;diff=374726"/>
		<updated>2024-02-25T17:06:08Z</updated>

		<summary type="html">&lt;p&gt;Joeyh278: remove extra period&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;languages /&amp;gt; &amp;lt;translate&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=General= &amp;lt;!--T:7--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:8--&amp;gt;&lt;br /&gt;
The &#039;&#039;User groups&#039;&#039; functionality was added so that group administration users could be put into individual groups. &#039;&#039;&#039;However, this option is limited in functionality at the moment&#039;&#039;&#039;. There are no real permissions bound to a group. Groups serve more as a macro or textual convenience to work with groups of administration users.&lt;br /&gt;
&lt;br /&gt;
=User group management= &amp;lt;!--T:39--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:1--&amp;gt;&lt;br /&gt;
If you click the &#039;&#039;&#039;Create/edit user groups&#039;&#039;&#039; button located in the &#039;&#039;&#039;Configuration&#039;&#039;&#039; dialog, you will be taken to the &#039;&#039;&#039;user group&#039;&#039;&#039; management page.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:10--&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;[[File:usergroup.png]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:40--&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;[[File:UserGroupsListEmpty.png]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Create user groups== &amp;lt;!--T:41--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:42--&amp;gt;&lt;br /&gt;
To add a user group, click the &#039;&#039;&#039;Add new user group&#039;&#039;&#039; button located on the upper-left corner of the window. Type in the name and the description of the user group and click &#039;&#039;&#039;Save&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:43--&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;[[File:AddNewUserGroup.png]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:44--&amp;gt;&lt;br /&gt;
Now, you can add users to the newly created user group by selecting the desired user from the dropdown list and clicking the &#039;&#039;&#039;Add user&#039;&#039;&#039; button.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:45--&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;[[File:Adduserstoausergroup.png|0.75px]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:46--&amp;gt;&lt;br /&gt;
{{Hint|Text=You can see in the example below that the owner/creator of the user group is automatically added to his/her own user group..}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:47--&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;[[File:UserGroupMembersList.png]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:48--&amp;gt;&lt;br /&gt;
Click &#039;&#039;&#039;Close&#039;&#039;&#039; (upper-right part of the window) to go back to the user groups list. You can observe the newly added group in the list. The following details are provided in the table:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:49--&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;[[File:UserGroupsList.png]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:50--&amp;gt;&lt;br /&gt;
*&#039;&#039;User group ID&#039;&#039; : It shows a unique ID that is automatically assigned to each user group.&lt;br /&gt;
*&#039;&#039;Name&#039;&#039; : The name of the user group.&lt;br /&gt;
*&#039;&#039;Description&#039;&#039; : The description of the user group.&lt;br /&gt;
*&#039;&#039;Owner&#039;&#039; : The owner/creator of the user group. The owner cannot be changed. If this is necessary, you have to delete the group and create another one.&lt;br /&gt;
*&#039;&#039;Members&#039;&#039; : It shows the number of the members of the user group;&lt;br /&gt;
*&#039;&#039;Action&#039;&#039; : The last column shows a set of actions that are available for each user group from the user groups list. The following user group actions are presented below: &#039;&#039;&#039;view users&#039;&#039;&#039;, &#039;&#039;&#039;edit user group&#039;&#039;&#039;, &#039;&#039;&#039;email user group&#039;&#039;&#039;, and &#039;&#039;&#039;delete user group&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:51--&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;[[File:UserGroupsListActions.png]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==View user group members== &amp;lt;!--T:52--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:53--&amp;gt;&lt;br /&gt;
If you click the green table, a more detailed view of the members of the user group will be shown. &lt;br /&gt;
&lt;br /&gt;
==Edit user group== &amp;lt;!--T:54--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:55--&amp;gt;&lt;br /&gt;
Clicking the green pen allows you to edit the &#039;&#039;&#039;name&#039;&#039;&#039; and the &#039;&#039;&#039;description&#039;&#039;&#039; of the respective user group.&lt;br /&gt;
&lt;br /&gt;
==Email user group== &amp;lt;!--T:56--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:57--&amp;gt;&lt;br /&gt;
The green mail symbol allows the group administrator to send mass emails to the members of that user group. Its functionality includes:&lt;br /&gt;
*&#039;&#039;&#039;Send me a copy&#039;&#039;&#039;: If ticked, an email will be sent to the owner of the user group/the one who created the user group.&lt;br /&gt;
*&#039;&#039;&#039;Subject&#039;&#039;&#039;: Type in the desired subject of your email.&lt;br /&gt;
*&#039;&#039;&#039;Message&#039;&#039;&#039;: Type in the desired message you wish to send to the members of the user group.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:58--&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;[[File:EmailToAllMembers.png]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:59--&amp;gt;&lt;br /&gt;
Then, click the &#039;&#039;&#039;Send&#039;&#039;&#039; button located under the &#039;&#039;Message&#039;&#039; text box.&lt;br /&gt;
&lt;br /&gt;
==Delete user group== &amp;lt;!--T:60--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:61--&amp;gt;&lt;br /&gt;
To delete a user group, click the red wastebin button that is located on the line with the user group that you wish to delete and hit OK.&lt;br /&gt;
&lt;br /&gt;
=Grant survey permissions to a user group= &amp;lt;!--T:5--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:62--&amp;gt;&lt;br /&gt;
A &#039;&#039;&#039;user group&#039;&#039;&#039; can be used to offer [[Manage users#Set permissions for a single survey|specific survey permissions]], like editing the questions, activating the survey, and/or viewing the responses among others. Adding a &#039;&#039;&#039;user group&#039;&#039;&#039; behaves like a macro function that simply adds all the current members of the &#039;&#039;&#039;user group&#039;&#039;&#039; with the same privileges at that same time to the &#039;&#039;&#039;Survey&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:63--&amp;gt;&lt;br /&gt;
To change the survey permissions, go to the &#039;&#039;&#039;Settings&#039;&#039;&#039; menu of your survey. Click on &#039;&#039;&#039;Survey permissions&#039;&#039;&#039; and choose the user group that should be granted survey permissions:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:64--&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;[[File:LimeSurveySurveyPermissions.jpg]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;[[File:LimeSurveyPermissionRightsUserGroup.png]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:65--&amp;gt;&lt;br /&gt;
Select in the next step the permissions that you allocate to the members of that user group. Do not forget to click the double-right arrowhead to get an extended view of the permissions matrix.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:66--&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;[[File:UserGroupSurveyPermissions.png]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:38--&amp;gt;&lt;br /&gt;
After you have finished editing the survey permissions, click the &#039;&#039;&#039;Save&#039;&#039;&#039; button, which is located in the upper right part of the screen.&lt;br /&gt;
Some examples are provided [[Manage user groups#Examples|below]] in order to help you get a better understanding of the Limesurvey&#039;s survey permissions system.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:67--&amp;gt;&lt;br /&gt;
{{Note| If you want to grant survey permissions only to a user, [[Manage_users#Set_permissions_for_a_single_survey|read the following wiki]].}}&lt;br /&gt;
&lt;br /&gt;
=Things to watch out for= &amp;lt;!--T:68--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:69--&amp;gt;&lt;br /&gt;
Some limitations of the user group functionality are presented below:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:6--&amp;gt;&lt;br /&gt;
*Changes to a &#039;&#039;&#039;user group&#039;&#039;&#039; (after it was added in the &#039;&#039;&#039;survey&#039;&#039;&#039;) will not cause changes to the &#039;&#039;&#039;survey permissions&#039;&#039;&#039;. For example, if new users are added to a &#039;&#039;&#039;user group&#039;&#039;&#039; that has been already granted survey permissions, the respective new users won&#039;t have the same survey permissions as the rest of the user group members. For this to happen, the updated user group has to be granted survey permissions again so that the new user group members can receive the same permissions as the rest of the user group members.&lt;br /&gt;
*If you delete a user from a user group with survey permissions, the respective user will &amp;lt;u&amp;gt;not&amp;lt;/u&amp;gt; lose the user group survey permissions. To remove his or her permission rights, delete the account from the survey permissions table.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:70--&amp;gt;&lt;br /&gt;
Because the user group functions are still experimental, we kindly ask you to pay attention to any inconsistencies you may find while using LimeSurvey and report them via the [https://bugs.limesurvey.org/ bugs tracker] (recommended) or the [https://www.limesurvey.org/customer-support/contact-us ticket system].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:71--&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;[[File:Deleteusersurveypermissions.png]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Examples= &amp;lt;!--T:72--&amp;gt;&lt;br /&gt;
Some examples are provided below to help you better understand how a LimeSurvey user group works:&lt;br /&gt;
&lt;br /&gt;
==Informing members of a user group that they have received certain survey permissions== &amp;lt;!--T:73--&amp;gt;&lt;br /&gt;
*Log in. &lt;br /&gt;
*Go to the user groups list and click the green mail sign (located on the last column of the table).&lt;br /&gt;
*Type the subject and the text body of the email.&lt;br /&gt;
*Send it.&lt;br /&gt;
&lt;br /&gt;
==Granting certain permissions to a user group== &amp;lt;!--T:74--&amp;gt;&lt;br /&gt;
*Log in as admin (or as a user that has the &#039;Survey security&#039; and &#039;Survey content&#039; permission).&lt;br /&gt;
*Create a user group.&lt;br /&gt;
*Add users to the user group.&lt;br /&gt;
*Go to the &#039;&#039;&#039;Survey permissions&#039;&#039;&#039; page of the survey.&lt;br /&gt;
*Add the user group and offer its members the survey permissions you wish them to have.&lt;br /&gt;
&lt;br /&gt;
==Adding a user to a user group== &amp;lt;!--T:75--&amp;gt;&lt;br /&gt;
As mentioned above, adding a &#039;&#039;&#039;user group&#039;&#039;&#039; behaves like a macro function that simply adds all the current members of the &#039;&#039;&#039;user group&#039;&#039;&#039;, easing the process of granting survey permissions. However, if a new member is added to that user group, that member will not automatically receive the rights that were previously granted to the other members of the user group.&lt;br /&gt;
Therefore, you will have to repeat the steps shown in the example from above in order to grant him or her the same rights or you just add him or her separately, using the &#039;&#039;&#039;Add user&#039;&#039;&#039; function (from the &#039;Survey permission&#039; panel).&lt;br /&gt;
&lt;br /&gt;
==Removing permissions of a user no longer in a user group== &amp;lt;!--T:76--&amp;gt;&lt;br /&gt;
Removing him from the group should leave him without any user group permissions. However, &amp;lt;u&amp;gt;this is not happening&amp;lt;/u&amp;gt; due to the limitations of the user group functionalities! &#039;&#039;&#039;If you delete the user from the user group, he or she still remains with the user group survey permissions&#039;&#039;&#039;. Therefore, a workaround is to manually delete the account from the &#039;Survey permissions&#039; table.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:77--&amp;gt;&lt;br /&gt;
*Log in as administrator (or as a user with &#039;Survey security&#039; permission).&lt;br /&gt;
*Go to the &#039;&#039;&#039;Survey permissions&#039;&#039;&#039; page, which can be accessed from the &#039;&#039;&#039;Settings&#039;&#039;&#039; of the survey.&lt;br /&gt;
*Delete the respective user from the &#039;Survey permissions&#039; table.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:78--&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;[[File:Delete user from survey group.png|1.5px]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Removing all user group members with access to a survey== &amp;lt;!--T:79--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:80--&amp;gt;&lt;br /&gt;
[[Manage user groups#Examples#I would like to remove all the user group members with access to one of my surveys|As mentioned above]], deleting a user from a group won&#039;t retrieve his survey permissions. &#039;&#039;&#039;The same goes for &#039;user groups&#039;&#039;&#039;&#039;. Deleting a user group won&#039;t retrieve the survey permissions that were previously granted to the members of the respective user group. At the moment, the only viable solution is to have them manually removed from the &#039;Survey permissions&#039; table.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/translate&amp;gt;&lt;/div&gt;</summary>
		<author><name>Joeyh278</name></author>
	</entry>
	<entry>
		<id>https://www.limesurvey.org/manual/index.php?title=Question_groups_-_introduction&amp;diff=374725</id>
		<title>Question groups - introduction</title>
		<link rel="alternate" type="text/html" href="https://www.limesurvey.org/manual/index.php?title=Question_groups_-_introduction&amp;diff=374725"/>
		<updated>2024-02-25T17:00:53Z</updated>

		<summary type="html">&lt;p&gt;Joeyh278: capitalize heading&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;languages /&amp;gt; &amp;lt;translate&amp;gt;&lt;br /&gt;
&amp;lt;!--T:1--&amp;gt;&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:14--&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;simplebox&amp;quot;&amp;gt;[[File:help.png]] Please note that the below explanations and screenshots are based on LimeSurvey 3.&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Create question group= &amp;lt;!--T:15--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:19--&amp;gt;&lt;br /&gt;
Groups are a great way to organize your surveys by placing them into categories (groups).  How you categorize your surveys/groups is completely up to you.  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:69--&amp;gt;&lt;br /&gt;
To add question groups to your survey:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:63--&amp;gt;&lt;br /&gt;
(1) From the [[Survey structure|survey &#039;&#039;&#039;structure&#039;&#039;&#039;]] tab of your survey click &#039;&#039;&#039;+Add question group&#039;&#039;&#039;. &lt;br /&gt;
&lt;br /&gt;
  &lt;br /&gt;
&amp;lt;!--T:20--&amp;gt;&lt;br /&gt;
[[File:Option 2 - create a question group.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:21--&amp;gt;&lt;br /&gt;
After you click &#039;&#039;Add question group&#039;&#039;, the add question group panel will be displayed.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:64--&amp;gt;&lt;br /&gt;
(2) Complete the required fields.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:22--&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;[[File:Add question group panel.png]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:4--&amp;gt;&lt;br /&gt;
&#039;&#039;Add question group&#039;&#039; fields&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:23--&amp;gt;&lt;br /&gt;
*&#039;&#039;&#039;Title:&#039;&#039;&#039; Type in this box the name you wish to give to the question group;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:8--&amp;gt;&lt;br /&gt;
*&#039;&#039;&#039;Description:&#039;&#039;&#039; This field allows you to publish an explanatory note for any set of questions. If you add a description, it will be presented along with the survey before commencing any of the questions in that group. If no text is added, then public participants will simply move straightaway to the survey questions. You can use the HTML editor to include images, formatted text, etc. to your liking;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:13--&amp;gt;&lt;br /&gt;
*&#039;&#039;&#039;Randomization group:&#039;&#039;&#039; To start randomizing a question group, enter a string into the field such as &#039;&#039;randgroup1&#039;&#039;. You will need to enter that same string in all question groups that you want to randomize and which will then appear in a random order when taking the survey. Only places &amp;lt;u&amp;gt;inside&amp;lt;/u&amp;gt; the same group will be randomly switched!&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:10--&amp;gt;&lt;br /&gt;
*&#039;&#039;&#039;Relevance equation:&#039;&#039;&#039; You can set a &amp;quot;relevance equation&amp;quot; in this field for the group with the help of the [[ExpressionScript - Presentation|ExpressionScript]]. This is helpful for &amp;quot;looping&amp;quot; or other cases where you are repeating similar content multiple times. For example, say you want to ask the same set of follow-up questions for each child in a household and you have asked how many children are there via a question named &#039;&#039;numKids&#039;&#039;. Then, for each group of follow-up questions you would have to use relevance equations (which would collect data about the third child) such as: &#039;&#039;&#039;numKids == 3&#039;&#039;&#039;;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:11--&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;simplebox&amp;quot;&amp;gt;[[File:help.png]] &#039;&#039;&#039;Note:&#039;&#039;&#039; An explanation and example for hiding question groups are available in the [[https://manual.limesurvey.org/ExpressionScript_examples#Hide_question_group_if_answer_from_previous_question_is_Yes_or_No|ExpressionScript examples wiki subsection]].&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:6--&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;simplebox&amp;quot;&amp;gt;[[File:help.png]] &#039;&#039;&#039;Hint:&#039;&#039;&#039; Groups can be used to group questions in a survey. If you are going to have multiple groups, you should note that the survey questions will be displayed group by group by default (you can change that from your [[General settings|survey settings]]). To display the groups in a particular order using the group reordering feature. If you have only one group in your survey then the name of this group is irrelevant (except for the survey format).&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:65--&amp;gt;&lt;br /&gt;
You can create as many groups as you like!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Add question group toolbar== &amp;lt;!--T:24--&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:25--&amp;gt;&lt;br /&gt;
You will find the following options on the top toolbar:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:26--&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;[[File:Add question group - toolbar.png]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:27--&amp;gt;&lt;br /&gt;
* &#039;&#039;&#039;Display/Export&#039;&#039;&#039;: This function is used to export your whole survey in different formats.&lt;br /&gt;
* &#039;&#039;&#039;Survey participants:&#039;&#039;&#039; Clicking this button will redirect the survey administrator to his/her [[Survey participants|survey participants table]].&lt;br /&gt;
* &#039;&#039;&#039;Responses:&#039;&#039;&#039; If the survey is active, the button becomes visible. It offers you access to the responses table. &lt;br /&gt;
* &#039;&#039;&#039;Import a group:&#039;&#039;&#039; Besides the two ways [[Question groups - introduction#Create question group|mentioned above]], new question groups can also be added via the [[Question groups - introduction#Import a question group|import group function]].&lt;br /&gt;
&lt;br /&gt;
==Import a question group== &amp;lt;!--T:28--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:29--&amp;gt;&lt;br /&gt;
You can also import a question group (.lsg file format) that was previously exported from a LimeSurvey survey. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:66--&amp;gt;&lt;br /&gt;
(1) From the survey &#039;&#039;&#039;Structure&#039;&#039;&#039; tab, click &#039;&#039;&#039;+Add question group&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:67--&amp;gt;&lt;br /&gt;
(2) Click &#039;&#039;&#039;Import a group&#039;&#039;&#039; on the top toolbar.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:30--&amp;gt;&lt;br /&gt;
[[File:ImportQuestionGroup.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:31--&amp;gt;&lt;br /&gt;
(3) &#039;&#039;&#039;Browse&#039;&#039;&#039; your computer/server and upload the .lsg file that contains the question group you wish to import.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:68--&amp;gt;&lt;br /&gt;
[[File:ImportQuestionGroupII.png]]&lt;br /&gt;
&lt;br /&gt;
=Question group actions= &amp;lt;!--T:32--&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:33--&amp;gt;&lt;br /&gt;
After the creation of a survey, you can access the newly created group from the [[Survey structure|survey structure]] menu. The following page will be displayed:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:34--&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;[[File:Question group - after its creation.png]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:35--&amp;gt;&lt;br /&gt;
The page is divided into three sections:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:36--&amp;gt;&lt;br /&gt;
*&#039;&#039;&#039;Question group toolbar:&#039;&#039;&#039; You will find the following options on the toolbar:&lt;br /&gt;
**&#039;&#039;Preview survey/question group:&#039;&#039; Click one of the two buttons to either preview your whole survey or only the current question group. If additional languages were added to your survey, the survey/question group can be previewed in each language of the survey. Just click one of the two &#039;&#039;preview&#039;&#039; buttons and select the desired language.&lt;br /&gt;
**&#039;&#039;Edit current question group:&#039;&#039; Click this button to edit the title, description, relevance equation, or randomization group of the current question group.&lt;br /&gt;
**&#039;&#039;Check survey logic for current question group:&#039;&#039; This helps you see the possible errors that might exist within a question group - it is especially useful when the [[ExpressionScript - Presentation|ExpressionScript]] is used.&lt;br /&gt;
**&#039;&#039;Delete current question group:&#039;&#039; To delete the current question group, click this button.&lt;br /&gt;
**&#039;&#039;Export this question group:&#039;&#039; If you wish to export this question group to later import it into another LimeSurvey survey, click this button. The file will be exported in the .lsg format.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:37--&amp;gt;&lt;br /&gt;
*&#039;&#039;&#039;Group summary:&#039;&#039;&#039; The main [[Question groups - introduction#Create question group|question group details are displayed]];&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:38--&amp;gt;&lt;br /&gt;
*&#039;&#039;&#039;Group quick actions:&#039;&#039;&#039; This allows you to quickly perform question-groups-related actions - in our case, the add new question to group option is displayed. To find out more about questions, read our [[Questions - introduction|introductory wiki section on question]].&lt;br /&gt;
&lt;br /&gt;
=Preview question group= &amp;lt;!--T:42--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:43--&amp;gt;&lt;br /&gt;
Once you have started to add questions into your group, you may want from time to time to preview how the respective question group looks. To do that, look for the &#039;&#039;&#039;question group&#039;&#039;&#039; button that can be accessed from the:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:44--&amp;gt;&lt;br /&gt;
*[[Question groups - introduction#Preview question group - survey structure|survey structure menu]]&lt;br /&gt;
*[[Question groups - introduction#Preview question group - question group panel|question group panel]]&lt;br /&gt;
*[[Question groups - introduction#Preview question group - question panel|question panel]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:61--&amp;gt;&lt;br /&gt;
{{Note|When previewing a group, the relevance of this group is automatically forced to true.}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:62--&amp;gt;&lt;br /&gt;
{{Hint|Text=You can add [[URL_fields#Prefilling_a_survey_using_GET_parameters|GET params in URL]] to prefill questions.}} &lt;br /&gt;
&lt;br /&gt;
==Preview question group - survey structure== &amp;lt;!--T:45--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:46--&amp;gt;&lt;br /&gt;
Click the survey &#039;&#039;&#039;Structure&#039;&#039;&#039; tab, select the desired &#039;&#039;&#039;Question group&#039;&#039;&#039;, and click &#039;&#039;&#039;preview question group&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:47--&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;[[File:Preview q group - survey structure.png]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Preview question group - question group panel== &amp;lt;!--T:48--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:49--&amp;gt;&lt;br /&gt;
You can preview the question group once you have finished editing it.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:50--&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;[[File:Question group panel - preview.png]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Preview question group - question panel== &amp;lt;!--T:51--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:52--&amp;gt;&lt;br /&gt;
The question group to which questions belong can be previewed from the question panel - see the top bar:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:53--&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;[[File:Preview question group - question panel.png]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Reordering question groups= &amp;lt;!--T:39--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:40--&amp;gt;&lt;br /&gt;
The question groups and questions can be reordered.  For further details, read the [[Survey structure#Reordering questions and question groups|survey structure wiki subsection]].&lt;br /&gt;
&lt;br /&gt;
=Example= &amp;lt;!--T:54--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:55--&amp;gt;&lt;br /&gt;
The relevance equation offers many possibilities to further customize your survey. A simple example is presented below to show how some question groups can be hidden according to the answer provided by the respondent to a prior question (part of another question group). For example, if you want to find out more information about parents that have one child in comparison to those with two or more, using the relevance equation to hide certain questions/question groups is recommended.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:56--&amp;gt;&lt;br /&gt;
Link .lss file: [[Media:Question_groups_simple_example.zip|Question_groups_simple_example.zip]] -&amp;gt; For instructions on how to import the file, refer to the following [[Surveys_-_introduction#Import_a_survey|wiki section]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:57--&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;[[File:Logic file question groups example.png]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:58--&amp;gt;&lt;br /&gt;
The above file contains three question groups, each containing one question. Question group &amp;quot;1kid&amp;quot; is displayed only if the value introduced by the respondent to the question &amp;quot;numkids&amp;quot; is 1. Question group &amp;quot;2ormorekids&amp;quot; is displayed only if the answer to the question &amp;quot;numkids&amp;quot; is &amp;gt;1.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:59--&amp;gt;&lt;br /&gt;
This is just a simple example to show how expressions can be used to further customize your survey. For more details, please read about the [[ExpressionScript - Presentation|ExpressionScript]] functionality. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:60--&amp;gt;&lt;br /&gt;
&amp;lt;div class=&#039;simplebox&#039;&amp;gt;[[File:help.png]] &#039;&#039;&#039;Notes:&#039;&#039;&#039; &lt;br /&gt;
*There are several ways to hide questions. One is to use [[Setting conditions|conditions]]. However, for more complex surveys, the [[ExpressionScript - Presentation|ExpressionScript]] has to be used.&lt;br /&gt;
*If you use expressions, don&#039;t forget to look for syntax errors with the help of the logic file.&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/translate&amp;gt;&lt;/div&gt;</summary>
		<author><name>Joeyh278</name></author>
	</entry>
</feed>