Actions

Question type - Multiple numerical input

From LimeSurvey Manual

Revision as of 05:29, 13 June 2013 by FuzzyBot (talk | contribs) (Importing a new version from external source)

Short description

This question type is a variation on the "Numerical input" question type. It allows multiple text boxes to be created each of which can only be answered using numbers. Each text box corresponds to an subquestion, and the subquestion text becomes the label for the input.


There are several question attributes which can be used to extend the functionality of this question type. This example uses an advanced setting which checks if the entered numbers match a certain sum.

Download english sample question: K_-_Multiple_Numerical_eq_10.csv

Note: You can use features of the multiple numerical input question type (like slider layout, max_num_value) even if you only have only one item to rate. Instead of adding multiple subquestions just add the one item you need.

The slider layout

By activating the 'Slider layout' setting in the Advanced settings the usual input box is converted into a slider and also can be controlled by various additional advanced settings. The general look of the slider (colors, handle graphic) is determined via css which in the default template is defined by the .ui-slider class.

Download english sample question: K_-_Multiple_Numerical_eq_10_Slider.csv

Core settings

Mandatory

Description

This option allows the survey administrators to request their respondents to answer certain survey questions. If the mandatory questions are not answered, the respondents will not be able to proceed further. If you have a question with multiple subquestions, and you require only certain subquestions to be answered, use the minimum answer attribute located under the Logic tab.

If you use any of the preinstalled themes and the mandatory question attribute is enabled, a red asterisk will be shown next to the question. If you wish to hide it, please check these instructions.


Available options

  • On - Question must be answered before the participant can proceed to the next page - the answer option 'No answer' is never shown.
  • Soft - If the question is not answered, a warning is shown when trying to proceed to the next page - however, the participant can choose to ignore the warning and proceed. Note that the 'No answer' option is still shown (if activated in survey presentation settings)
  • Off (default) - Question can be left unanswered


Validation (using regular expressions) (preg_validation)

Description

This option lets you specify a regular expression with which you can validate all the parts of a question.

If any question or subquestion value does not meet the validation requirements, the background colour of the text entry field will be changed to red so that users can easily see which parts of the question need to be corrected. Thus, you can do on-page validation. In this way you will not need to wait for the user to click on the submit button to validate the respective question.

Valid values

  • Any valid regular expression

Example


These Core Settings are available in Version 1.92 and beyond

{INCLUDE(page="Core question settings",start="!defaults",stop="---")}{INCLUDE}

{INCLUDE(page="Core question settings",start="!relevance",stop="---")}{INCLUDE}

Advanced settings

{INCLUDE(page="Advanced question settings",start="!prefix",stop="---")}{INCLUDE}

{INCLUDE(page="Advanced question settings",start="!suffix",stop="---")}{INCLUDE}

{INCLUDE(page="Advanced question settings",start="!text_input_width",stop="---")}{INCLUDE}

{INCLUDE(page="Advanced question settings",start="!random_order",stop="---")}{INCLUDE}

{INCLUDE(page="Advanced question settings",start="!hide_tip",stop="---")}{INCLUDE}

{INCLUDE(page="Advanced question settings",start="!hidden",stop="---")}{INCLUDE}

{INCLUDE(page="Advanced question settings",start="!equals_num_value",stop="---")}{INCLUDE}

{INCLUDE(page="Advanced question settings",start="!min_num_value",stop="---")}{INCLUDE}

{INCLUDE(page="Advanced question settings",start="!max_num_value",stop="---")}{INCLUDE}

{INCLUDE(page="Advanced question settings",start="!maximum_chars",stop="---")}{INCLUDE}

{INCLUDE(page="Advanced question settings",start="!min_num_value_sgqa",stop="---")}{INCLUDE}

{INCLUDE(page="Advanced question settings",start="!max_num_value_sgqa",stop="---")}{INCLUDE}

{INCLUDE(page="Advanced question settings",start="!num_value_equals_sgqa",stop="---")}{INCLUDE}

{INCLUDE(page="Advanced question settings",start="!public_statistics",stop="---")}{INCLUDE}

{INCLUDE(page="Advanced question settings",start="!page_break",stop="---")}{INCLUDE}

{INCLUDE(page="Advanced question settings",start="!slider_layout",stop="---")}{INCLUDE}

{INCLUDE(page="Advanced question settings",start="!slider_middlestart",stop="---")}{INCLUDE}

{INCLUDE(page="Advanced question settings",start="!slider_accuracy",stop="---")}{INCLUDE}

{INCLUDE(page="Advanced question settings",start="!slider_max",stop="---")}{INCLUDE}

{INCLUDE(page="Advanced question settings",start="!slider_separator",stop="---")}{INCLUDE}

{INCLUDE(page="Advanced question settings",start="!slider_showminmax",stop="---")}{INCLUDE}

{INCLUDE(page="Advanced question settings",start="!slider_min",stop="---")}{INCLUDE}

{INCLUDE(page="Advanced question settings",start="!slider_default",stop="---")}{INCLUDE}

{INCLUDE(page="Advanced question settings",start="!array_filter",stop="---")}{INCLUDE}

{INCLUDE(page="Advanced question settings",start="!array_filter_exclude",stop="---")}{INCLUDE}

{INCLUDE(page="Advanced question settings",start="!array_filter_style",stop="---")}{INCLUDE}

{INCLUDE(page="Advanced question settings",start="!min_answers",stop="---")}{INCLUDE}

{INCLUDE(page="Advanced question settings",start="!max_answers",stop="---")}{INCLUDE}

{INCLUDE(page="Advanced question settings",start="!min_num_value_n",stop="---")}{INCLUDE}

{INCLUDE(page="Advanced question settings",start="!max_num_value_n",stop="---")}{INCLUDE}

{INCLUDE(page="Advanced question settings",start="!em_validation_q",stop="---")}{INCLUDE}

{INCLUDE(page="Advanced question settings",start="!em_validation_q_tip",stop="---")}{INCLUDE}

{INCLUDE(page="Advanced question settings",start="!em_validation_sq",stop="---")}{INCLUDE}

{INCLUDE(page="Advanced question settings",start="!em_validation_sq_tip",stop="---")}{INCLUDE}

{INCLUDE(page="Advanced question settings",start="!value_range_allows_missing",stop="---")}{INCLUDE}