Submit field
Submit is the send button. Every form needs one.
[[submit]]
Settings
| Setting | What it does |
|---|---|
| Label | The text on the button. Send by default. |
| Element | Button, or Link when your design needs an <a>. A link sends the form only with JavaScript on. |
Submit sends nothing itself, so it has no mail tag and no Required switch.
Where the reply shows
The message visitors get after sending shows where the Response chip ([[response]]) is, or at the end of the form when there is none. The captchas go before the send button unless you place the Captcha chip.
More buttons, or your own
A form can have several Submit fields: add one again and it gets its own name, such as submit_2. Each one sends the form.
You can also write the button yourself in the code, with your theme’s classes:
<button type="submit" class="btn btn-primary">Send</button>
A link works too. Give it data-remaily-submit, or it won’t send anything:
<a href="#" class="btn btn-primary" role="button" data-remaily-submit>Send</a>
Captchas go before the first of these buttons. While the form is sending, Submit fields and links with data-remaily-submit show a spinner; for a button of your own, style .remaily.is-sending in your theme.