Need help in reseting contain of some text_input field

Please help me in writing code to clear text at lines 8 and 10 OR to start code execution from the line 6.
One more thing I need submit button at the bottom of my app
I am trying to do it for the last 2 weeks. Please help me!!!

you can try st.form compent to finish your job

st.form usage

1 Like

Thanks for your help. But st.form is not working as expected.
Any error is not coming but clear input_text in not happening…
Do we have any other solution?

Have you been able to solve this issue?