Page
A Page object represents one page in a form. Single-page forms still have a page object; multi-page forms just make the page sequence more visible.
For a saved form with the handle contactForm, retrieve its pages and inspect their labels in Twig:
{% set form = craft.formie.forms({ handle: 'contactForm' }).one() %}
{% if form %}
{% for page in form.getPages() %}
<h2>{{ page.label }}</h2>
{% endfor %}
{% endif %}Each loop item is a Page. Use its methods below when you need the fields or conditions belonging to that page.
Properties
The page label.
The page handle, derived from the label.
The page order within the form.
The page settings, including page button labels and layout options.
Methods
Returns the row objects on this page.
Returns the Field objects on this page.
Returns the field on this page with the handle you pass, such as page.getFieldByHandle('email'), or null when there isn’t one.
Returns whether conditions hide the page for the submission you pass, such as page.isConditionallyHidden(submission).
Returns whether the page has conditions configured.
Returns the page conditions.
Returns the conditions in the shape used by Formie’s front-end handling.
Returns the field errors on this page for the submission you pass, such as page.getFieldErrors(submission). The submission can be null.