Min answers: Difference between revisions
From LimeSurvey Manual
DenisChenu (talk | contribs) mNo edit summary |
mNo edit summary |
||
(9 intermediate revisions by 3 users not shown) | |||
Line 2: | Line 2: | ||
<!--T:1--> | <!--T:1--> | ||
<languages /> | <languages /> | ||
<onlyinclude> | <onlyinclude> | ||
===Minimum answers (min_answers)=== <!--T:427--> | ===Minimum answers (min_answers)=== <!--T:427--> | ||
Line 10: | Line 10: | ||
<!--T:429--> | <!--T:429--> | ||
This function can be used to ensure that a user selects at least a certain number of answers in a multiple choice question. | |||
<!--T:430--> | <!--T:430--> | ||
'''Valid values''' | '''Valid values''' | ||
<!--T:436--> | |||
*Any integer value above 0 | *Any integer value above 0 | ||
*Any number | *Any number | ||
*Any SGQA code | *Any [[SGQA_identifier|SGQA]] code | ||
*Any question code (variable name) | *Any question code (variable name) | ||
*Any equation, using [[ | *Any equation, using [[ExpressionScript - Presentation|ExpressionScript]] syntax, without surrounding curly braces. | ||
<!--T:432--> | <!--T:432--> | ||
Line 29: | Line 26: | ||
<!--T:433--> | <!--T:433--> | ||
If set to | If set to X (a random number), the users can submit the survey form if they select at least X checkboxes. If this option is utilised for ranking questions, this ensures that at least three items are ranked before allowing the respondent to submit the answers/survey. | ||
<!--T: | <!--T:438--> | ||
<div class="simplebox">[[File:help.png]] Please note that if you use this attribute with Ranking questions, you have to set the question to '''non-mandatory'''. Otherwise, all the items need to be ranked which is counter-intuitive if you decide to use the '''min_answers''' function too.</div> | |||
</onlyinclude> | </onlyinclude> | ||
[[Category:Question Settings]][[Category: | <!--T:437--> | ||
[[Category:Question Settings]][[Category:Question Logic Options]] | |||
</translate> | </translate> |
Latest revision as of 11:24, 15 April 2020
Minimum answers (min_answers)
Description
This function can be used to ensure that a user selects at least a certain number of answers in a multiple choice question.
Valid values
- Any integer value above 0
- Any number
- Any SGQA code
- Any question code (variable name)
- Any equation, using ExpressionScript syntax, without surrounding curly braces.
Example
If set to X (a random number), the users can submit the survey form if they select at least X checkboxes. If this option is utilised for ranking questions, this ensures that at least three items are ranked before allowing the respondent to submit the answers/survey.