Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

23 lines (13 sloc) 0.745 kB

Check if an input value evaluates to true.

Can be used in combination with a check box that must be checked on submit.

For example:

<input type="checkbox" id="accept" name="accept" value="1" />
{% validate id="accept" type={acceptance} %}

Arguments:

Argument Description Example
failure_message Message to be shown when the input is true. Defaults to "Must be accepted." failure_message="Please agree to our TOS."
Jump to Line
Something went wrong with that request. Please try again.