Submit Button field
What it does
The Submit Button is the button that sends the form. Every form has exactly one: it isn't in the builder's left panel, and the builder shows it on every form, below the other elements, with the Captcha element right above it. Its panel says it can't be removed.
While the form is being sent, the button shows a small spinning circle and the text "Sending...", and it can't be clicked again. It goes back to your Button Text if something stops the form from being sent.
When to use
- Change its words to say what happens, for example
Request a quoteorSend application. - Change its look so it matches your store's other buttons.
Settings
Go to Content → WebForms → Manage Forms, click the form's name, then click Form Builder. Click the button on the form. Its settings show in the right panel, on the tabs General and Appearance:
| Setting | Where | What it does |
|---|---|---|
| Button Text | General | The words on the button. The panel says: "Leave blank to use the form's submit label." A blank button reads Submit. |
| Processing Text | General | The words on the button while the form is being sent. The panel says: 'Leave empty for "Sending...".' |
| Width | Appearance | Theme Default, Fit Content or Full Width. Full Width stretches the button across the whole form. |
| Alignment | Appearance | Left, Center or Right. When only buttons and the CAPTCHA follow it in its section, the button moves to that edge of the row, also when the CAPTCHA isn't shown. Buttons with the same alignment stay side by side. A multi-step form keeps its own step buttons. |
| Size | Appearance | Normal, Large or Extra large. |
| Appearance | Appearance | Primary, Secondary or Outline. |
| Button Color | Appearance | Fills the button and its border with the color you pick. |
Button Classes, Container Classes and Button Inline Style are for your own CSS. See CSS classes and inline styles.
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 |
|---|---|---|---|
| Button Text | General → Button | Text | Yes |
| Processing Text | General → Field Settings | Text | Yes |
| 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 |
| Width | Appearance → Button | Theme Default, Fit Content, Full Width | No |
| Alignment | Appearance | Left, Center, Right | No |
| Size | Appearance | Normal, Large, Extra large | No |
| Appearance | Appearance | Primary, Secondary, Outline | No |
| Button Color | Appearance | Text | No |
| Container Classes | Appearance → CSS | Text | No |
| Button Classes | Appearance → CSS | Text | No |
| Button Inline Style | Appearance → Advanced | Text | No |
On a multi-step form
On a multi-step form, the steps before the last show Back and Continue. Only the last step shows the Submit Button, with your Button Text, for example Send application.
Validation
When the visitor clicks the button, the form checks the fields first. If one has a problem, the form isn't sent and the field shows its message. See Validation rules.
Logic
- Show or hide this element: yes. A rule can hide the button, for example when an answer means you can't take the request. A visitor can't send the form while the button is hidden. Once a rule controls it, the button's panel gets a Logic tab that lists the rule.
- In the rule panel, the button is under Form actions. On the logic board it's listed as Submit.
See Show or hide fields.
Limits
- The button can't be switched off, copied or deleted: its right-click menu has no Disable, Duplicate or Delete. An attempt to switch it off another way, for example through the API, is refused with "The Submit button cannot be disabled." To hide it for some answers, use a rule, as described above.
- One Submit Button per form. For a second button, such as a link to another page, use a Button. A Button takes the Submit Button's size, and in the Primary style its Button Color, unless you set its own.
- Button Color changes the fill and the border. With Secondary and a Button Color, the words turn white on Luma and Hyvä. Check the button on your store after you change the color.
Troubleshooting
- The button is missing on the store. A rule hides it. Check the rules that list Submit on the logic board.
- Clicking the button does nothing. Look for a message under a field: the form doesn't send while a required field is empty or an answer fails its check.
What's next
- Multi-step forms: split the form into steps with Continue between them.
- Show or hide fields: rules that show or hide fields and the button.
- Button field: a second button that opens a link.