> For the complete documentation index, see [llms.txt](https://docs.realmacsoftware.com/elements-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.realmacsoftware.com/elements-docs/using-elements/components/form/submit.md).

# Submit

Submit provides the behaviour that validates and submits its parent Form. It is a wrapper with a drop zone; it does not draw a visible control of its own.

{% hint style="danger" %}
**Submit does not work on its own.** Add a Button, Image, or another visible and clearly clickable component inside its drop zone. Without a child component, visitors have nothing to click and the form will not submit.
{% endhint %}

### How to Use Submit

You’ll find Submit under **Forms** in the Components list.

1. Place Submit inside a [Form](/elements-docs/using-elements/components/form.md).
2. Drag a **Button** into Submit’s drop zone.
3. Edit the Button text—for example, “Send message”.
4. Leave the Button’s Link unset so it does not navigate away.
5. Add [Success](/elements-docs/using-elements/components/form/success.md) and [Error](/elements-docs/using-elements/components/form/error.md) content to the Form.
6. Publish and test validation, loading, success, and failure behaviour.

Button is the recommended child because it gives visitors familiar semantics, focus behaviour, and a clear click target. Another component can be used when it remains keyboard accessible and its purpose is obvious.

### Component Settings

Submit has no component-specific Inspector settings. Its child component controls appearance, size, text, hover, focus, and accessibility.

Advanced Classes and ID are available on the Submit wrapper.

### How Submission Works

Clicking the child component asks the parent Form to:

1. Check browser validation and Required fields.
2. Display invalid-field styling when needed.
3. Collect field values and attachments.
4. Send the data to the configured Email or Webhook endpoint.
5. Show Success or Error content, or follow the configured redirect.

### Accessibility

Use a Button with an action label such as “Send message”, “Create account”, or “Request quote”. Avoid vague labels such as “Click here”. Keep the control reachable and operable with a keyboard.

### Troubleshooting

#### Clicking Submit does nothing

Confirm that:

* A Button or similar clickable component is inside Submit.
* Submit is inside Form.
* The child Button does not have a Link destination.
* The form is being tested on a published PHP-enabled server.

#### The Button navigates away

Clear the child Button’s Link. Submit supplies the action; the Button does not need its own destination.

### Related Components

* [Form](/elements-docs/using-elements/components/form.md) — Configures validation and delivery.
* [Success](/elements-docs/using-elements/components/form/success.md) — Shows successful-submission content.
* [Error](/elements-docs/using-elements/components/form/error.md) — Shows failure content.

| Common Control                                                                                                     | Description                                                             |
| ------------------------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------- |
| [Link](/elements-docs/using-elements/components/common-controls/link.md)                                           | Link to a page, resource, anchor, email address, or website.            |
| [Layout](/elements-docs/using-elements/components/common-controls/layout.md)                                       | Control positioning, stacking, visibility, overflow, and isolation.     |
| [Sizing](/elements-docs/using-elements/components/common-controls/sizing.md)                                       | Set width, height, and responsive size constraints.                     |
| [Spacing](/elements-docs/using-elements/components/common-controls/spacing.md)                                     | Add responsive margin and padding.                                      |
| [Typography & Text Styles](/elements-docs/using-elements/components/common-controls/typography-and-text-styles.md) | Control fonts, text spacing, decoration, colour, and semantic wrappers. |
| [Backgrounds](/elements-docs/using-elements/components/common-controls/backgrounds.md)                             | Apply colour, image, gradient, SVG, video, and hover backgrounds.       |
| [Transitions](/elements-docs/using-elements/components/common-controls/transitions.md)                             | Choose what animates and set its timing curve, duration, and delay.     |
| [Effects](/elements-docs/using-elements/components/common-controls/effects.md)                                     | Apply shadows, opacity, and hover effects.                              |
| [Filters](/elements-docs/using-elements/components/common-controls/filters.md)                                     | Apply blur, brightness, saturation, shadow, and backdrop effects.       |
| [Transforms](/elements-docs/using-elements/components/common-controls/transforms.md)                               | Scale, rotate, move, and skew components.                               |
| [Borders](/elements-docs/using-elements/components/common-controls/borders.md)                                     | Set border style, colour, opacity, width, radius, and hover states.     |
| [Advanced](/elements-docs/using-elements/components/common-controls/advanced.md)                                   | Add CSS classes and IDs, or change supported HTML tags.                 |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.realmacsoftware.com/elements-docs/using-elements/components/form/submit.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
