Actions

Default answers/sl: Difference between revisions

From LimeSurvey Manual

m (FuzzyBot moved page QS:Defaults/sl to Default answers/sl without leaving a redirect: Part of translatable page "QS:Defaults".)
(Updating to match new version of source page)
Line 1: Line 1:
<languages />
<languages />
<onlyinclude>
<onlyinclude>
TO BE UPDATED


===Privzete vrednosti (defaults)===
===Privzete vrednosti (defaults)===
Line 8: Line 10:
To vam omogoča, da nastavite privzete vrednosti za določen seznam tipov vprašanj, vprašanja z več izbirami in vprašanja z besedilom {{NewIn|1.92}}
To vam omogoča, da nastavite privzete vrednosti za določen seznam tipov vprašanj, vprašanja z več izbirami in vprašanja z besedilom {{NewIn|1.92}}


'''Valid values'''
'''Veljavne vrednosti'''
*For single choice questions, you will see drop-down boxes letting you  select the desired default.
*Vprašanja z eno izbiro: izbiro želene privzete vrednosti vam omogoča spustni seznam.
*For multi choice questions, you will see check boxs letting you select the desired default state (checked or not-checked).
*Vprašanja z več izbirami: izbiro želene privzete vrednosti vam omogoča potrditveno polje (obkljukano ali neobkljukano).
*For text-entry questions{{NewIn|1.92}}, 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.
*Vprašanja z besedilom{{NewIn|1.92}}: v besedilno polje lahko vnesete poljuben niz znakov ali [[Expression Manager/sl|izraz]]. V primeru vnosa izraza morate uporabiti zavite oklepaje.
* 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:i'). 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 use the full format in the default answer expression: date('Y-m-d H:s'). The format in the expression is independent of the format in the question settings.


'''Example'''
'''Example'''
Line 23: Line 24:
</onlyinclude>
</onlyinclude>


[[Category:Question Settings]][[Category:General Question Options]]
[[Category:Question Settings/sl]][[Category:Core Question Settings/sl]]

Revision as of 17:25, 11 April 2018


TO BE UPDATED

Privzete vrednosti (defaults)

Opis

To vam omogoča, da nastavite privzete vrednosti za določen seznam tipov vprašanj, vprašanja z več izbirami in vprašanja z besedilom (New in 1.92 )

Veljavne vrednosti

  • Vprašanja z eno izbiro: izbiro želene privzete vrednosti vam omogoča spustni seznam.
  • Vprašanja z več izbirami: izbiro želene privzete vrednosti vam omogoča potrditveno polje (obkljukano ali neobkljukano).
  • Vprašanja z besedilom (New in 1.92 ): v besedilno polje lahko vnesete poljuben niz znakov ali izraz. V primeru vnosa izraza morate uporabiti zavite oklepaje.

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.