Actions

QS

Em validation sq/nl: Difference between revisions

From LimeSurvey Manual

No edit summary
(Updating to match new version of source page)
Line 3: Line 3:


===Subvraag validatie vergelijking (em_validation_sq)===
===Subvraag validatie vergelijking (em_validation_sq)===
{{FeatureStarting/nl|v=1.92}}


'''Beschrijving'''
'''Beschrijving'''


Deze vergelijking wordt gebruikt om elke subvraag afzonderlijk te validerenAls de invoer van een subvraag niet voldoet, dan wordt de achtergrondkleur roze (gebruik van de  .em_sq_fn_validation CSS style) om de fout te markerenDit is een aanvulling op de normale reguliere expressie validatie.
This is an equation that is used to validate each subquestion (text field) individuallyAny 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 errorNote that this is available in addition to the regular expression-based validation option.


'''Geldige waarden'''
'''Geldige waarden'''


De vergelijking gebruikt de syntax die beschreven is in de [[Expression Manager/nl|Expressie Beheer]], zonder de omringende accolades.
Any equation that makes use of the [[Expression Manager]] syntax, without surrounding curly braces.


'''Voorbeelden'''
'''Voorbeelden'''


Stel je hebt een vraag met meerdere korte teksten en je wilt e-mailadressen verzamelen.  Je zou een reguliere expressie kunnen gebruiken om de syntax te valideren.
For example, if you want to allow only numbers that are a multiple of 3 as answers, the equation would be:
 
Nog een voorbeeld, je wilt alleen veelvouden van 3 toestaan, de vergelijking wordt dan:


<syntaxhighlight lang="php" enclose="div">(this / 3) == floor(this/3)</syntaxhighlight>
<syntaxhighlight lang="php" enclose="div">(this / 3) == floor(this/3)</syntaxhighlight>
Line 26: Line 22:
</onlyinclude>
</onlyinclude>


[[Category:Question Settings/nl]][[Category:Advanced Question Settings/nl]]
[[Category:Question Settings]][[Category:Question Logic Options]]

Revision as of 15:35, 31 March 2018


Subvraag validatie vergelijking (em_validation_sq)

Beschrijving

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.

Voorbeelden

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.