Actions

Default answers: Difference between revisions

From LimeSurvey Manual

(Marked this version for translation)
(Valid value précision)
Line 10: Line 10:


<!--T:4-->
<!--T:4-->
This lets you set the default values for certain list and multiple choice question types.
This lets you set the default values for some list question type, multiple choice question types and text question type {{NewIn|1.92}} .


<!--T:5-->
<div class="simplebox">Starting in version 1.92, you can also set default values for text-entry questions.</div>


<!--T:6-->
<!--T:6-->
'''Valid values'''
'''Valid values'''
*For multiple choice questions, you will see drop-down boxes letting you  select the desired default
*For single choice questions, you will see drop-down boxes letting you  select the desired default.
*For text-entry questions, you will have a text entry field in which you can enter any string or [[Expression Manager|expression]].  If you use an expression, you need to include curly braces
*For multi choice questions, you will see check boxs letting you select the desired default state (checked or not-checked).
*For text-entry questions{{NewIn|1.92}}, you will have a text entry field in which you can enter any string or [[Expression Manager|expression]].  If you use an expression, you need to include curly braces.


<!--T:7-->
<!--T:7-->

Revision as of 08:55, 28 June 2013


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}