Fetching contributors…
Cannot retrieve contributors at this time
25 lines (24 sloc) 594 Bytes
title: Raise validation error
short title: Validation
documentation: ""
example start: 2
example end: 3
- docassemble.base.util
question: Repeat after me.
subquestion: |
To continue, type "I solemnly swear
that I am up to no good."
- no label: oath
validate: |
lambda y: validation_error("No, you typed it wrong.") if y != 'I solemnly swear that I am up to no good.' else True
mandatory: True
need: oath
question: |
You are now allowed to use
the Marauder's Map.