Streamlit-Authenticator icon indicating copy to clipboard operation
Streamlit-Authenticator copied to clipboard

Setting the clear_on_submit parameter always clears, even when undesirable

Open robinzimmermann opened this issue 6 months ago • 1 comments

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

  • Fill in the register new user form.
  • But make the password something that will be unacceptable, like abc.
  • When you submit the form, it clears. Now you have to fill in every field again, not just the password field.

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 avatar Aug 21 '24 17:08 robinzimmermann