Actions

QS

Hide tip/ja: Difference between revisions

From LimeSurvey Manual

(Created page with "<languages />")
 
No edit summary
 
(8 intermediate revisions by the same user not shown)
Line 2: Line 2:


<onlyinclude>
<onlyinclude>
===Hide tip (hide_tip)===
===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.
多くの質問では、「以下からひとつだけ選択してください」のような注記(tip)や質問への回答方法を示すテキストが表示されます。この属性で、tipやヒントを表示するかしないかを設定できます。


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.
こうしたtipやヒントには、検証基準(最小/最大回答数、最小/最大/合計値)に関するメッセージが含まれます。hide_tipをオンにすると、こうしたメッセージは表示されませんが、'''無効なデータを入力するとtipが表示されます'''。赤色で表示されますが、検証基準を満たすと緑色になります。


'''Available options'''
'''利用可能な設定値'''
*On - the tips/hints are hidden;
*オン - tipやヒント非表示
*Off (default).
*オフ(規定値)
</onlyinclude>
</onlyinclude>


===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:
検証メッセージを表示させないようにするにはCSSを使います。以下に、誤ったデータが送信された場合に回答者にtipやヒントを提示するコードの例を示します。


<syntaxhighlight lang="css">
<syntaxhighlight lang="css">
Line 25: Line 25:
</syntaxhighlight>
</syntaxhighlight>


[[Category:Question Settings]][[Category:Question Display Options]]
[[Category:Question Settings/ja]][[Category:Question Display Options]]

Latest revision as of 16:13, 16 August 2018


TIP非表示 (hide_tip)

説明

多くの質問では、「以下からひとつだけ選択してください」のような注記(tip)や質問への回答方法を示すテキストが表示されます。この属性で、tipやヒントを表示するかしないかを設定できます。

こうしたtipやヒントには、検証基準(最小/最大回答数、最小/最大/合計値)に関するメッセージが含まれます。hide_tipをオンにすると、こうしたメッセージは表示されませんが、無効なデータを入力するとtipが表示されます。赤色で表示されますが、検証基準を満たすと緑色になります。

利用可能な設定値

  • オン - tipやヒント非表示
  • オフ(規定値)


アドバンス

検証メッセージを表示させないようにするにはCSSを使います。以下に、誤ったデータが送信された場合に回答者にtipやヒントを提示するコードの例を示します。

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