# \#multiselect

**URL:** https://discuss.streamlit.io/tag/multiselect/64.md

[Latest](https://discuss.streamlit.io/latest.md) · [Categories](https://discuss.streamlit.io/categories.md) · [Tags](https://discuss.streamlit.io/tags.md)

---

## [New Component: streamlit-listview — a native-feeling list with search, groups, and multi-select](https://discuss.streamlit.io/t/new-component-streamlit-listview-a-native-feeling-list-with-search-groups-and-multi-select/122659)

<div class="topic-metadata">

**Author:** [@leland.grunt](https://discuss.streamlit.io/u/leland.grunt)\
**Replies:** 1\
**Last updated:** [October 14, 2026, 11:52am UTC](https://discuss.streamlit.io/t/new-component-streamlit-listview-a-native-feeling-list-with-search-groups-and-multi-select/122659 "2026-10-14T11:52:36Z")

</div>

Hello Streamlit community, I built a list view component for an internal project because st.selectbox and st.multiselect did not meet my needs. I wanted it to feel like a native Streamlit widget, for users and develope…

---

## [st.column\_config.MultiselectColumn values are not saved when the "data" is empty in data\_editor](https://discuss.streamlit.io/t/st-column-config-multiselectcolumn-values-are-not-saved-when-the-data-is-empty-in-data-editor/119838)

<div class="topic-metadata">

**Author:** [@Hedi1](https://discuss.streamlit.io/u/Hedi1)\
**Replies:** 2\
**Last updated:** [October 25, 2025, 9:00am UTC](https://discuss.streamlit.io/t/st-column-config-multiselectcolumn-values-are-not-saved-when-the-data-is-empty-in-data-editor/119838 "2025-10-25T09:00:10Z")

</div>

Hello, I was trying to use the new st.column\_config.MultiselectColumn component, it works well as used in the demo code. However when you try to use it with with an empty dataframe (only columns names) for the “data’ par…

---

## ['Select all' checkbox should select all options in a form multiselect](https://discuss.streamlit.io/t/select-all-checkbox-should-select-all-options-in-a-form-multiselect/119545)

<div class="topic-metadata">

**Author:** [@jaypinho](https://discuss.streamlit.io/u/jaypinho)\
**Replies:** 1\
**Last updated:** [October 10, 2025, 3:31am UTC](https://discuss.streamlit.io/t/select-all-checkbox-should-select-all-options-in-a-form-multiselect/119545 "2025-10-10T03:31:59Z")

</div>

Streamlit v1.49.0, Python 3.13.5 I have an st.form. Inside of that form is an st.multiselect. I want to add an st.checkbox that appears after the multiselect that, when checked, selects ALL the values in the multiselect…

---

## [Multi-Select in form clears on submit and its selected values not captured after the rerun](https://discuss.streamlit.io/t/multi-select-in-form-clears-on-submit-and-its-selected-values-not-captured-after-the-rerun/119483)

<div class="topic-metadata">

**Author:** [@e\_kelassal](https://discuss.streamlit.io/u/e_kelassal)\
**Replies:** 0\
**Last updated:** [September 16, 2025, 2:56pm UTC](https://discuss.streamlit.io/t/multi-select-in-form-clears-on-submit-and-its-selected-values-not-captured-after-the-rerun/119483 "2025-09-16T14:56:59Z")

</div>

I am having an issue with multiselect within a form. In some cases, after pressing the form submit button the multiselect field gets cleared and the application throws an error that the multiselect is empty although ther…

---

## [New streamlit-select-icons component](https://discuss.streamlit.io/t/new-streamlit-select-icons-component/119107)

<div class="topic-metadata">

**Author:** [@EDT-Andrew](https://discuss.streamlit.io/u/EDT-Andrew)\
**Replies:** 0\
**Last updated:** [August 21, 2025, 2:32pm UTC](https://discuss.streamlit.io/t/new-streamlit-select-icons-component/119107 "2025-08-21T14:32:58Z")

</div>

New highly customisable multi select with image icons, row/column orientations, colour styling, etc.

---

## ['Select All' on a Streamlit Multiselect](https://discuss.streamlit.io/t/select-all-on-a-streamlit-multiselect/9799)

<div class="topic-metadata">

**Author:** [@Venide](https://discuss.streamlit.io/u/Venide)\
**Replies:** 22\
**Last updated:** [July 2, 2025, 8:49pm UTC](https://discuss.streamlit.io/t/select-all-on-a-streamlit-multiselect/9799 "2025-07-02T20:49:05Z")

</div>

Hi all, I’ve been trying to get a “Select All” checkbox to work on a multiselect widget by doing the following: if st.checkbox('Select all'): selected\_options = st.multiselect("Select one or more options:", …

---

## [How do I change the placeholder when multiselect is no option?](https://discuss.streamlit.io/t/how-do-i-change-the-placeholder-when-multiselect-is-no-option/115472)

<div class="topic-metadata">

**Author:** [@nrasif18](https://discuss.streamlit.io/u/nrasif18)\
**Replies:** 0\
**Last updated:** [June 16, 2025, 9:22am UTC](https://discuss.streamlit.io/t/how-do-i-change-the-placeholder-when-multiselect-is-no-option/115472 "2025-06-16T09:22:24Z")

</div>

In my use case, I want users to be able to type freely into st.text\_input(), and when they add a comma (,), it should behave like a multi-select input. I checked the documentation for st.text\_input(), but couldn’t find a…

---

## [Ideas on Handling API Errors When Populating Selectboxes](https://discuss.streamlit.io/t/ideas-on-handling-api-errors-when-populating-selectboxes/115231)

<div class="topic-metadata">

**Author:** [@Ami](https://discuss.streamlit.io/u/Ami)\
**Replies:** 0\
**Last updated:** [June 12, 2025, 7:54pm UTC](https://discuss.streamlit.io/t/ideas-on-handling-api-errors-when-populating-selectboxes/115231 "2025-06-12T19:54:21Z")

</div>

Situation: I have a Streamlit app with a series of 3 dependent selectbox components. When the user selects an option from selectbox\_1, an API request is made to a third-party service using that selection as input. The…

---

## [New Component: Tree Select](https://discuss.streamlit.io/t/new-component-tree-select/36455)

<div class="topic-metadata">

**Author:** [@Tian](https://discuss.streamlit.io/u/Tian)\
**Replies:** 15\
**Last updated:** [April 22, 2025, 2:10am UTC](https://discuss.streamlit.io/t/new-component-tree-select/36455 "2025-04-22T02:10:11Z")

</div>

Hello everyone, I wanted to create my first Streamlit Component and after some trial and error I decided to create a Tree Selector Component. For this I took the TreeSelect Component from Ant Desing and made it usable …

---

## [Super slow multiselect if/else logic with arm64 Apple silicon architecture](https://discuss.streamlit.io/t/super-slow-multiselect-if-else-logic-with-arm64-apple-silicon-architecture/103137)

<div class="topic-metadata">

**Author:** [@kb93](https://discuss.streamlit.io/u/kb93)\
**Replies:** 0\
**Last updated:** [April 2, 2025, 12:19am UTC](https://discuss.streamlit.io/t/super-slow-multiselect-if-else-logic-with-arm64-apple-silicon-architecture/103137 "2025-04-02T00:19:02Z")

</div>

I am running into a strange performance problem when running my Streamlit app locally (it is not yet deployed to a cloud). I believe the root of the problem is due to some difference in how streamlit operates when runnin…

---

## [The 'format\_func' parameter renders differently depending on the widget](https://discuss.streamlit.io/t/the-format-func-parameter-renders-differently-depending-on-the-widget/90513)

<div class="topic-metadata">

**Author:** [@phoenix1790](https://discuss.streamlit.io/u/phoenix1790)\
**Replies:** 3\
**Last updated:** [February 13, 2025, 5:27pm UTC](https://discuss.streamlit.io/t/the-format-func-parameter-renders-differently-depending-on-the-widget/90513 "2025-02-13T17:27:06Z")

</div>

I don’t know whether this is an expected behavior or not, but it seems that the ‘format\_func’ parameter (used to modify the text displayed as an option) behaves differently depending on the widget. More precisely, it su…

---

## [Size limit for multiselect](https://discuss.streamlit.io/t/size-limit-for-multiselect/35880)

<div class="topic-metadata">

**Author:** [@digoplbr](https://discuss.streamlit.io/u/digoplbr)\
**Replies:** 6\
**Last updated:** [February 5, 2025, 10:57am UTC](https://discuss.streamlit.io/t/size-limit-for-multiselect/35880 "2025-02-05T10:57:38Z")

</div>

Hi guys, how are you? I am having an issue to use multiselect as my main filter. Is it possible to limit the number of rows (or height/size)? The widget becames huge with a lot of options.

---

## [Multiselect Not Retaining User Selection](https://discuss.streamlit.io/t/multiselect-not-retaining-user-selection/88794)

<div class="topic-metadata">

**Author:** [@Gihan](https://discuss.streamlit.io/u/Gihan)\
**Replies:** 2\
**Last updated:** [January 4, 2025, 4:29pm UTC](https://discuss.streamlit.io/t/multiselect-not-retaining-user-selection/88794 "2025-01-04T16:29:54Z")

</div>

I am trying to get user input corresponding to 3 cases (given in st.session\_state.steps) and save them in options.pkl. I trying to do this using st.form and st.multiselect. However, what gets saved does not correspond t…

---

## [St.multiselect how to disable "you can only select up to n options. Remove an option first"](https://discuss.streamlit.io/t/st-multiselect-how-to-disable-you-can-only-select-up-to-n-options-remove-an-option-first/87702)

<div class="topic-metadata">

**Author:** [@LarryLoveIV](https://discuss.streamlit.io/u/LarryLoveIV)\
**Replies:** 6\
**Last updated:** [December 16, 2024, 2:44am UTC](https://discuss.streamlit.io/t/st-multiselect-how-to-disable-you-can-only-select-up-to-n-options-remove-an-option-first/87702 "2024-12-16T02:44:17Z")

</div>

Hey was just curious if it is possible to disable this message from popping up? It is very confusing on mobile because it pops up as soon as you’ve reached max selection. I’d prefer to just turn it off completely. He…

---

## [Bug ? with multiselect + rerun](https://discuss.streamlit.io/t/bug-with-multiselect-rerun/83691)

<div class="topic-metadata">

**Author:** [@Sarnath\_K](https://discuss.streamlit.io/u/Sarnath_K)\
**Replies:** 5\
**Last updated:** [December 5, 2024, 12:38pm UTC](https://discuss.streamlit.io/t/bug-with-multiselect-rerun/83691 "2024-12-05T12:38:51Z")

</div>

If you’re creating a debugging post, please include the following info: Are you running your app locally or is it deployed? Locally Share the Streamlit and Python versions. Streamlit 1.39.0 Python 3.9.18 I ha…

---

## [How to make the original dataframe styles remain when an user use input widget for search?](https://discuss.streamlit.io/t/how-to-make-the-original-dataframe-styles-remain-when-an-user-use-input-widget-for-search/85697)

<div class="topic-metadata">

**Author:** [@Ivan2](https://discuss.streamlit.io/u/Ivan2)\
**Replies:** 1\
**Last updated:** [November 15, 2024, 1:55am UTC](https://discuss.streamlit.io/t/how-to-make-the-original-dataframe-styles-remain-when-an-user-use-input-widget-for-search/85697 "2024-11-15T01:55:08Z")

</div>

I got this original table with the styles. The colors of each cell is the position of the value in a percentile scale from percentile 1 (blue) to percentile 100 (red) For example, the first row (Cristhian Adames) is…

---

## [How to change the multiselect default tag color?](https://discuss.streamlit.io/t/how-to-change-the-multiselect-default-tag-color/17157)

<div class="topic-metadata">

**Author:** [@woden](https://discuss.streamlit.io/u/woden)\
**Replies:** 6\
**Last updated:** [October 23, 2024, 2:30am UTC](https://discuss.streamlit.io/t/how-to-change-the-multiselect-default-tag-color/17157 "2024-10-23T02:30:22Z")

</div>

Hi, I’ve played around the streamlit for a while. I’ve found that using this code, I could change the properties. /\* change the select box properties \*/ div\[data-baseweb="select"\]\>div { background-color:#fff; borde…

---

## [Format\_func (function) - Examples Please](https://discuss.streamlit.io/t/format-func-function-examples-please/11295)

<div class="topic-metadata">

**Author:** [@madras](https://discuss.streamlit.io/u/madras)\
**Replies:** 8\
**Last updated:** [October 2, 2024, 5:01am UTC](https://discuss.streamlit.io/t/format-func-function-examples-please/11295 "2024-10-02T05:01:45Z")

</div>

Can someone please help with an example for format\_func ( function ) that is referenced in the API document for selectbox, radiobutton, multiselect etc and how to use it? Would be nice if the API doc included an example…

---

## [Streamlit multiselect reselecting items](https://discuss.streamlit.io/t/streamlit-multiselect-reselecting-items/82336)

<div class="topic-metadata">

**Author:** [@DIEGO5](https://discuss.streamlit.io/u/DIEGO5)\
**Replies:** 1\
**Last updated:** [September 29, 2024, 4:38am UTC](https://discuss.streamlit.io/t/streamlit-multiselect-reselecting-items/82336 "2024-09-29T04:38:46Z")

</div>

good day. The problem occurs in a local Streamlit application that allows users to select documents for analysis. The main issue is that when a user deselects a document, it gets reselected automatically. This unexpecte…

---

## [Multiselect needs double click to clear (query params)](https://discuss.streamlit.io/t/multiselect-needs-double-click-to-clear-query-params/81148)

<div class="topic-metadata">

**Author:** [@Mikkel1](https://discuss.streamlit.io/u/Mikkel1)\
**Replies:** 2\
**Last updated:** [September 13, 2024, 10:58am UTC](https://discuss.streamlit.io/t/multiselect-needs-double-click-to-clear-query-params/81148 "2024-09-13T10:58:52Z")

</div>

I am experiencing extremely odd behavior with st.query\_params and multiselect. A user can be redirected to the page with an option already set for the multiselect. However, I also want the app the actively set the query…

---

## [Multiselect to affect other multiselect bidirectional](https://discuss.streamlit.io/t/multiselect-to-affect-other-multiselect-bidirectional/79372)

<div class="topic-metadata">

**Author:** [@Divyashree](https://discuss.streamlit.io/u/Divyashree)\
**Replies:** 0\
**Last updated:** [August 22, 2024, 5:06pm UTC](https://discuss.streamlit.io/t/multiselect-to-affect-other-multiselect-bidirectional/79372 "2024-08-22T17:06:21Z")

</div>

Hi I trying to create a bidirectional multiselect eg: I have include cities and exclude cities dropdown I need to update the list of include and exclude cities based on the selection. I’m using session state to achieve …

---

## [Search and select filtered results with check box in one click(select all filtered)](https://discuss.streamlit.io/t/search-and-select-filtered-results-with-check-box-in-one-click-select-all-filtered/79334)

<div class="topic-metadata">

**Author:** [@neesha.s](https://discuss.streamlit.io/u/neesha.s)\
**Replies:** 0\
**Last updated:** [August 22, 2024, 5:47am UTC](https://discuss.streamlit.io/t/search-and-select-filtered-results-with-check-box-in-one-click-select-all-filtered/79334 "2024-08-22T05:47:06Z")

</div>

Hello Team, Has anyone implemented something similar in Streamlit? Any suggestions or best practices to achieve this would be greatly appreciated! I am looking for the multiselect option based on search and the result …

---

## [Prevent truncation (w/ ellipsis) of selected values in multiselect input field](https://discuss.streamlit.io/t/prevent-truncation-w-ellipsis-of-selected-values-in-multiselect-input-field/75209)

<div class="topic-metadata">

**Author:** [@Noam1](https://discuss.streamlit.io/u/Noam1)\
**Replies:** 0\
**Last updated:** [July 18, 2024, 7:55pm UTC](https://discuss.streamlit.io/t/prevent-truncation-w-ellipsis-of-selected-values-in-multiselect-input-field/75209 "2024-07-18T19:55:07Z")

</div>

The Issue When you select options in a multiselect input field (st.multiselect), streamlit truncates the text if the text is longer than some character threshold. Example: When selected, the option “Some really long str…

---

## [Facing problem while trying to load my ml model in streamlit](https://discuss.streamlit.io/t/facing-problem-while-trying-to-load-my-ml-model-in-streamlit/73133)

<div class="topic-metadata">

**Author:** [@Meban27](https://discuss.streamlit.io/u/Meban27)\
**Replies:** 1\
**Last updated:** [June 23, 2024, 12:20pm UTC](https://discuss.streamlit.io/t/facing-problem-while-trying-to-load-my-ml-model-in-streamlit/73133 "2024-06-23T12:20:19Z")

</div>

Can anyone please help me fixing this issue

---

## [Linking a column to a sub page in multi page app](https://discuss.streamlit.io/t/linking-a-column-to-a-sub-page-in-multi-page-app/72995)

<div class="topic-metadata">

**Author:** [@ceeva](https://discuss.streamlit.io/u/ceeva)\
**Replies:** 2\
**Last updated:** [June 21, 2024, 2:16pm UTC](https://discuss.streamlit.io/t/linking-a-column-to-a-sub-page-in-multi-page-app/72995 "2024-06-21T14:16:10Z")

</div>

Hi All, I am trying to create a multi page app in which: Main page shows 2 summaries: summary 1 has category and average price when selected a category from summary 1, summary 2 shows a more detailed table - with all …

---

## [Different colours for multiselect options](https://discuss.streamlit.io/t/different-colours-for-multiselect-options/64727)

<div class="topic-metadata">

**Author:** [@hienanhtran](https://discuss.streamlit.io/u/hienanhtran)\
**Replies:** 6\
**Last updated:** [June 11, 2024, 1:50pm UTC](https://discuss.streamlit.io/t/different-colours-for-multiselect-options/64727 "2024-06-11T13:50:05Z")

</div>

Hi everyone, I’m trying to set my multiselect options with different colours (ex: option 1 - red, option 2 - blue, option 3-white, etc ). Does any one have any idea on how to do it? Many thanks!

---

## [Dynamically updating the displayed selections in a multiselect](https://discuss.streamlit.io/t/dynamically-updating-the-displayed-selections-in-a-multiselect/66239)

<div class="topic-metadata">

**Author:** [@deppen8](https://discuss.streamlit.io/u/deppen8)\
**Replies:** 0\
**Last updated:** [April 4, 2024, 3:08am UTC](https://discuss.streamlit.io/t/dynamically-updating-the-displayed-selections-in-a-multiselect/66239 "2024-04-04T03:08:47Z")

</div>

TLDR; How can I update what is shown as “selected” in the multiselect widget? (I am not trying to update options.) I have a multiselect widget that allows the user to select US counties from the list. They are then show…

---

## [Hide the "Running PythonClass.query\_method..." spinner text](https://discuss.streamlit.io/t/hide-the-running-pythonclass-query-method-spinner-text/63385)

<div class="topic-metadata">

**Author:** [@Kladar](https://discuss.streamlit.io/u/Kladar)\
**Replies:** 5\
**Last updated:** [February 28, 2024, 6:11pm UTC](https://discuss.streamlit.io/t/hide-the-running-pythonclass-query-method-spinner-text/63385 "2024-02-28T18:11:08Z")

</div>

Running streamlit apps both in the cloud and locally, and for many input multiselects and dropdowns, I run a query to populate a list of options. However, I get the actual code method displaying while that is happening. …

---

## [Multi select search results](https://discuss.streamlit.io/t/multi-select-search-results/61905)

<div class="topic-metadata">

**Author:** [@Oliver\_Rock](https://discuss.streamlit.io/u/Oliver_Rock)\
**Replies:** 1\
**Last updated:** [February 9, 2024, 7:38pm UTC](https://discuss.streamlit.io/t/multi-select-search-results/61905 "2024-02-09T19:38:26Z")

</div>

When search for items in a multi-select, it returns lots of items which are only vaguely related. It seems that the first results are exact match but the later results only have the same characters in the same order. Thi…

---

## [Multiselect and Download button reload the page](https://discuss.streamlit.io/t/multiselect-and-download-button-reload-the-page/61585)

<div class="topic-metadata">

**Author:** [@zizax2102](https://discuss.streamlit.io/u/zizax2102)\
**Replies:** 1\
**Last updated:** [February 5, 2024, 2:13pm UTC](https://discuss.streamlit.io/t/multiselect-and-download-button-reload-the-page/61585 "2024-02-05T14:13:09Z")

</div>

Hi, I have developed a Streamlit application (locally) featuring 5 multiselect widgets (Families, Sub-Families, Products, Regions, & Bakeries), two date inputs (Start Date and End Date), and a slider for selecting times…

[Next page](https://discuss.streamlit.io/tag/multiselect/64.md?match_all_tags=true&page=1&tags%5B%5D=multiselect)
