# Use submit button without surrounding form

**URL:** https://community.swiftype.com/t/use-submit-button-without-surrounding-form/502
**Category:** General
**Created:** [November 20, 2017, 2:29pm UTC](https://community.swiftype.com/t/use-submit-button-without-surrounding-form/502 "2017-11-20T14:29:08Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![j.vanblokland](https://avatars.discourse-cdn.com/v4/letter/j/c57346/32.png) [@j.vanblokland](https://community.swiftype.com/u/j.vanblokland)
#### Post date: [February 6, 2018, 3:33pm UTC](https://community.swiftype.com/t/use-submit-button-without-surrounding-form/502/5 "2018-02-06T15:33:48Z")

</div>

> This post seems to be related: [Using the JavaScript embed with ASP.net Forms](https://community.swiftype.com/t/using-the-javascript-embed-with-asp-net-forms/553)

The post shows that the default behavior of [asp.NET](http://asp.NET) is prevented out of the box by Swiftype.

However, the question still remains. Since the documentation of Swiftype shows that you need to add a form element around the input and button in order to make it work, as you can read here: [Customizing Swiftype Visual Styles | Swiftype Documentation](https://swiftype.com/documentation/site-search/tutorials/custom_styles#submit)

But since Sharepoint adds one big form around the entire document, then that limits your option if you’d for instance there is a action assigned tot the asp form (always by default) want two Swiftype engines on the same page.

The article states that:

> ADDING A SUBMIT BUTTON TO YOUR SEARCH BOX  
> Who doesn’t like buttons? To add a submit button to your search input, you can wrap the input code in a form container element and add a button element. All styling of the submit button is up to you! You can find an example below.

```auto
<form>
  <input type="text" class="st-default-search-input">
  <button type="submit">Submit</button>
</form>
```

---

_[View the full topic](https://community.swiftype.com/t/use-submit-button-without-surrounding-form/502)._
