Radical Design Course by Jack McDade

From the creator of Statamic

Learn how to make your websites standout and be remembered.

For a software dev like me who has no idea how to create a cute hand-drawn dashed line, this course just 100% works.

— Ira Zayats, Developer

Form:Set Tag

This is a "convenience" wrapper tag that will set all other form tags to use the same formset.

Overview

Each form tag needs to know which formset it is handling. As a convenience, rather than re-specifying the same formset parameter over and over, we can use an enclosing {{ form:set }} tag pair to apply it everywhere, automatically.

{{ form:set is="contact" }}
 
{{ if {form:errors} }}
{{ form:errors }}...{{ /form:errors }}
{{ /if }}
 
{{ if {form:success} }}...{{ /if }}
 
{{ form:create }}...{{ /form:create }}
 
{{ /form:set }}

In this example, if we didn't use the form:set wrapper tag, we would need to add in="contact" to each of the
form:something tags.

Parameters

handle|is|in|form|formset

string

Specify the name of the form.

Docs feedback

Submit improvements, related content, or suggestions through Github.

Betterify this page →