Question type - Multiple choice with comments/sl: Difference between revisions
From LimeSurvey Manual
(Created page with "{{QS:max_answers/sl}}") |
(Created page with "{{QS:other_numbers_only/sl}}") |
||
Line 42: | Line 42: | ||
{{QS:max_answers/sl}} | {{QS:max_answers/sl}} | ||
{{QS:other_numbers_only}} | {{QS:other_numbers_only/sl}} | ||
{{QS:other_comment_mandatory}} | {{QS:other_comment_mandatory}} |
Revision as of 18:57, 2 September 2013
Kratek opis
Tip vprašanja omogoča poleg izbire več odgovorov, kjer jih anketiranec obkljuka, še dopolnitev izbire s komentarjem.
Prenesite vzorčno vprašanje v angleščini: P_-_Multiple_Options_with_Comments.csv
Glavne nastavitve
Obvezno
Opis
Ta možnost skrbnikom ankete omogoča, da od svojih anketirancev zahtevajo, da odgovorijo na določena anketna vprašanja. Če na obvezna vprašanja ne odgovorijo, anketiranci ne bodo mogli nadaljevati. Če imate vprašanje z več podvprašanji in zahtevate odgovor le na določena podvprašanja, uporabite atribut minimalni odgovor, ki se nahaja pod zavihkom Logika.
Razpoložljive možnosti
- Vklopljeno - na vprašanje je treba odgovoriti, preden lahko udeleženec nadaljuje na naslednjo stran - možnost odgovora 'Brez odgovora' ni nikoli prikazana.
- Soft - Če na vprašanje ni odgovorjeno, se ob poskusu nadaljevanja prikaže opozorilo naslednja stran - vendar se lahko udeleženec odloči, da opozorilo prezre in nadaljuje. Upoštevajte, da je možnost 'Brez odgovora' še vedno prikazana (če je aktivirana v nastavitvah predstavitve ankete)
- Izklopljeno (privzeto) - Vprašanje lahko ostane brez odgovora
Možnost 'Drugo' (drugo)
Opis
Ta možnost se uporablja pri tipu vprašanja, kjer anketiranec kot odgovor izbere več možnosti. Poleg seznama odgovorov ponuja polje poljubnega odgovora pod "Drugo".
'Razpoložljive možnosti
- Vklopljeno
- Izklopljeno (privzeto)
Te glavne nastavitve so omogočene v verziji 1.92 in dalje
Pogoj (prej "Enačba ustreznosti")
Opis
Če je rezultat pogoja »1« ali »true«, je vprašanje v kontekstu ankete »relevantno«, torej se prikaže anketirancu. Če ne, je vprašanje skrito. Vsako anketno vprašanje vam omogoča, da določite enačbo pomembnosti. Ta funkcija je naslednica pogojev in podpira veliko bolj zapleteno pogojno logiko.
Označevanje sintakse
Kadarkoli shranite pogoj, je ovrednoten in sintaktično poudarjen. Morebitne napake bodo označene z barvami, da jih boste lahko hitro odkrili in odpravili.
Veljavne vrednosti
- Kateri koli pogoj, ki uporablja sintakso ExpressionScript brez okoliških zavitih oklepajev.
Primeri
Tu so dobri primeri označevanja sintakse.
Napredne nastavitve
Oznaka za možnost 'Drugo:' (other_replace_text)
Opis
Kratek besedilni niz, ki nadomesti besedilo »Drugo« kot oznako za možnost »drugo«.
Primer
Če za ta atribut vnesete vrednost »Alternative:«, bi namesto besede »Other« uporabili besedo »Alternative:«.
Naključni vrstni red odgovorov (random_order)
Opis
Ta atribut povzroči, da LimeSurvey prezre obstoječi vrstni red možnosti odgovorov/podvprašanj in jih namesto tega razvrsti naključno. Ta možnost avtorju ankete omogoča, da zmanjša pristranskost ankete. Upoštevajte, da če ima vprašanje podvprašanja, bo vrstni red podvprašanj naključen, ne vrstni red možnosti odgovorov.
'Razpoložljive možnosti
- Da - Naključno, ko udeleženec vstopi v anketo
- Ne (privzeto)
Skrij nasvet (hide_tip)
Opis
Večina vprašanj običajno vključuje namig, ki pravi: »Prosimo, izberite eno od naslednjih možnosti« ali besedilo z namigom, kako izpolniti vprašanje. Ta atribut vam omogoča, da izklopite ali vklopite te nasvete/namige.
Ti nasveti/namigi vključujejo sporočila o kriterijih za preverjanje (kot je najmanjše/največje število odgovorov, najmanjša/največja/enaka vrednost vsote). Če je hide_tip omogočen, bodo ta sporočila skrita. Vendar, če uporabnik vnese neveljavne podatke, se prikažejo namigi. Obarvana bodo rdeče in se bodo spremenila v zeleno, ko bodo izpolnjena merila za preverjanje veljavnosti.
'Razpoložljive možnosti
- Vklopljeno - nasveti/namigi so skriti;
- Izklopljeno (privzeto).
Ime naključne skupine (random_group)
Opis
Vprašanja postavi v določeno naključno skupino, pri čemer so vsa vprašanja, vključena v navedeno skupino, prikazana v naključnem vrstnem redu anketirancem.
V ExpressionScript sample survey lahko najdete vzorec ankete z imenom skupine za naključno izbiranje.
Veljavne vrednosti
Samo vnesite poljuben niz (na primer: 'group1'). Vsa vprašanja, ki so v polju 'ime skupine za naključno izbiro nastavili isti niz, bodo imela svoje mesto v anketi randomizirana (=naključno izmenjana med seboj).
Predogled
Za predogled vprašanj uporabite predogled ankete namesto funkcije predogled skupine vprašanj, saj so poročali, da druga ne prikazuje vprašanj v naključnem vrstnem redu.
Vedno skrij to vprašanje (skrito)
Opis
Če je omogočeno, bo vprašanje vedno skrito – ne bo prikazano udeležencem ankete. To funkcijo je mogoče uporabiti v naslednjih scenarijih:
- Če želite vprašanje vnaprej izpolniti z URL-jem in ne želite, da se prikaže na zaslonu. To preglasi vse pogoje, uporabljene v anketi, ker zadevno vprašanje sploh ne bo vdelano na stran.
- Če želite sproti shraniti ali izračunati vrednost prek ExpressionScript - Presentation.
'Razpoložljive možnosti
- Vklopljeno
- Izklopljeno (privzeto)
Najmanjše število odgovorov (min_answers)
Opis
To funkcijo je mogoče uporabiti za zagotovitev, da uporabnik izbere vsaj določeno število odgovorov v vprašanju z več možnimi odgovori.
Veljavne vrednosti
- Katera koli cela vrednost nad 0
- Katera koli številka
- Katera koli koda SGQA
- Katera koli koda vprašanja (ime spremenljivke)
- Katera koli enačba z uporabo ExpressionScript sintaksa, brez okoliških zavitih oklepajev.
Primer
Če je nastavljeno na X (naključno število), lahko uporabniki oddajo anketo, če izberejo vsaj X potrditvenih polj. Če je ta možnost uporabljena za razvrščanje vprašanj, to zagotovi, da so razvrščeni vsaj trije elementi, preden se respondentu omogoči predložitev odgovorov/ankete.
Največje število odgovorov (max_answers)
Opis
Uporablja se lahko za omejitev skupnega števila odgovorov, ki jih lahko uporabnik izbere pri vprašanju z več možnimi odgovori.
Veljavne vrednosti
- Katera koli številska vrednost
- Katera koli koda SGQA
- Katera koli koda vprašanja (ime spremenljivke)
- Katera koli enačba z uporabo sintakse ExpressionScript, brez okoliških kodrastih naramnice.
Primer
Če je nastavljeno na 2, bo uporabnik lahko označil največ dve potrditveni polji ali eno potrditveno polje + izpolnil polje »Drugo« (če obstaja). Za Vrsta vprašanja za razvrstitev bi udeleženec lahko izbral največ dve postavki.
Številke samo za 'Drugo' (other_numbers_only)
Opis
Če je ta atribut omogočen skupaj z možnostjo "drugo" (ki se nahaja pod zavihkom Splošne možnosti), lahko anketiranci vnesejo samo številke v besedilno polje "drugo".
Razpoložljive možnosti:
- Vklopljeno
- Izklopljeno (privzeto)
'Other:' comment mandatory (other_comment_mandatory)
Description
It only applies to mandatory questions having an "other answer" option in which the participant can give a free text response ("other comment").
When this setting is activated and the participant selects the other answer (the "other checkbox" or "other answer in a list"), then he will have to give a comment in the "Other comment" input box in order to proceed to the next page.
Note that this option is not available for Multiple Choice questions because the "Other" checkbox status is not recorded in the database for this question type, only the content being recorded. This means that checking the "other" checkbox is just a visual effect that is only meaningful if the text box is filled in: that is why other_comment_mandatory is assumed to be set for this question type.
Available options
- On
- Off (default)
Example
If activated for a "Multiple options with comments" question and the user enters a value in the left part of the Other answer but doesn't enter text in the Other Comment part, a warning message will be displayed when he tries to proceed to the next page.
Assessment value (assessment_value)
Description
If assessments are used and one or more subquestions are checked, the value from this field will be added to each checked subquestion, contributing to the final assessment score.
Valid values
- Any numerical values
Array filter (array_filter)
Description
The Array filter setting allows you to use any multiple choice question to select or set which responses are displayed in a subsequent list, array or multiple choice question.
- Multiple choice
- Multiple choice with comments
- Multiple short text
- Multiple numeric
- Array (5 point, 10 point, Yes/No/Unknown, Increase/Same/Decrease, Column)
- Array (Dual Scale, Text, Numbers)
- Ranking
Furthermore, each of these question types can be filtered.
The only exception is Array (Column), which can filter other questions, but not itself.How to set a filter
To set a filter, enter the question code of a multiple options question in the array filter box of the question you are currently editing. The respective question will be used as the source of information for the current question, the selected answers from the previous question being retrieved and used as answer options for the current question. For example, if your source multiple option question code is "Q1", enter "Q1" into the 'Array Filter' box to start the filtering process of the answers. Only the answer options that are selected in question Q1 will be visible in the array_filter-ed question.
Cascading
The selected options can be displayed in cascade. This means that you can select a question which filters another question, which filters another question, and so on.
Array filter example
Let's take a look at the following example to better understand the power of this setting:
In the screenshot from above, we got two questions. The first one is a multiple short text question type, while the second one is an array dual scale question type. The answers you provide in the first question will be listed in the second one. Technically, the answers you provide to the subquestions from the first question are filtered and displayed in the second question.
This example can be downloaded from the following link: limesurvey_group_32.lsg. Import this question group into your LimeSurvey installation.
Array exclusion filter (array_filter_exclude)
Description
The Array filter exclusion setting allows you to use any multiple choice question to select or set which responses are NOT displayed in a subsequent list, array or multiple choice question.
- Multiple choice
- Multiple choice with comments
- Multiple short text
- Multiple numeric
- Array (5 point, 10 point, Yes/No/Unknown, Increase/Same/Decrease, By column)
- Array (Dual Scale, Text, Numbers)
- Ranking
Furthermore, each of these types of questions can filtered.
The only exception is Array by column which can filter other questions, but it cannot be filtered.How to set it up
Enter the question code of a multiple options question in the array exclusion filter box of the question you are currently editing. The respective question will be used as the source of information for the current question, the non-selected answers from the previous question being retrieved and used as answer options for the current question. For example, if your source multiple option question code is "Q1", enter "Q1" into the 'Array exclusion filter' box to start the filtering process of the answers. Only the answer options that are NOT selected in question Q1 will be visible in your question.
Cascading
The selected options can be displayed in cascade. This means that you can select a question which filters another question, which filters another question, and so on.
Example
Let's see together the below example:
In the screenshot from above, we got two questions. The first one is a multiple choice question type, while the second one is a multiple choice with comments question type. The answers you provide in the first question will be excluded from the second one. For example, if you select the ComfortUpdate option (that has the subquestion code 'SQ1') and the Plugin option ('SQ4'), the 'SQ1' and the 'SQ4' subquestion correspondents from the second question will be excluded. In our screenshot, we can observe that only the unselected options in the first question and displayed in the second one.
This example can be downloaded from the following link: Limesurvey_group_array_filter_exclude.zip. Import this question group into your LimeSurvey installation.
Array filter style (array_filter_style)
Description
This function allows you to choose how the array filtered subquestions are displayed. They can either be "hidden" or "disabled".
Available options
- Hidden (default) - if this option is selected, then the previously selected subquestions will not be displayed in the second question.
- Disabled - if this option is selected, then the previously selected subquestions will be greyed out and become unselectable.
Example
If you wish to use the "disabled" option, then the previously selected subquestions will be displayed like this:
Comment only when ... (commented_checkbox)
Description
This attribute allows you to define the behaviour of the comment box.
Available options
- No control on checkbox : user can always enter comments independent of whether the option is checked or not. Typing in the comment box does not mean that the respective subquestion will be checked.
- Checkbox is checked (default) : if the user enters a comment, then the corresponding checkbox gets automatically checked.
- Checkbox is unchecked : user can only comment on unchecked checkboxes.
Question validation equation (em_validation_q)
Description
This is an equation that is used to validate the entire question (e.g, all of its parts collectively for a multi-answer question). If the question fails the validation criteria, then em_validation_q_tip message will be displayed (it uses the CSS style .error). This tip uses the .em_q_fn_validation CSS style, which is hidden by default within template.css.
The main difference between this feature and the subquestion validation equations (em_validation_sq option) is that for this feature, if the question (or question parts) fail validation, then an error message could be shown. For the subquestion validation, each text entry cell (e.g., in an array question type, but it can also be applied to single entry question types) will be styled so that the background color is (light) red.
Valid values
- Any equation that makes use of the ExpressionScript syntax, without surrounding curly braces.
Example
- You want to collect demographic information from users via a multiple short text question, and you want to validate that the user has entered a valid email address and phone number.
This example shows how the question looks with invalid answers:
And here is what it looks like with one invalid answer:
Here is how you edit a question to enter that information:
And here is part of the Show Logic File output that lets you check the accuracy of your expression and ensure that there are no syntax errors:
As you can see, the validation equation tests that both the email and phone number are either empty or match a regular expression filter.
The validation tip only shows the warning message if the phone or email appears invalid.
If you wish to import the example from above into your LimeSurvey installation, download the following .lsq file: Em_validation_q_example.zip.
Tip for whole question validation equation (em_validation_q_tip)
Description
If you are using the question validation equation, you can use this box in order to display an optional message as question tip on how the question has to be filled out.
Valid values
- Any string or equation that makes use of the ExpressionScript syntax.
Example
See the example from the question validation equation wiki section- it shows how the tip can be tailored to show which parts of a multiple short text question fail the validation criteria.
SPSS export scale type (scale_export)
Description
This is used for SPSS export only. This attribute overrides the default scale guessed by SPSS. To learn what the different measurement scales do, please read the related SPSS documentation.
Available options
- Default (default)
- Nominal
- Ordinal
- Scale
Show in public statistics (public_statistics)
Description
This attribute allows the survey administrator to chose if a particular question results should be displayed to the survey participants after they submitted the survey.
The default setting for each question is 'Off' (=Do not show the question statistics to the respondents). You have to enable this for every single question if you want to show the survey statistics of that (those) particular question(s) to the survey participants after the survey submission.
Available options
- On
- Off (default)
Insert page break in printable view (page_break)
Description
This attribute is only active when you actually print a survey from the Printable View. It forces a page break before the question.
Available options
- On
- Off (default)