Example using the page’s frontmatter
The fields of the form below are specified in this page’s frontmatter.
Example using data files
The fields of the form below are specified in a data file. If both a data file and a frontmatter entry exists, the latter is used.
Specification
name: "name"
class: "my-custom-class" #optional
attributes: 'method="POST" netlify' #mapps directly to HTML attributes
fields:
- name: "fieldName"
class: "element-grid__full" #optional
type: "text" #optional
describtion: "This is a describtion that supports **markdown**." #optional
label: "This is a label that supports __markdown__:" #optional
attributes: 'required' #mapps directly to HTML attributes, optional