Multi-page forms
A Pagebreak field splits a form into pages. Everything above it is page 1, everything below it is page 2, and so on. The visitor moves between pages with Next and Prev buttons; the form is sent once, from the last page.
The installer adds JoomForms Multipage example, a working form with several pages.
Add a page break
- On the Form Builder tab, click Pagebreak in the field list.
- Give it a name, for example
page2, and set its options. - Place it in the grid between the fields of the two pages.
Pagebreak settings
| Setting | Meaning |
|---|---|
| Next Button Label | Default Next >. |
| Prev Button Label | Default < Prev. |
| Validate When Changing Page? | Checks the fields of the current page before the visitor can go on. |
| Display Progress Text? | No, Yes (your own Progress Message) or Auto Generate (the progress bar of the layout framework). |
| Progress Message | Text with {page}, {total} and {percent}, for example Page {page} of {total}. |
| Button Type | <button> or <input> tags. |
The Submit Button on the last page has its own Prev Button Label and progress settings.
When an answer is wrong
If the form is sent with errors, it opens again on the page of the first wrong field.
Layout
The generated layout puts each page in its own block. If you edit the layout by hand, keep the IDs such as joomforms_1_page_0: the page script needs them. See Layout and design.