I did the same thing with several st.sidebar.multiselect, guess you can try this out by using session state: an example here is Reseting the app via a button (if you are using latest versio of streamlit, please use this gist: https://gist.github.com/tvst/036da038ab3e999a64497f42de966a92)
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Restore default multiselect option upon button click | 1 | 780 | May 13, 2022 | |
| How to dynamically deselect "Default option" in multiselect when other options are selected | 1 | 1287 | January 12, 2022 | |
| Multiselect default value | 3 | 1436 | February 16, 2023 | |
| Load different multiselect default values | 4 | 1470 | April 14, 2024 | |
| First use selectbox then multiselect data | 2 | 787 | February 15, 2023 |