form

The form object is only available inside the scope of the form tag block and the available attributes are dependent on the form type. The object has the following attributes:


General Form Object

form.errors

Returns an array of validation errors for the form

[
'Title can\'t be blank',
'Email is invalid'
]

form.submitted_successfully

Returns true if the form was successfully submitted with no errors


Contact Form Object

form.id

Returns the created query ID


form.email

Returns the submitted email address


form.title

Returns the submitted query title


form.message

Returns the submitted message