Actions

QS

Slider max: Difference between revisions

From LimeSurvey Manual

(Marked this version for translation)
(Attention correction about error displayed)
 
(9 intermediate revisions by 3 users not shown)
Line 4: Line 4:
<onlyinclude>
<onlyinclude>


===Slider maximum value (slider_max)=== <!--T:608-->
===Slider maximal value (slider_max)=== <!--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.
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 custom value is displayed if the expression and the question and/or question answer codes used within the respective expression [[General settings|are displayed on the same page]]. If this happens, then the attribute will use the default value which is 100.


<!--T:611-->
<!--T:615-->
'''Example'''
{{Alert|title=Attention|text=Please note that if the expression typed within the box contains an error, a logic error will be displayed to admin user (with edit rights on survey) below the question, but not to public user.}}


<!--T:612-->
<!--T:616-->
slider_max 50
'''Valid values'''
 
* Any number
<!--T:613-->
* [[Expression Manager|Expressions]], without curly brackets.
</onlyinclude>
</onlyinclude>


<!--T:617-->
[[Category:Question Settings]][[Category:Question Slider Options]]
</translate>
</translate>

Latest revision as of 23:01, 25 June 2018


Slider maximal value (slider_max)

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 custom value is 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.

  Attention : Please note that if the expression typed within the box contains an error, a logic error will be displayed to admin user (with edit rights on survey) below the question, but not to public user.


Valid values