Actions

Difference between revisions of "Default answers"

From LimeSurvey Manual

(Created page with "<translate> <!--T:1--> <languages /> <onlyinclude> ===Default values (defaults)=== '''Description''' This lets you set the default values for certain list and multiple choi...")
 
(Marked this version for translation)
Line 4: Line 4:
 
<onlyinclude>
 
<onlyinclude>
  
===Default values (defaults)===
+
===Default values (defaults)=== <!--T:2-->
  
 +
<!--T:3-->
 
'''Description'''
 
'''Description'''
  
 +
<!--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 certain list and multiple choice question types.
  
 +
<!--T:5-->
 
<div class="simplebox">Starting in version 1.92, you can also set default values for text-entry questions.</div>
 
<div class="simplebox">Starting in version 1.92, you can also set default values for text-entry questions.</div>
  
 +
<!--T:6-->
 
'''Valid values'''
 
'''Valid values'''
 
*For multiple choice questions, you will see drop-down boxes letting you  select the desired default
 
*For multiple 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 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
  
 +
<!--T:7-->
 
'''Example'''
 
'''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}
 
*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}
  
 +
<!--T:8-->
 
</onlyinclude>
 
</onlyinclude>
  
 
</translate>
 
</translate>

Revision as of 21:00, 5 May 2013

Other languages:
Deutsch • ‎English • ‎Nederlands • ‎français • ‎slovenščina • ‎日本語


Default values (defaults)

Description

This lets you set the default values for certain list and multiple choice question types.

Starting in version 1.92, you can also set default values for text-entry questions.

Valid values

  • For multiple 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. 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}