Actions

QS

Hide tip: Difference between revisions

From LimeSurvey Manual

mNo edit summary
(Marked this version for translation)
 
(2 intermediate revisions by one other user not shown)
Line 10: Line 10:


<!--T:280-->
<!--T:280-->
Most questions will usually include a tip that says "Please choose one of the following options" or a hint text on how to fill out the question. This attribute allows you to turn off this tips/hints.
Most questions will usually include a tip that says "Please choose one of the following options" or a hint text on how to fill out the question. This attribute allows you to turn off or on this tips/hints.


<!--T:286-->
<!--T:286-->
These tips include the validation criteria messages (such as min/max number of answers, min/max/equals sum value). If hide_tip is enabled, these messages will be hidden. However, '''if the user enters invalid data, the tips will appear'''. They will be coloured in red, getting changed to green Once the validation criteria are met.
These tips/hints include validation criteria messages (such as min/max number of answers, min/max/equals sum value). If hide_tip is enabled, these messages will be hidden. However, '''if the user enters invalid data, the tips will appear'''. They will be coloured in red, getting changed to green once the validation criteria are met.
 
<!--T:282-->
'''Available options'''
*On - the tips/hints are hidden;
*Off (default).
</onlyinclude>
 
===Advanced=== <!--T:289-->


<!--T:287-->
<!--T:287-->
The method used to hide tip is '''css only''', but you can choose another way to hide it. An example to show tip(s) and hits is if user submits with error:
You have to use CSS in order to hide the validation messages. The below example shows the code you should use if you want to display to your respondents tips/hints if they submit something wrong:


<!--T:288-->
<!--T:288-->
Line 24: Line 32:
.input-error .hide-tip .error {display: block;}
.input-error .hide-tip .error {display: block;}
</syntaxhighlight>
</syntaxhighlight>
<!--T:282-->
'''Available options'''
*On - the tips and hints are hidden;
*Off (default).
</onlyinclude>


<!--T:284-->
<!--T:284-->

Latest revision as of 21:42, 7 March 2018


Hide tip (hide_tip)

Description

Most questions will usually include a tip that says "Please choose one of the following options" or a hint text on how to fill out the question. This attribute allows you to turn off or on this tips/hints.

These tips/hints include validation criteria messages (such as min/max number of answers, min/max/equals sum value). If hide_tip is enabled, these messages will be hidden. However, if the user enters invalid data, the tips will appear. They will be coloured in red, getting changed to green once the validation criteria are met.

Available options

  • On - the tips/hints are hidden;
  • Off (default).


Advanced

You have to use CSS in order to hide the validation messages. The below example shows the code you should use if you want to display to your respondents tips/hints if they submit something wrong:

.hide-tip .good {display: none;}
.hide-tip .error {display: none;}
.input-error .hide-tip .error {display: block;}