Spacer field
What it does
A Spacer adds empty space between two parts of the form. Visitors see only the gap. It collects no answer.
You find Spacer in the builder's left panel, in the Layout group, and add it by dragging it onto the form, as described in Adding fields and sections. In the builder it shows as a light area labelled Spacer with its height, for example Spacer · 48 px.
When to use
- Use a Spacer to give the form room to breathe, for example above the buttons at the end.
- To separate parts with a visible line, use a Divider.
Settings
Go to Content → WebForms → Manage Forms, click the form's name, then click Form Builder. Click the spacer on the form. Its settings show in the right panel, on the tabs General and Appearance.
Height on the Appearance tab is the size of the gap, from 0 to 96 px in steps of 4. The panel's note says to set it to Auto to use the theme spacing: drag the slider to its left end, past 0, until it reads Auto. With the default themes, Auto is about 15 px on Luma and 24 px on Hyvä and Breeze, because the themes measure text differently.
A spacer has no label. The General tab holds only Enable Element. On the Appearance tab you also set how wide it is on each device. The table below lists every setting. Visitors get a change after you click Publish Changes in the builder's top bar.
All settings of this field
| Setting | Where in the panel | Values | Translatable |
|---|---|---|---|
| Enable Element | General → Basic | On or off | No |
| Desktop | Appearance → Layout | Width: Full (1/1), Half (1/2), Third (1/3), Quarter (1/4), Fifth (1/5), Sixth (1/6), 2/3, 3/4, 2/5, 3/5, 4/5, 5/6; New row: on or off | No |
| Tablet | Appearance → Layout | Width: Full (1/1), Half (1/2), Third (1/3), Quarter (1/4), Fifth (1/5), Sixth (1/6), 2/3, 3/4, 2/5, 3/5, 4/5, 5/6; New row: on or off | No |
| Mobile | Appearance → Layout | Width: Full (1/1), Half (1/2), Third (1/3), Quarter (1/4), Fifth (1/5), Sixth (1/6), 2/3, 3/4, 2/5, 3/5, 4/5, 5/6; New row: on or off | No |
| Height | Appearance → Style | Text | No |
| Container Classes | Appearance → CSS | Text | No |
Validation
A spacer has no checks. It isn't sent with the form: it doesn't appear in the submission, in notification emails or in PDF documents.
Logic
- Show or hide this element: yes, with a rule on the logic board, for example to add space only when more fields appear. Once a rule controls it, the element's panel gets a Logic tab that lists the rule. See Show or hide fields.
- Start a rule: no.
Limits
- The largest gap is 96 px. For more space, put two spacers one after the other.
- Screen readers skip the spacer.
Troubleshooting
- The gap has a different size on another store view. With Height at Auto, the theme decides. Set a height in px to make it the same everywhere.
What's next
- Divider field: a line between parts of the form.
- Field layout and style: place elements side by side and start new rows.