Actions

QS

Slider max: Difference between revisions

From LimeSurvey Manual

mNo edit summary
(Attention correction about error displayed)
 
(One intermediate revision by one other user not shown)
Line 12: Line 12:
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.
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.


{{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.}}
<!--T:615-->
{{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:616-->
'''Valid values'''
'''Valid values'''
* Any number
* Any number
Line 19: Line 21:
</onlyinclude>
</onlyinclude>


<!--T:617-->
[[Category:Question Settings]][[Category:Question Slider Options]]
[[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