Switch tabs programitically?

Hello everyone, I have an app with multiple tabs. Based on a User clicking a button I would like to switch to another tab. I cant seem to get this to work, at all.

Even using the unsafe html code below dosent work:

                st.markdown(''' <a target="_self" href="#input">
                    <button>
                       Re enter Input
                    </button>
                </a>''', unsafe_allow_html=True)

Any Hints?

PS ALSO at any input/App reload the App always goes back to tab1, Is there any way to stop this behavior???

1 Like

Hey @Free-Radical,

Does the streamlit-folium component play into this? I noticed this is posted into the streamlit-folium section of the forum

oh no, sorry, wrong place. Re-editing.