QS:Em validation sq

From LimeSurvey Manual

Revision as of 15:35, 31 March 2018 by FuzzyBot (talk | contribs) (Updating to match new version of source page)
Other languages:
English • ‎Nederlands • ‎français • ‎日本語

Subvraag validatie vergelijking (em_validation_sq)


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.

Geldige waarden

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


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)

De gereserveerde variabele this wordt automatisch vervangen door een referentie naar het actieve invoerveld.