Actions

QS

Equation: Difference between revisions

From LimeSurvey Manual

(Marked this version for translation)
mNo edit summary
Line 2: Line 2:
<!--T:1-->
<!--T:1-->
<languages />
<languages />
<onlyinclude>
<onlyinclude>
===Equation (equation)=== <!--T:279-->  
===Equation (equation)=== <!--T:279-->  
<!--T:280-->
{{FeatureStarting|v=2.06}}


<!--T:281-->
<!--T:281-->
Line 13: Line 10:


<!--T:282-->
<!--T:282-->
Set the value save in the database for answer of this question, you can use any [[Expression Manager|Expression]] . If this settings is empty : the question text is saved in the database for answer of this question.
The result of the [[Expression Manager|expression]] you type here will be stored in the response table and '''NOT''' the result(s) of the expressions typed in the question textbox. For example, you may want to display several [[Expression Manager|expressions]] in the question textbox to display the respondents some statistics about herself. However, if you wish to store something like a "secret value" at the same time, then type the desired expression in this field.
 
Imagine that you wish to display the weight, height, and BMI of the respondent. If you wish to calculate just the weight/height ratio without letting the respondents know this and store it in a response table, type in the '''equation''' field: {weightkg/tall}.  


<!--T:283-->
<!--T:283-->
{{Hint|Text=Unlike all other question types, if an equation is hidden, it is still computed and its value is still stored in the database.}}
{{Hint|Text=Unlike all other question types, if an equation is hidden, it is still computed, its value being stored in the database.}}


<!--T:284-->
<!--T:284-->
{{Alert|Due to security issue : no HTML tag is saved in the database even with an equation question type.}}
{{Alert|No HTML tag can be saved in the database due to security concerns.}}


<!--T:278-->
<!--T:278-->
'''Available options'''
'''Valid values'''


<!--T:285-->
<!--T:285-->
* Any text. With or without [[Expression Manager|Expression]] with surrounding curly braces.
* Any text. The [[Expression Manager|Expression Manager]] syntax can also be used (with surrounding curly braces).


<!--T:276-->
<!--T:276-->
Line 31: Line 30:


<!--T:277-->
<!--T:277-->
[[Category:Question Settings]][[Category:Advanced Question Settings]]
[[Category:Question Settings]][[Category:Question Logic Options]]


</translate>
</translate>

Revision as of 18:57, 19 March 2018


Equation (equation)

Description

The result of the expression you type here will be stored in the response table and NOT the result(s) of the expressions typed in the question textbox. For example, you may want to display several expressions in the question textbox to display the respondents some statistics about herself. However, if you wish to store something like a "secret value" at the same time, then type the desired expression in this field.

Imagine that you wish to display the weight, height, and BMI of the respondent. If you wish to calculate just the weight/height ratio without letting the respondents know this and store it in a response table, type in the equation field: {weightkg/tall}.

 Hint: Unlike all other question types, if an equation is hidden, it is still computed, its value being stored in the database.


  No HTML tag can be saved in the database due to security concerns.


Valid values