Numbers only: Difference between revisions
From LimeSurvey Manual
DenisChenu (talk | contribs) mNo edit summary |
mNo edit summary |
||
Line 2: | Line 2: | ||
<!--T:1--> | <!--T:1--> | ||
<languages /> | <languages /> | ||
<onlyinclude> | <onlyinclude> | ||
===Numbers only (numbers_only)=== <!--T:501--> | ===Numbers only (numbers_only)=== <!--T:501--> | ||
Line 10: | Line 10: | ||
<!--T:503--> | <!--T:503--> | ||
If you | If you enable this option, the participant can only enter numbers in the text boxes. | ||
<!--T:504--> | <!--T:504--> | ||
For equation question types this setting indicates that the result | For '''equation question types''', this setting indicates that the result could be only a number, not a string. This will guarantee proper calculations/conversion in follow-up equations regarding the decimal mark. | ||
<!--T:505--> | <!--T:505--> | ||
'''Behavior by | '''Behavior by question type''' | ||
#'''Default''': If the subject enters a value that is not a number, that value is immediately cleared from the text box so that the subject can enter an appropriate value. | #'''Default''': If the subject enters a value that is not a number, that value is immediately cleared from the text box so that the subject can enter an appropriate value. | ||
#'''Array(Texts)''': | #'''Array (Texts)''': If the '''numbers only''' option is disabled, the "Show totals for" and "Show grand total" options will be overruled, while the total text boxes will '''not''' be displayed. | ||
#'''Equation''': | #'''Equation''': Enabling this option will force the equation results to be converted to a numeric value. If the equation result is not a number (and not blank), the equation will return NaN, being saved as an empty string in the response table. | ||
<!--T:506--> | <!--T:506--> | ||
'''Available options''' | '''Available options''' | ||
* | *Enabled | ||
* | *Disabled (default) | ||
</onlyinclude> | </onlyinclude> | ||
<!--T:508--> | <!--T:508--> | ||
[[Category:Question Settings]][[Category: | [[Category:Question Settings]][[Category:Other Question Options]] | ||
</translate> | </translate> |
Revision as of 15:09, 8 March 2018
Numbers only (numbers_only)
Description
If you enable this option, the participant can only enter numbers in the text boxes.
For equation question types, this setting indicates that the result could be only a number, not a string. This will guarantee proper calculations/conversion in follow-up equations regarding the decimal mark.
Behavior by question type
- Default: If the subject enters a value that is not a number, that value is immediately cleared from the text box so that the subject can enter an appropriate value.
- Array (Texts): If the numbers only option is disabled, the "Show totals for" and "Show grand total" options will be overruled, while the total text boxes will not be displayed.
- Equation: Enabling this option will force the equation results to be converted to a numeric value. If the equation result is not a number (and not blank), the equation will return NaN, being saved as an empty string in the response table.
Available options
- Enabled
- Disabled (default)