Hide text input box after submitting the input and reappear when click on button with default value

I want to use the input box to get the input value and then want to hide this box when search is successful and then allow other user interactive widget to work as per the requirement. At the end again un-hide/reappear the text input box when clicking on the clear button.

Here problem is that when I am using st.empty then it clears all the widget and entire page.

Thanks in advance.

1 Like