# Pre-Filter Dashboard "Add Panels"?

**URL:** <https://discuss.elastic.co/t/pre-filter-dashboard-add-panels/191447>\
**Category:** Kibana\
**Created:** [July 19, 2019, 7:32pm UTC](https://discuss.elastic.co/t/pre-filter-dashboard-add-panels/191447 "2019-07-19T19:32:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kenneth\_M\_Kolano](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kenneth_m_kolano/32/38752_2.png) [@Kenneth\_M\_Kolano](https://discuss.elastic.co/u/Kenneth_M_Kolano)\
**Post date:** [July 19, 2019, 7:32pm UTC](https://discuss.elastic.co/t/pre-filter-dashboard-add-panels/191447/1 "2019-07-19T19:32:21Z")

</div>

I'd like to be able to pre-filter the listing of the "Add Panels" sidebar in one of my dashboards. I'm trying to do so by using a MutationObserver to inject in some JavaScript to the pane when the dialog is added to the page...

```
$('input[data-test-subj="savedObjectFinderSearchInput"]').val("Alert")
$('input[data-test-subj="savedObjectFinderSearchInput"]').keyup();
$('input[data-test-subj="savedObjectFinderSearchInput"]').change();

```

That works to set the input's value, but doesn't actually filter the panel. The same code can be used on the console /w the "Add Panels" sidebar shown. It seems as though neither the change nor keyup events trigger the search filter, but I'm unclear why; or how to actual trigger it.

---

<div class="post-metadata">

**Author:** ![bhavyarm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bhavyarm/32/22392_2.png) [@bhavyarm](https://discuss.elastic.co/u/bhavyarm)\
**Post date:** [July 22, 2019, 2:59pm UTC](https://discuss.elastic.co/t/pre-filter-dashboard-add-panels/191447/2 "2019-07-22T14:59:46Z")

</div>

@timroes can we please get some help here?

Thanks,  
Bhavya

---

<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 19, 2019, 2:59pm UTC](https://discuss.elastic.co/t/pre-filter-dashboard-add-panels/191447/3 "2019-08-19T14:59:51Z")

</div>

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