Actions

QS

Min answers/sl: Difference between revisions

From LimeSurvey Manual

(Created page with "<languages />")
(Created page with "'''Opis'''")
Line 4: Line 4:
===Najmanjše število odgovorov (min_answers)===
===Najmanjše število odgovorov (min_answers)===


'''Description'''
'''Opis'''


This function can be used to ensure that a user selects at least a certain number of answers in a multiple choice question.
This function can be used to ensure that a user selects at least a certain number of answers in a multiple choice question.

Revision as of 09:33, 12 December 2023


Najmanjše število odgovorov (min_answers)

Opis

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.

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.