# Multiple Swiftype search boxes - different behaviour

**URL:** https://community.swiftype.com/t/multiple-swiftype-search-boxes-different-behaviour/429
**Category:** General
**Created:** [August 21, 2017, 1:21am UTC](https://community.swiftype.com/t/multiple-swiftype-search-boxes-different-behaviour/429 "2017-08-21T01:21:04Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![anton.setiadi](https://avatars.discourse-cdn.com/v4/letter/a/e19b73/32.png) [@anton.setiadi](https://community.swiftype.com/u/anton.setiadi)
#### Post date: [August 21, 2017, 1:21am UTC](https://community.swiftype.com/t/multiple-swiftype-search-boxes-different-behaviour/429/1 "2017-08-21T01:21:04Z")

</div>

Is it possible to have 2 search inputs on a single page where one have autocomplete enabled and the other doesn’t?

Ideally without having to write my own customisation 😃

---

<div class="post-metadata">

### Author: ![roxanna.mcdade](https://avatars.discourse-cdn.com/v4/letter/r/838e76/32.png) [@roxanna.mcdade](https://community.swiftype.com/u/roxanna.mcdade)
#### Post date: [August 21, 2017, 2:53pm UTC](https://community.swiftype.com/t/multiple-swiftype-search-boxes-different-behaviour/429/2 "2017-08-21T14:53:08Z")

</div>

I would like to know the answer to this question, as well.

---

<div class="post-metadata">

### Author: ![chad.johnson](https://avatars.discourse-cdn.com/v4/letter/c/848f3c/32.png) [@chad.johnson](https://community.swiftype.com/u/chad.johnson)
#### Post date: [August 23, 2017, 7:20pm UTC](https://community.swiftype.com/t/multiple-swiftype-search-boxes-different-behaviour/429/3 "2017-08-23T19:20:32Z")

</div>

Using the Swiftype Jquery implementation, this is very easy - you can enable autocomplete selectively on each search box field. The Jquery API is only a few lines of code more than the embedable code they provide on the website and markedly more flexible in what you can do with it.

---

<div class="post-metadata">

### Author: ![pmohanty](https://avatars.discourse-cdn.com/v4/letter/p/e9bcb4/32.png) [@pmohanty](https://community.swiftype.com/u/pmohanty)
#### Post date: [October 27, 2017, 5:22pm UTC](https://community.swiftype.com/t/multiple-swiftype-search-boxes-different-behaviour/429/4 "2017-10-27T17:22:37Z")

</div>

Chad we have two search engines (one at the site level, the other at the directory level, say /abc/) configured mapping to search field etc. The site level search field is at the header whereas the directory level search field is in the body. Both site level and directory level search will need to work for the pages under /abc/. How can this be implemented?

---

<div class="post-metadata">

### Author: ![chad.johnson](https://avatars.discourse-cdn.com/v4/letter/c/848f3c/32.png) [@chad.johnson](https://community.swiftype.com/u/chad.johnson)
#### Post date: [October 27, 2017, 5:44pm UTC](https://community.swiftype.com/t/multiple-swiftype-search-boxes-different-behaviour/429/5 "2017-10-27T17:44:36Z")

</div>

It’s basically the same answer. Using the Jquery API from Swiftype you can add two search boxes to the same page. Each one has an Engine ID - so you can point one to one engine and the other to the other engine.

---

<div class="post-metadata">

### Author: ![pmohanty](https://avatars.discourse-cdn.com/v4/letter/p/e9bcb4/32.png) [@pmohanty](https://community.swiftype.com/u/pmohanty)
#### Post date: [October 27, 2017, 6:02pm UTC](https://community.swiftype.com/t/multiple-swiftype-search-boxes-different-behaviour/429/6 "2017-10-27T18:02:06Z")

</div>

Chad, the ‘install search’ script has been included, for both the searches, in the pages at the directory level, still only one search works. The \_st(‘install’,,‘2.0.0’); has been included in all pages and the pages with two search fields this has been added twice.  
In addition I would like to mention that we would like to carry out the configuration using swiftype admin tool and avoid any programmatic approach.

---

<div class="post-metadata">

### Author: ![kirk](https://sea1.discourse-cdn.com/flex019/user_avatar/community.swiftype.com/kirk/32/49_2.png) [@kirk](https://community.swiftype.com/u/kirk)
#### Post date: [November 24, 2017, 9:31pm UTC](https://community.swiftype.com/t/multiple-swiftype-search-boxes-different-behaviour/429/7 "2017-11-24T21:31:26Z")

</div>

@chad.johnson I have successfully implemented this (two searches on one page, connected to different engines) but the issue I am having is that results from one search are showing up in the second search results box elsewhere on the page. I believe its because of the code that get appended to the url e.g. “#stq=test&stp=1”.

Is there any known solution for this issue?

---

<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: [April 9, 2018, 9:17am UTC](https://community.swiftype.com/t/multiple-swiftype-search-boxes-different-behaviour/429/8 "2018-04-09T09:17:10Z")

</div>

Also running into this problem.

What’s striking is that the ajax response of the search results _is_ available. It seems that it just isn’t appended to the page.

---

<div class="post-metadata">

### Author: ![ken](https://sea1.discourse-cdn.com/flex019/user_avatar/community.swiftype.com/ken/32/153_2.png) [@ken](https://community.swiftype.com/u/ken)
#### Post date: [May 29, 2018, 4:30pm UTC](https://community.swiftype.com/t/multiple-swiftype-search-boxes-different-behaviour/429/9 "2018-05-29T16:30:47Z")

</div>

From what I can tell as a user, the fact that `“#stq=test&stp=1”` and `_st(‘install’,,‘2.0.0’);` appear in the discussion means that you are trying to use the default “customizable widget” AND the jQuery one together.

I too would like to know if it is possible, but it certainly seems like they are not compatible.

It’s a shame, because I like the styling and the automatic modal functionality of the customizable widget (the `“#stq=test&stp=1”`), but I need to run 2 searches, one with a filter.

Also, I’ve no idea how to filter results using the customizable widget, using the “updated” code version (the one with the `_st(‘install’,,‘2.0.0’);`.
