# How to show all the values for facet for Select input

**URL:** <https://discuss.elastic.co/t/how-to-show-all-the-values-for-facet-for-select-input/289122>\
**Category:** Elastic Search\
**Tags:** elastic-app-search\
**Created:** [November 13, 2021, 8:17pm UTC](https://discuss.elastic.co/t/how-to-show-all-the-values-for-facet-for-select-input/289122 "2021-11-13T20:17:59Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mecadamia.nut](https://avatars.discourse-cdn.com/v4/letter/m/e79b87/32.png) [@Mecadamia.nut](https://discuss.elastic.co/u/Mecadamia.nut)\
**Post date:** [November 13, 2021, 8:17pm UTC](https://discuss.elastic.co/t/how-to-show-all-the-values-for-facet-for-select-input/289122/1 "2021-11-13T20:17:59Z")

</div>

I'm using SingleSelectFacet for select input and it shows only 5 values in the dropdown. if i need to show all the values in the Select Input what props should i pass to the SingSelectFacet. if i use the custom component, what is the way to get all the values in the facet without user having to click on More or something like that to see the complete set of facet values.

---

<div class="post-metadata">

**Author:** ![Mecadamia.nut](https://avatars.discourse-cdn.com/v4/letter/m/e79b87/32.png) [@Mecadamia.nut](https://discuss.elastic.co/u/Mecadamia.nut)\
**Post date:** [November 14, 2021, 12:09pm UTC](https://discuss.elastic.co/t/how-to-show-all-the-values-for-facet-for-select-input/289122/2 "2021-11-14T12:09:11Z")

</div>

Didn't find any outofbox solution, but had to override the SingleSelectFacet component and check for 'showMore' and then invoke 'onMoreClick' to get all the values of the 'options'.

```auto
function CustomSelectFacet({ className, label, onChange, options,onMoreClick,showMore }) {
  let selectedSelectBoxOption;
  let isSelectedSelectBoxOptionSet = false;
  if(showMore)
  onMoreClick();

```

---

<div class="post-metadata">

**Author:** ![JasonStoltz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jasonstoltz/32/49893_2.png) [@JasonStoltz](https://discuss.elastic.co/u/JasonStoltz)\
**Post date:** [November 15, 2021, 8:08pm UTC](https://discuss.elastic.co/t/how-to-show-all-the-values-for-facet-for-select-input/289122/3 "2021-11-15T20:08:08Z")

</div>

The `Facet` component has a `show` prop that accepts a number, did you try using that?

---

<div class="post-metadata">

**Author:** ![Mecadamia.nut](https://avatars.discourse-cdn.com/v4/letter/m/e79b87/32.png) [@Mecadamia.nut](https://discuss.elastic.co/u/Mecadamia.nut)\
**Post date:** [November 17, 2021, 9:02pm UTC](https://discuss.elastic.co/t/how-to-show-all-the-values-for-facet-for-select-input/289122/4 "2021-11-17T21:02:28Z")

</div>

This worked. Thank you

---

<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:** [December 15, 2021, 9:03pm UTC](https://discuss.elastic.co/t/how-to-show-all-the-values-for-facet-for-select-input/289122/5 "2021-12-15T21:03:13Z")

</div>

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