Actions

QS

Preg validation/ja: Difference between revisions

From LimeSurvey Manual

(Created page with "'''例''' * hereにいくつか例があります")
(Updating to match new version of source page)
Line 1: Line 1:
<languages />
<languages />
<onlyinclude>
<onlyinclude>
 
===Validation (using regular expressions) (preg_validation)===
===値チェック(正規表現を使う)(preg_validation)===


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


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


質問への回答のどれかがこのチェックに引っかかる場合、テキスト入力の背景色が赤くなり {{NewIn|1.92}}、回答者が直すべき場所に気づきやすくなっています。サブミットボタンを押さなくてもそのページ内でチェックができるというわけです。
If any question or subquestion value does not meet the validation requirements, the background color of the text entry field will be changed to red so that users can easily see which parts of the question need to be corrected. Thus, you can do on-page validation. In this way you will '''not''' need to wait for the user to click on the submit button to validate the respective question.


'''値チェックの条件'''
'''値チェックの条件'''
* 正規表現として妥当なものならすべて可
* 正規表現として妥当なものならすべて可


''''''
'''Example'''
* [[Using regular expressions|here]]にいくつか例があります
*[[Using regular expressions|Click here]] to check multiple examples.


</onlyinclude>
</onlyinclude>


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

Revision as of 15:25, 31 March 2018


Validation (using regular expressions) (preg_validation)

説明

This option lets you specify a regular expression with which to validate all parts of a question.

If any question or subquestion value does not meet the validation requirements, the background color of the text entry field will be changed to red so that users can easily see which parts of the question need to be corrected. Thus, you can do on-page validation. In this way you will not need to wait for the user to click on the submit button to validate the respective question.

値チェックの条件

  • 正規表現として妥当なものならすべて可

Example