Question type - List (Dropdown)

From LimeSurvey Manual
Jump to: navigation, search
Other languages:English 100% • ‎español 15% • ‎Nederlands 92% • ‎slovenščina 92%

Contents


Short description

This question type collects input from a dropdown menu. You can also create subcategories within this list by using the advanced setting 'Category separator'.
EM ListR.png


Download english sample question: W_-_List_Flexible_Labels_Dropdown.csv

Core settings

Default values (defaults)

Description

This lets you set the default values for some list question type, multiple choice question types and text question type (New in 1.92 ) .


Valid values

  • For single choice questions, you will see drop-down boxes letting you select the desired default.
  • For multi choice questions, you will see check boxs letting you select the desired default state (checked or not-checked).
  • For text-entry questions (New in 1.92 ), you will have a text entry field in which you can enter any string or expression. If you use an expression, you need to include curly braces.

Example

  • You have a non-anonymous survey, where {TOKEN:ATTRIBUTE_1} is the person's age as of the time the tokens table was created. You want to prefill a question with the person's age and ask them to validate that the age is accurate, or let them change the age value if it is not accurate. In the text entry field for the default value, you would enter {TOKEN:ATTRIBUTE_1}

Caution with default value and hidden question

  • If you have hidden question with default value, this default value is set only when the user come to the step of this question. This mean that if whole group his hidden, then no default value is set, or if you are in question by question mode, no default value is set.
  • For hidden question, an alternative solution can be used Expression manager with assignment operator.



Mandatory (mandatory)

Description

This option lets you require that all parts of the question be answered. If you have a question with multiple sub-questions, and want to require that some but not all parts be answered, use the min_answers question attribute instead.

Valid values

  • Yes
  • No (default)



Option 'Other' (other)

Description

This option is used by multiple choice-type questions and gives you the ability to ask for a selection that is not part of the enumerated answer list.

Valid values

  • Yes
  • No (default)



Relevance equation

Notice.png
Hint: This features is available starting in version 1.92


Description

If the value of the relevance equation is "1" or "true", the question is "relevant" in the survey context, i.e. it is shown to the survey participant. If not, the question is hidden. All questions let you specify a relevance equation. Relevance is the successor to conditions and supports much more complex conditional logic.

Syntax Highlighting

Whenever you save the relevance equation, it will be evaluated and syntax-highlighted. Any errors will be color coded so that you can quickly detect and fix them.

Valid values

Any equation, using Expression Manager syntax, without surrounding curly braces.

Examples

Here are good examples of syntax highlighting


Advanced settings

Random answer order (random_order)

Description

This attribute causes LimeSurvey to ignore the existing order of answer options/subquestions, and instead it orders them randomly. It is important to note that this random order will be reordered each time the question is displayed, so if someone returns to a question, the order will probably be different from the first time they saw it. Having the answers display randomly is useful to remove the possibility of bias from answers to questions. Please note that if a question has subquestions the order of subquestions will be randomized, not the order of the answer options.

Available options

  • Randomize on each page load
  • Off (default)



Randomization group name (random_group)

Notice.png
Hint: This features is available starting in version 1.92


Description

Place questions into a specified randomization group, all questions included in the specified group will appear in a random order.

Valid values

Just enter any string you like (for example: 'group1'). All question which have set the same string will have their place in the survey randomized (=randomly exchanged among each other).



Sort answers alphabetically (alphasort)

Description

If you use a list of radiobuttons or a dropdown list you can order this list alphabetically by applying this question attribute.

Available options

  • On
  • Off (default)



Label for 'Other:' option (other_replace_text)

Notice.png
Hint: This features is available starting in version 1.80


Description

Short text string to replace the text "Other" as the label for other.

Example

Entering a value of "Alternative:" for this attribute would result in the word "Alternative:" being used for the label for the "Other" option instead of the word "Other". It is extremely important to note that this question attribute should only be used in single-language surveys. Prior to version 1.80, if used in multiple language surveys, the same question attribute value will be used no matter which language is being displayed.

In version 1.80 and later, a translation will be attempted but will only be successful if the translation already exists in the alternate language file (ie: translation cannot be made on a survey-by-survey basis). This means: to translate your other text you have to add your other_replace_text to the english .mo file (because this is LimeSurveys baselanguage) and translate this String in each of your surveys languages .mo files.



Hide tip (hide_tip)

Description

Most questions will usually include a tip that says "Please choose one of the following options" or similar hint text how to fill out the question. This attribute allows you to turn off this tips/hints.

Notice.png
Hint: This feature changed with version 1.92


These tips include the validation criteria messages, (such as min/max number of answers, min/max/equals sum value). If hide_tip is true, they will be initially hidden; but if the user enters invalid data, the tips will appear, color coded red to indicate the error. Once the validation criteria are met, the color coding will change to green, but the tips will not disappear.

For tip used by LimeSurvey (dynamic), the method use to hide tip is css only, then you can choose another way for hidding it. An exemple to show tip if user submit with error:

.hide-tip .good {display: none;}
.hide-tip .error {display: none;}
.input-error .hide-tip .error {display: block;}

Available options

  • Yes
  • No (default)



Category separator (category_separator)

Description

This attibute takes a char that will be considered by LimeSurvey as a category separator in answers.

Example

If you set this to the char ":", and have an answer with the following text "Fruit: orange" and another with "Fruit: apple", then a category of "Fruit" is assumed and will contain 2 items "orange" and "apple". This will be displayed as categories/items in the dropdown list.



Always hide this question (hidden)

Description

If you prefill a question by URL you can use this setting to hide the question and its value from the survey participant at all. This overrides any conditions because the particular question is never even embedded in a page. If you just want to hide a question (for example if you want to store a value calculated on the fly) then use Javascript embedded in the question source code.

Notice.png
Hint: The question are not diplay in HTML, it can be set with an equation question or survey URL, but not in javascript


Available options

  • On
  • Off (default)



'Other:' comment mandatory (other_comment_mandatory)

Description

Only applies to mandatory questions having an 'other answer' in which the participant can give a free text response ('other comment').

When this setting is activated and the participant selects the other answer (the 'other checkbox' or 'other answer in a list'), then he will have to give a comment in the 'Other comment' input box in order to proceed to next page.

Note that this option is not available for Multiple Choice questions because the Other checkbox status is not recorded in DB for this question type, only the content of the other text input is recorded. This means that checking the other checkbox is just a visual effect that is only meaningfull if the text box is filled in: that is why other_comment_mandatory is assumed to be set for this question type.

Example

If activated for a "Multiple options with comments" question and the user enters a value in the left part of the Other answer but doesn't enter text in the Other Comment part, a warning message will be displayed when he tries to proceed to the next page.



SPSS export scale type (scale_export)

Description

Used for SPSS export only. This attribute overrides the default scale guessed by SPSS. To learn what the different measurement scales do, please read the related SPSS documentation.

Available options

  • Default (default)
  • Nominal
  • Ordinal
  • Scale



Show in public statistics (public_statistics)

Description

This attribute allows the admin to chose if the results of a particular question should be shown to the survey participant after he/she has the submitted he survey. Please note that in general to show statistics to the participant the survey setting 'Public statistics' has to be enabled!

The default setting for each question is 'No' (=Do not show statistics of this question to the user). You have to enable this for every single question if you want to show the survey statistics of that particular question to the participant after the survey submission.

Available options

  • Yes
  • No (default)



Insert page break in printable view (page_break)

Description

This attribute is only active when you actually print a survey from the Printable View. It forces a page break before the question. (Only the Opera browser does not need this since it handles the page breaks accordingly.)

Available options

  • Yes
  • No (default)




Dropdown size (dropdown_size)

Notice.png
Hint: This features is available starting in version 1.92


Description

For List dropdown questions, this lets you control how many list items are visible.

Valid values

  • Any integer greater than 0
  • Note, if you select a number larger than the length of the list, the list will be sized to show all options



Dropdown prefix (dropdown_prefix)

Notice.png
Hint: This features is available starting in version 1.92


Description

For List Dropdown, this lets you optionally prefix each entry with a number for easier keyboard-based selection

Valid values

  • None
  • Order - like 3)