Actions

QS

Numbers only: Difference between revisions

From LimeSurvey Manual

(Marked this version for translation)
mNo edit summary
Line 19: Line 19:
#'''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)''':  Setting this to "No" will overrule "Show totals for" and "Show grand total" setting and total text boxes will '''not''' be displayed.
#'''Array(Texts)''':  Setting this to "No" will overrule "Show totals for" and "Show grand total" setting and total text boxes will '''not''' be displayed.
#'''Equation''':  Setting this option to "Yes" will force 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.
#'''Equation''':  Setting this option to "Yes" will force 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 and saved as an empty string in responses table.


<!--T:506-->
<!--T:506-->

Revision as of 17:21, 4 June 2014


Numbers only (numbers_only)

Description

If you set this option the participant can only enter numbers in the text boxes.

For equation question types this setting indicates that the result will be a number only, not a string. This will guarantee proper calculations/conversion in follow-up equations regarding the decimal mark.

Behavior by Question-Type

  1. 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.
  2. Array(Texts): Setting this to "No" will overrule "Show totals for" and "Show grand total" setting and total text boxes will not be displayed.
  3. Equation: Setting this option to "Yes" will force 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 and saved as an empty string in responses table.

Available options

  • Yes
  • No (default)