Forms can be added via the forms partial or shortcode. The form’s fields are specified as data, either in a page’s frontmatter or in a data file.

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.

Yes, I have read the privacy policy and agree that the data I have provided may be collected and stored electronically. My data will only be used strictly for the purpose of processing and answering my enquiry.

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
Type to search or press esc to cancel.