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 | 0 | 786 | April 9, 2021 | |
| How to dynamically deselect "Default option" in multiselect when other options are selected | 0 | 1292 | July 24, 2020 | |
| Multiselect default value | 2 | 1438 | February 16, 2022 | |
| Load different multiselect default values | 3 | 1484 | October 17, 2023 | |
| First use selectbox then multiselect data | 1 | 791 | February 15, 2022 |