Form
A Form object represents the whole form: its settings, pages, fields, notifications and render context. When you work with a form in Twig or PHP, this is usually the main object you are dealing with.
Properties
The form ID.
The form title.
The form handle.
The default status for new submissions on this form.
The form template assigned to the form, if one is set.
The ID of the form group this form belongs to in the control panel, if any.
Methods
Returns the form’s Page objects.
Returns whether the form has more than one page.
Returns the current page for multi-page form handling.
Returns the previous page, if one exists.
Returns the next page, if one exists.
Returns the current page’s zero-based index.
Returns whether the current page is the first page.
Returns whether the current page is the last page.
Returns all Field objects on the form.
Returns a field by its handle.
Returns all Notification objects attached to the form.
Returns the enabled notifications attached to the form.
Returns the URL Formie will redirect to after a successful submission, when applicable.
Returns the submission currently associated with the form render, when available.