QS: Convalida Preg
From LimeSurvey Manual
Convalida (usando espressioni regolari) (preg_validation)
Descrizione
Questa opzione ti consente di specificare un'espressione regolare con la quale puoi convalidare tutte le parti di una domanda.
If any question or subquestion value does not meet the validation requirements, the background colour 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
- Click here to check multiple examples.