Reset multiselect to default values using a checkbox


I had a multiselect menu with some default values. After I interact with it (by selecting other options from the menu) I wanted to have a reset button that can return multiselect menu to its default options.

Any ideas?


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:

1 Like

Great! Thanks for your help. That solved my issue.