# HELP PLEASE! Multiple Search Fields on Page causing one search not to work

**URL:** <https://discuss.elastic.co/t/help-please-multiple-search-fields-on-page-causing-one-search-not-to-work/192320>\
**Category:** Elasticsearch\
**Created:** [July 25, 2019, 8:49pm UTC](https://discuss.elastic.co/t/help-please-multiple-search-fields-on-page-causing-one-search-not-to-work/192320 "2019-07-25T20:49:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gbucha](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gbucha/32/50967_2.png) [@gbucha](https://discuss.elastic.co/u/gbucha)\
**Post date:** [July 25, 2019, 8:49pm UTC](https://discuss.elastic.co/t/help-please-multiple-search-fields-on-page-causing-one-search-not-to-work/192320/1 "2019-07-25T20:49:05Z")

</div>

I have two search inputs on my page, one on the page and one that is available when you click a search icon in the top nav, it brings a popup box in focus with a search input.

I updated my Results Container to go to this page: [http://willadent.wpengine.com/search-results/](http://willadent.wpengine.com/search-results/)

If you look at the search box in the middle of this page: [http://willadent.wpengine.com/](http://willadent.wpengine.com/) and search for “dental” it works fine. No problem there.

I am using this code.

If you click the magnifying glass in the top nav it brings up a full screen box with a search field using the identical search input code with the exception of the ID.

If you search for “dental” in this box it does not go to the [http://willadent.wpengine.com/search-results/](http://willadent.wpengine.com/search-results/) page, instead it goes to the same page: [http://willadent.wpengine.com/?search=dental](http://willadent.wpengine.com/?search=dental) so I never get to the search results.

How can I get this to work?

---

<div class="post-metadata">

**Author:** ![Mark\_Harwood](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mark_harwood/32/10538_2.png) [@Mark\_Harwood](https://discuss.elastic.co/u/Mark_Harwood)\
**Post date:** [July 26, 2019, 9:18am UTC](https://discuss.elastic.co/t/help-please-multiple-search-fields-on-page-causing-one-search-not-to-work/192320/2 "2019-07-26T09:18:38Z")

</div>

Hi Greg,  
I suspect you're going to have to supply examples of raw JSON in requests to elasticsearch before you can get help. This won't be the place to debug any UI code.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [August 23, 2019, 9:18am UTC](https://discuss.elastic.co/t/help-please-multiple-search-fields-on-page-causing-one-search-not-to-work/192320/3 "2019-08-23T09:18:39Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
