Default answers/14/en: Difference between revisions
From LimeSurvey Manual
(Importing a new version from external source) |
(Importing a new version from external source) |
||
Line 3: | Line 3: | ||
*For multi choice questions, you will see checkboxes from where you can select the desired default state (checked or not-checked). | *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 Manager|expression]]. If you use an expression, curly brackets must be used. | *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, curly brackets must be used. | ||
*For date-time questions, 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 | *For date-time questions, 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. |
Revision as of 18:00, 3 August 2018
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'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.