Text_input inside a button doesn't work

The button’s True state happens only when you click it. After the text box edit is applied the app reruns and the button will now be in the False state, so the text box will not display until the button is clicked again. What you want is sticky True/False state between reruns, so you should use a checkbox instead. (Streamlit reruns top to bottom every time a widget value changes.)

1 Like