Actions

QS

Preg validation: Difference between revisions

From LimeSurvey Manual

mNo edit summary
mNo edit summary
Line 17: Line 17:
<!--T:6-->
<!--T:6-->
'''Valid values'''
'''Valid values'''
*Any valid regular [[Expression Manager|expression]]
*Any valid regular expression]]


<!--T:7-->
<!--T:7-->

Revision as of 13:58, 7 March 2018


Validation (using regular expressions) (preg_validation)

Description

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.

Valid values

  • Any valid regular expression]]

Example