x

Capitolele principale

  1. LimeSurvey Cloud vs LimeSurvey CE
  2. LimeSurvey Cloud - Ghid de inițiere rapidă
  3. LimeSurvey CE - Instalare
  4. Cum să proiectați un sondaj bun (Ghid)
  5. Noțiuni de bază
  6. Configurați LimeSurvey
  7. Sondaje - Introducere
  8. Setările sondajului
  9. Vizualizați meniul sondajului
  10. Vedeți structura sondajului
  11. Introducere - Întrebări
  12. Introducere - Grupuri de întrebări
  13. Introducere - Managementul Sondajelor
  14. Opțiunile barei de instrumente pentru sondaj
  15. Sondaj multilingv
  16. Ghid de inițiere rapidă - ExpressionScript
  17. Caracteristici avansate
  18. Întrebări generale frrecvente
  19. Depanare
  20. Soluții alternative
  21. Licență
  22. Jurnal de modificare a versiunii
  23. Pluginuri - Avansat
 Actions

Răspunsuri implicite

From LimeSurvey Manual

Revision as of 16:11, 25 October 2023 by Maren.fritz (talk | contribs) (Created page with "=Introducere=")


Introducere

You can assign for different question types a default value to be recorded in the case in which the survey participant skips the question or decides that he or she is happy with the provided default answer. To access this option, look for the edit default answers button located on the question panel:



Valid values

  • For single choice questions, you will see drop-down boxes from where you can select the desired default value.
  • For multi-choice questions, you will see checkboxes from where you can select the desired default state (checked or not checked).
  • 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, curly brackets must be used.
  • For date-time questions, if you set a fixed value the format of the fixed value needs to be YYYY-MM-DD (for example: 2022-02-28). If you're using an expression to set a date, the format must be like date ('Y-m-d') or date ('Y-m-d H:s'). For example, if you want to set the current time as default in a date question with format HH:MM (hour and minute), you would have to use the full-time format in the default answer box: date ('Y-m-d H:s'). The format in the expression is independent of the format from the question settings.
  Attention:



Default value with ExpressionScript

Only "Text" and "Yes/No" question types allow the survey administrator to make use of the LimeSurvey ExpressionScript to change the default value. For all the other question types you can use assignment operators.


Example

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