Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

21 lines (12 sloc) 0.668 kB

Check if an input has been filled in or checked.

For example when a title must be entered:

<input type="text" id="title" name="title" value="" />
{% validate id="title" type={presence} %}

Extra arguments:

Argument Description Example
failure_message Message to be shown when field is empty. Defaults to "*" failure_message="Please enter."
Jump to Line
Something went wrong with that request. Please try again.