Actions

QS

Max num value: Difference between revisions

From LimeSurvey Manual

(Created page with "<translate> <!--T:1--> <languages /> <onlyinclude> ===Maximum sum value (max_num_value)=== <!--T:401--> <!--T:402--> '''Description''' <!--T:403--> Allows you to set the ma...")
 
mNo edit summary
 
(5 intermediate revisions by 3 users not shown)
Line 10: Line 10:


<!--T:403-->
<!--T:403-->
Allows you to set the maximum sum total of all predefined answers that will be accepted. The value entered for this attribute becomes the maximum value.
This setting is available in the multiple numeric and numeric array input questions. When this attribute is set, the input value(s) (depending on the type of question) must meet this criteria -  the (sum of) number(s) has to be smaller than the value you type in this box. Otherwise, the respondent will not be able to submit her answer.


<!--T:404-->
<!--T:404-->
'''Valid values'''
'''Valid values'''
*Any integer value above 0
*Any integer value above 0
<!--T:405-->
<div class="simplebox">And as of Version 1.92</div>
*Any number
*Any number
*Any SGQA code
*Any SGQA code
*Any question code (variable name)
*Any question code (variable name)
*Any equation, using [[Expression Manager|Expression Manager]] syntax, without surrounding curly braces.
*Any equation, using [[ExpressionScript - Presentation|ExpressionScript]] syntax, without surrounding curly braces.


<!--T:406-->
<!--T:407-->
'''Example'''
'''Example'''
*Setting a value of 20 would mean that the total value of all numbers entered in all input boxes for this question may not exceed 20. Totals of 21 would not be allowed. A total of 15 would be acceptable.


<!--T:407-->
<!--T:408-->
Setting a value of 20 for this would mean that the total value of all numbers entered in all input boxes for this question may not exceed 20. Totals of 21 would be not allowed. A total of 15 would be acceptable.
</onlyinclude>


</onlyinclude>
<!--T:409-->
[[Category:Question Settings]][[Category:Question Input Options]]


</translate>
</translate>

Latest revision as of 11:38, 15 April 2020


Maximum sum value (max_num_value)

Description

This setting is available in the multiple numeric and numeric array input questions. When this attribute is set, the input value(s) (depending on the type of question) must meet this criteria - the (sum of) number(s) has to be smaller than the value you type in this box. Otherwise, the respondent will not be able to submit her answer.

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

  • Setting a value of 20 would mean that the total value of all numbers entered in all input boxes for this question may not exceed 20. Totals of 21 would not be allowed. A total of 15 would be acceptable.