How to avoid refreshing the whole page everytime when the value of a text_input has been changed?

I’m using text_ Input, button and checkbox components. First, I need to click one button(start) at a time to display the following text_ Input, but I find that whenever I modify the value of the component that appears after modification, the whole page will refresh, and the button(start) I clicked before will be invalidated, which makes me very distressed. How can I make text_ Value Bu of components such as input

Hey @makabaka,

This can easily be solved by tracking if your button has been pushed in the past with a variable in session state!

Checkout these links to help you with that solution:

Happy Streamlit-ing!

1 Like