Warnings allow respondents to fail validation criteria and proceed by resubmitting the page after a second attempt. To convert a regular validation into a warning, add the warn
tag or decorator.
45. What percent of your business is new construction?
type: slider
valuedisplay: y
postfix: %
min: 0
max: 100
dvalue: 50
validation: $Q45 != 50 {message: It looks like you didn't move the slider. If this value is correct, re-click the continue button.} {warn: y}
Details
- The
warn
tag or decorator must be used in conjunction with thevalidation
tag or widget. - The tag / decorator accepts the input of 'y'.
- If using the
warn
decorator, place it at the end of the single line validation, created with thevalidation
tag, as shown above. - If using the
warn
tag, add it on an independent line to a standalonevalidation
widget. - The validation message should be clear, indicating that the respondent may continue after resubmitting the page.
Additional examples
Applying the 'warn' tag
The warn
tag is used when the validation statement is a separate widget from the question being validated.
In the example below, when a slider defaults to a midpoint, a warning prompts respondents to confirm that leaving it unchanged is intentional.
Comments
0 comments
Please sign in to leave a comment.