Closed maawais closed 10 months ago
Dear @maawais, please note that that whenever you interact with the application i.e. press a button, or click on any point on the webpage, Streamlit will rerun the script. The issue here is that since you have placed the register user widget within a button, the widget will only be invoked if the button is True i.e. has been pressed, however, since you will interact with the application after pressing the button and Streamlit will rerun the script, the button will be returned to False and the widget placed inside of it will no longer be invoked. Long story short, you need to use the register user widget without a button as shown in the readme. Hope this helps.
If I run following code, then it runs perfectly okay.
Now, if I try to activate same widget after some button click, then,
register_user_form.form_submit_button('Register')
status is always false. The error can be reproduced by the following code:Because status of
register_user_form.form_submit_button('Register')
is always False so, the widget will not run the following section of user registration: