# Change dropdown contents according to time picker

**URL:** <https://discuss.elastic.co/t/change-dropdown-contents-according-to-time-picker/126701>\
**Category:** Kibana\
**Created:** [April 4, 2018, 9:05am UTC](https://discuss.elastic.co/t/change-dropdown-contents-according-to-time-picker/126701 "2018-04-04T09:05:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![meetdave2611997](https://avatars.discourse-cdn.com/v4/letter/m/f07891/32.png) [@meetdave2611997](https://discuss.elastic.co/u/meetdave2611997)\
**Post date:** [April 4, 2018, 9:05am UTC](https://discuss.elastic.co/t/change-dropdown-contents-according-to-time-picker/126701/1 "2018-04-04T09:05:57Z")

</div>

I want to have a dropdown on dashboard which lists out all available product according to time range picker. when i change time range, changes should be made accordingly in dropdown values.

For example: There are total 4 products in last four days. When i change time to last 2 days. it should display all product which are in only last 2 days

---

<div class="post-metadata">

**Author:** ![rashmi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rashmi/32/16391_2.png) [@rashmi](https://discuss.elastic.co/u/rashmi)\
**Post date:** [April 4, 2018, 3:44pm UTC](https://discuss.elastic.co/t/change-dropdown-contents-according-to-time-picker/126701/2 "2018-04-04T15:44:59Z")

</div>

Your best bet would be to use input controls. You can now create input control visualization components which when placed on a Dashboard allow users to select particular values from a terms aggregation from a multi-select drop down control or select a range from a min/max aggregation using a range slider control. This will make it easy to guide users to important filtering values for the dashboard and make it simple for them to apply filters and explore the information on the dashboard. More discussion and the relevant PR here : [https://github.com/elastic/kibana/pull/13314](https://github.com/elastic/kibana/pull/13314)

Hope this helps,

Cheers  
Rashmi

---

<div class="post-metadata">

**Author:** ![meetdave2611997](https://avatars.discourse-cdn.com/v4/letter/m/f07891/32.png) [@meetdave2611997](https://discuss.elastic.co/u/meetdave2611997)\
**Post date:** [April 10, 2018, 8:24pm UTC](https://discuss.elastic.co/t/change-dropdown-contents-according-to-time-picker/126701/3 "2018-04-10T20:24:06Z")

</div>

Yeah thanks I was using older version of kibana

---

<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:** [May 8, 2018, 8:24pm UTC](https://discuss.elastic.co/t/change-dropdown-contents-according-to-time-picker/126701/4 "2018-05-08T20:24:07Z")

</div>

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