x

Основни глави

  1. LimeSurvey Cloud срещу LimeSurvey CE
  2. LimeSurvey Cloud - Кратко ръководство за стартиране
  3. LimeSurvey CE - Монтаж
  4. Как да проектираме добро проучване (Ръководство)
  5. Приготвяме се да започнем
  6. Конфигурация на LimeSurvey
  7. Въведение - Анкети
  8. Вижте настройките на проучването
  9. Вижте менюто за проучване
  10. Вижте структурата на проучването
  11. Въведение - Въпроси
  12. Въведение - Групи въпроси
  13. Въведение – Проучвания – Управление
  14. Опции на лентата с инструменти за проучване
  15. Многоезично проучване
  16. Кратко ръководство за стартиране - ExpressionScript
  17. Разширени функции
  18. Общи ЧЗВ
  19. Отстраняване на неизправности
  20. Заобиколни решения
  21. Разрешително
  22. Дневник на промените на версията
  23. Плъгини - Разширени
 Actions

Отговори по подразбиране

From LimeSurvey Manual

Revision as of 07:11, 13 November 2023 by Maren.fritz (talk | contribs) (Created page with "=Валидни стойности=")


Въведение

Можете да зададете за различни типове въпроси стойност по подразбиране, която да бъде записана в случай, че участникът в проучването пропусне въпроса или реши, че е доволен от предоставения отговор по подразбиране. За достъп до тази опция потърсете бутона редактиране на отговорите по подразбиране, намиращ се в панела с въпроси:



Валидни стойности

  • 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.