mkhorasani / Streamlit-Authenticator

A secure authentication module to manage user access in a Streamlit application.
Other
1.66k stars 258 forks source link

Setting the clear_on_submit parameter always clears, even when undesirable #199

Open robinzimmermann opened 3 months ago

robinzimmermann commented 3 months ago

There are times when you want the form to clear if successful, but not if it fails. For example:

I would like the form to clear if the submission was successful, but not clear if there was an issue with one of the fields.

robinzimmermann commented 3 months ago

FYI st.experimental_rerun() is now just st.rerun(). But it doesn't have the desired effect, it left the form fields still populated even when the submission was successful.