Actions

QS

Difference between revisions of "Slider max"

From LimeSurvey Manual

m
Line 4: Line 4:
 
<onlyinclude>
 
<onlyinclude>
  
===Slider maximum value (slider_max)=== <!--T:608-->
+
<onlyinclude>
 +
===Slider minimal value (slider_min)=== <!--T:601-->
  
<!--T:609-->
+
<!--T:602-->
 
'''Description'''
 
'''Description'''
  
<!--T:610-->
+
<!--T:603-->
When "slider_layout' is set, this question attribute sets the value of the right-end of the slider. In this condition, and if maximum value is not set : this value is used for maximum value.
+
When '''slider_layout''' is set, this question attribute sets the value of the right-end of the slider. By default, this value is set to 100. The expression manager can be used (without curly brackets) to set up a maximum value. However, please note that this value has to be calculated '''before''' the expression is displayed. For example, no value will be displayed if the expression, and the question and/or question answer codes used within the respective expression are displayed on the same page. If this happens, then the attribute will use the default value which is 100.
Expression manager can be used (without brace), but if before page is shown the value is not a number, then default of 100 is used.
 
  
<!--T:611-->
+
{{Alert|title=Attention|text=Please note that if the expression typed within the box contains an error, a logic error will be displayed to the user below the question.}}
'''Example'''
 
  
<!--T:612-->
+
'''Valid values'''
* 50
+
* Any number
* if(QCODE>10,QCODE,10)
+
* [[Expression Manager|Expressions]], without curly brackets.
 
 
<!--T:613-->
 
</onlyinclude>
 
 
 
<!--T:614-->
 
[[Category:Question Settings]][[Category:Advanced Question Settings]]
 
  
 +
[[Category:Question Settings]][[Category:Question Slider Options]]
 
</translate>
 
</translate>

Revision as of 10:59, 12 April 2018

Other languages:
English • ‎Nederlands • ‎日本語


Slider minimal value (slider_min)

Description

When slider_layout is set, this question attribute sets the value of the right-end of the slider. By default, this value is set to 100. The expression manager can be used (without curly brackets) to set up a maximum value. However, please note that this value has to be calculated before the expression is displayed. For example, no value will be displayed if the expression, and the question and/or question answer codes used within the respective expression are displayed on the same page. If this happens, then the attribute will use the default value which is 100.

Important.png  Attention : Please note that if the expression typed within the box contains an error, a logic error will be displayed to the user below the question.


Valid values