On button click remove subheader?

I have the following subheader:

st.subheader("1. Select table definitions on the left side bar and click SUBMIT", divider='blue')

and I have a button

click = st.sidebar.button("Submit", type="primary")

is there a way to make the subheader disappear after Submit button is clicked?

Many ways, here is one:

click = st.sidebar.button("Submit", type="primary")
if not click:
    st.subheader(
        "1. Select table definitions on the left side bar and click SUBMIT",
        divider='blue'
    )
1 Like

Thank you!

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.