# Kibana saved search object embed autofocus issue

**URL:** <https://discuss.elastic.co/t/kibana-saved-search-object-embed-autofocus-issue/72916>\
**Category:** Kibana\
**Created:** [January 26, 2017, 3:28pm UTC](https://discuss.elastic.co/t/kibana-saved-search-object-embed-autofocus-issue/72916 "2017-01-26T15:28:15Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![cameshgh](https://avatars.discourse-cdn.com/v4/letter/c/cc9497/32.png) [@cameshgh](https://discuss.elastic.co/u/cameshgh)\
**Post date:** [January 26, 2017, 3:28pm UTC](https://discuss.elastic.co/t/kibana-saved-search-object-embed-autofocus-issue/72916/1 "2017-01-26T15:28:15Z")

</div>

I'm trying to embed a saved search and resulting report in an external site, which is simple enough. The problem is that the query field is set to autofocus, so my webpage automatically scrolls down to the text field for the query, which is more than halfway down the page and wholly undesired. Does anyone know of a way to get around this or supersede this function?

---

<div class="post-metadata">

**Author:** ![shaunak](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shaunak/32/6643_2.png) [@shaunak](https://discuss.elastic.co/u/shaunak)\
**Post date:** [January 26, 2017, 4:22pm UTC](https://discuss.elastic.co/t/kibana-saved-search-object-embed-autofocus-issue/72916/2 "2017-01-26T16:22:12Z")

</div>

Hi Cameron,

Can you check if there is an `embed=true` query string parameter in the URL you are using in the embed code?

Thanks,

Shaunak

---

<div class="post-metadata">

**Author:** ![cameshgh](https://avatars.discourse-cdn.com/v4/letter/c/cc9497/32.png) [@cameshgh](https://discuss.elastic.co/u/cameshgh)\
**Post date:** [January 26, 2017, 5:16pm UTC](https://discuss.elastic.co/t/kibana-saved-search-object-embed-autofocus-issue/72916/3 "2017-01-26T17:16:39Z")

</div>

> [@shaunak](#):
>
> Can you check if there is an embed=true query string parameter in the URL you are using in the embed code?

Yes, I have the embed parameter included in the URL. And I've tried both the share saved search and share snapshot links with the embed parameter, to no avail.

---

<div class="post-metadata">

**Author:** ![shaunak](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shaunak/32/6643_2.png) [@shaunak](https://discuss.elastic.co/u/shaunak)\
**Post date:** [January 26, 2017, 5:21pm UTC](https://discuss.elastic.co/t/kibana-saved-search-object-embed-autofocus-issue/72916/4 "2017-01-26T17:21:21Z")

</div>

Okay, something doesn't seem right then. With `embed=true` in the query string you should not be seeing the text field for the query at all. Would you mind pasting the complete URL you are using in your embed code here? And also a screenshot of what the embedded Kibana looks like? Also, what version of Kibana are you using?

---

<div class="post-metadata">

**Author:** ![cameshgh](https://avatars.discourse-cdn.com/v4/letter/c/cc9497/32.png) [@cameshgh](https://discuss.elastic.co/u/cameshgh)\
**Post date:** [January 26, 2017, 6:09pm UTC](https://discuss.elastic.co/t/kibana-saved-search-object-embed-autofocus-issue/72916/5 "2017-01-26T18:09:27Z")

</div>

http://[ipAddress]:5601/app/kibana#/discover/Inventory-Bag-Report?embed=true&\_g=(refreshInterval:(display:Off,pause:!f,value:0),time:(from:now-13y,mode:quick,to:now))&\_a=(columns:!(project,bag\_id,bag\_url,bag\_status,bag\_received\_date,bag\_qr\_date,bag\_accepted\_date,bag\_rejected\_date,bit.Bag-Size,bit.External-Identifier,file\_count,byte\_count),filters:!(('$$hashKey':'object:3663','$state':(store:appState),meta:(alias:!n,disabled:!f,index:bag\_instance,key:is\_dedupe\_bag\_instance,negate:!f,value:true),query:(match:(is\_dedupe\_bag\_instance:(query:!t,type:phrase))))),index:bag\_instance,interval:auto,query:(query\_string:(analyze\_wildcard:!t,query:'\*')),sort:!(bag\_received\_date,desc))

http://[ipAddress]:5601/app/kibana#/discover/Inventory-Bag-Report?embed=true&\_g=(refreshInterval%3A(display%3AOff%2Cpause%3A!f%2Cvalue%3A0)%2Ctime%3A(from%3Anow-13y%2Cmode%3Aquick%2Cto%3Anow))

I'm running 5.0.2 locally

 ![](https://us1.discourse-cdn.com/elastic/original/2X/c/ccbbe100b9fa5522f4cc889866b9c363cc85cf9c.png)

---

<div class="post-metadata">

**Author:** ![cameshgh](https://avatars.discourse-cdn.com/v4/letter/c/cc9497/32.png) [@cameshgh](https://discuss.elastic.co/u/cameshgh)\
**Post date:** [January 30, 2017, 6:00pm UTC](https://discuss.elastic.co/t/kibana-saved-search-object-embed-autofocus-issue/72916/6 "2017-01-30T18:00:56Z")

</div>

Don't mean to be a bother, but do you have an idea as to what I'm doing wrong? Would any more information be helpful?

Thanks!

---

<div class="post-metadata">

**Author:** ![shaunak](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shaunak/32/6643_2.png) [@shaunak](https://discuss.elastic.co/u/shaunak)\
**Post date:** [February 1, 2017, 2:00pm UTC](https://discuss.elastic.co/t/kibana-saved-search-object-embed-autofocus-issue/72916/7 "2017-02-01T14:00:26Z")

</div>

Hi @cameshgh,

I just tried to reproduce this with 5.0.2 and was able to see the query field as well. However, when I tried to reproduce it with the latest version of Kibana, I was not able to see the query field.

At this point I suspect this was a bug in 5.0.2 that was fixed in a later version. So I'd suggest upgrading your Elastic stack to the latest version to get rid of this issue.

Shaunak

---

<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:** [March 1, 2017, 2:00pm UTC](https://discuss.elastic.co/t/kibana-saved-search-object-embed-autofocus-issue/72916/8 "2017-03-01T14:00:26Z")

</div>

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