# Use Submit Button Outside of the Form

## Environment

<table>
    <tbody>
	    <tr>
	    	<td>Product Version</td>
	    	<td>10.0.0</td>
	    </tr>
	    <tr>
	    	<td>Product</td>
	    	<td>Progress® KendoReact Form</td>
	    </tr>
    </tbody>
</table>

## Description

I want to customize the position of the Submit button and place it outside of the Form. How can I use a Submit button outside of the Form component?

This knowledge base article also answers the following questions:

* How can I show the Submit button in a Dialog?
* How can I show the Submit button in a Window?
* How can I submit a form from a button that's not part of the Form?
* How can I move the submit form functionality outside of the Form?
* How can I use an external Submit button?

## Solution

To handle the form submission outside of the Form component:

1. Set the `ref` of the Form component.
2. Use the `formRef.current.onSubmit()` event inside the `onClick` event handler of the button.

This is an example showcasing how to use an external submit Form button:

[Demo Source](https://demos.telerik.com/kendo-react-ui/knowledge-base/form/submit-btn/basic/source.txt)

This is an example showcasing how to use an external submit Form button inside a Dialog or Window component:

[Demo Source](https://demos.telerik.com/kendo-react-ui/knowledge-base/form/submit-btn/inside-dialog/source.txt)

## See Also

* [KendoReact Form Documentation](https://www.telerik.com/kendo-react-ui/components/form/)
* [API Reference of the Form](https://www.telerik.com/kendo-react-ui/components/form/api/formprops/)
* [KendoReact Button Documentation](https://www.telerik.com/kendo-react-ui/components/buttons/)
* [API Reference of the Button](https://www.telerik.com/kendo-react-ui/components/buttons/api/buttonprops/)
