Actions

QS

Em validation sq/hu: Difference between revisions

From LimeSurvey Manual

(Created page with "<languages /> <onlyinclude>")
(Created page with "===Részkérdés-érvényesítési egyenlet (em_validation_sq)===")
Line 4: Line 4:
===Részkérdés-érvényesítési egyenlet (em_validation_sq)===
===Részkérdés-érvényesítési egyenlet (em_validation_sq)===


'''Description'''
'''Leírás'''


This is an equation that is used to validate each subquestion (text field) individually.  Any text field that does not pass these validation conditions will have its background color turned pink (using the .em_sq_fn_validation CSS style) to highlight the error.  Note that this is available in addition to the regular expression-based validation option.
This is an equation that is used to validate each subquestion (text field) individually.  Any text field that does not pass these validation conditions will have its background color turned pink (using the .em_sq_fn_validation CSS style) to highlight the error.  Note that this is available in addition to the regular expression-based validation option.

Revision as of 14:41, 10 October 2023


Részkérdés-érvényesítési egyenlet (em_validation_sq)

Leírás

This is an equation that is used to validate each subquestion (text field) individually. Any text field that does not pass these validation conditions will have its background color turned pink (using the .em_sq_fn_validation CSS style) to highlight the error. Note that this is available in addition to the regular expression-based validation option.

Valid values

Any equation that makes use of the ExpressionScript syntax, without surrounding curly braces.

Examples

For example, if you want to allow only numbers that are a multiple of 3 as answers, the equation would be:

(this / 3) == floor(this/3)

The reserved variable this is automatically replaced by a reference to the active text entry cell.