Running local as well as deployed on Koyeb. Using the latest streamlit (1.34.0).
Here’s the relevant snippet. Basically I only want to show the button to advance to the next page once the user has submitted the previous form. With the if.st.button() nested in another if statement, the button becomes visible as expected, but doesn’t take the user to the designated page (nothing happens).
if submitted:
st.markdown("You may continue to revise your answers. When you are satisfied with your ratings, submit the form again and click the button below to move to the next step.")
form_submitted = True
else:
st.markdown("Please compete the self evaluation and click submit before moving to the next page.")
if form_submitted:
if st.button("Go to next page"):
st.switch_page("pages/03 🚀 Activate the Values.py")
Also, is there any LLM available that has access to recent Streamlit version docs?