Actions

QS

Preg validation/ja: Difference between revisions

From LimeSurvey Manual

(Created page with "'''説明'''")
No edit summary
 
(14 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<languages />
<languages />
<onlyinclude>
<onlyinclude>
 
===(正規表現を使った)検証 (preg_validation)===
===値チェック(正規表現を使う)(preg_validation)===


'''説明'''
'''説明'''


This option lets you specify a regular expression with which to validate all parts of a question.
この設定は、質問内のすべての値の検証に使う[[Using_regular_expressions/ja|正規表現]]を指定するものです。


If any question or sub-question value does not meet the validation requirements, the background color of the text entry field will be changed to red {{NewIn|1.92}} so that users can easily see which parts  of the question need to be corrected.  Thus, you can do on-page validation and do not need to wait for the user to click submit in order to validate the question.
質問やサブ質問への回答のどれかがこの検証要件に適合しない場合、テキスト入力欄の背景色が赤くなり、回答者が直すべき場所に気づきやすくなっています。回答者が送信ボタンを押さなくてもそれぞれの質問を検証することができます。


'''Valid values'''
'''有効な値'''
*Any valid regular expression
* 有効な任意の正規表現


'''Example'''
''''''
*See multiple examples [[Using regular expressions|here]]
* [[Using regular expressions|こちら]]にいくつか例があります


</onlyinclude>
</onlyinclude>


[[Category:Question Settings]][[Category:Advanced Question Settings]]
[[Category:Question Settings/ja]][[Category:General Question Options/ja]]

Latest revision as of 07:18, 24 August 2018


(正規表現を使った)検証 (preg_validation)

説明

この設定は、質問内のすべての値の検証に使う正規表現を指定するものです。

質問やサブ質問への回答のどれかがこの検証要件に適合しない場合、テキスト入力欄の背景色が赤くなり、回答者が直すべき場所に気づきやすくなっています。回答者が送信ボタンを押さなくてもそれぞれの質問を検証することができます。

有効な値

  • 有効な任意の正規表現