x

Main chapters

  1. LimeSurvey Cloud vs LimeSurvey CE
  2. LimeSurvey Cloud - Quick start guide
  3. LimeSurvey CE - Installation
  4. How to design a good survey (Guide)
  5. Getting started
  6. LimeSurvey configuration
  7. Introduction - Surveys
  8. View survey settings
  9. View survey menu
  10. View survey structure
  11. Introduction - Questions
  12. Introduction - Question Groups
  13. Introduction - Surveys - Management
  14. Survey toolbar options
  15. Multilingual survey
  16. Quick start guide - ExpressionScript
  17. Advanced features
  18. General FAQ
  19. Troubleshooting
  20. Workarounds
  21. License
  22. Version change log
  23. Plugins - Advanced
 Actions

Default answers/en: Difference between revisions

From LimeSurvey Manual

FuzzyBot (talk | contribs)
Importing a new version from external source
FuzzyBot (talk | contribs)
Importing a new version from external source
Line 16: Line 16:
'''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}
'''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 [[Expression Manager#Caution_about_using_Assignment_Operator_.28.3D.29|assignment operator]].


</onlyinclude>
</onlyinclude>


[[Category:Question Settings]][[Category:Core Question Settings]]
[[Category:Question Settings]][[Category:Core Question Settings]]

Revision as of 17:35, 26 September 2014


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.