Learn how to create multipage forms using the Sections form block logic.
Multipage forms are created with a single form using the Sections form block. The Sections form block can be used to show or hide questions, based on your contacts’ answers; this allows you to create branching forms.
Pages and forms uses section logic that contains pre-conditions, meaning a section decides if it should or shouldn’t appear. This feature has the benefits of normal branching, while also being more complex and able to make multi-level decisions.
Sections form block requirements
To use section logic, you must consider the following:
- Your form must contain the Sections form block.
- You can only use section logic with a block that contains three or more sections.
- The first and last block sections can’t contain section logic.
Add a Sections form block
To add a Sections form block to your form:
- Go to Pages and forms.
- If your form already exists, select the Pencil icon in the same row as the form you want to edit. If your form doesn’t exist yet, select New page or form.
To learn more about creating a new page or form, check out the Create a page article.
- Go to Form blocks.
- Drag the Sections form block onto the canvas.
- To add more sections, select Add new section.
When you add a Sections form block, the first section is included automatically. Also, there’s no limit to the number of sections you can add.
Any content outside of the Sections form block appears on every page of your form. It’s recommended that your header, footer, and action buttons should be placed outside of the block, so you don’t have to add them to every section.
Create section logic
To create section logic for a section:
- Select a Cog icon.
You must pick a cog that isn’t in the first or last section to change the logic.
- In the Edit section panel, select Yes for the Section logic field.
- Select either Show or Hide for the Default visibility field.
- Depending on if you selected Show or Hide in step 3, select either Show section when... or Hide section when....
- In the Edit section logic panel, name your action in the Action name box.
- For the When field, select either All rules are met or Any rules are met from the drop-down menu.
- Select [ click to add rule ] > Select. You can set up rules by editing the Field, Clause, and Condition fields.
- Select Apply.
- Add more rules by selecting [click to add rule], or select Apply > Apply.
Forms can contain an unlimited number of rules, which allows you to create complex multistage branching surveys.
Section logic use case
Here's a basic use case for section logic:
You own a store and you want to know how customers are feeling about their recent shopping experience. To do this, you choose to send a form that has the question How would you rate your experience at our store? You offer options ranging from Excellent to Poor in Section 1 by using the Checkbox list form block:
Based on the customer's answer, the logic decides if the next section appears. For example, if the customer selects Excellent, Very good, or Good, they can move to the final section without answering anymore questions. However, if the customer selects Fair or Poor, you want to know why they chose this option; by using a Text box form block in Section 2, the form asks Can you explain why you gave the score you did?:
For this to work, in Section 2, the Section logic toggle is set to Yes and the Default visibility is set to Hide. After selecting Show section when..., the When the drop-down menu is set to Any rules are met, and the fields are set to Fair or Poor.
Section 2 now only appears when any of the rules are met: when the customer answers Fair or Poor in Section 1.
Move a section
Each section can be reorganised and moved to an order that works best for you by dragging the upper-left corner of the block.
Copy or delete a section
You can copy or delete a section when creating your multipage form.
Copy a section
To copy a section, select the Copy icon.
All data is copied when you copy a section. This includes the section name, form inputs, the contents of drop-down menus, layout blocks, and pre-conditions used in survey logic.
Delete a section
To delete a section, select the Delete icon.
Animate a section
By default, moving between pages is instant. However, you can also use animation styles to create a more interactive experience. This is particularly effective for slide-based forms, which typically have one question per page.
To animate a section:
- Select the Cog icon for the entire Sections form block.
- In the Edit section panel, select an animation type from the Animation drop-down menu.
- Choose a style from the Style drop-down menu.
- Choose a scrolling style from the Scroll to drop-down menu.
- Select Apply.
Edit action buttons
The Action buttons form block behaves based on context. For example, the form block knows what page it is on when it’s used for multipage forms. It shows Previous, Next, and Submit buttons in this case. For a single page form, the form block always shows as a Submit button.
It’s recommended to add the Action buttons form block outside of the Sections form block because it appears on every page.
To edit the Action buttons form block, select the Action buttons form block from the canvas. In the Settings area, you can edit the following:
- Submit button text
- Back button text
- Next button text
- Button position
- Button layout
- Manage button styles
To learn more about managing your button styles, check out the Create button styles in EasyEditor article.