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
value display: 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
warntag or decorator must be used in conjunction with thevalidationtag or widget. - The tag / decorator accepts the input of 'y'.
- If using the
warndecorator, place it at the end of the single line validation, created with thevalidationtag, as shown above. - If using the
warntag, add it on an independent line to a standalonevalidationwidget. - 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.