I’m building an app that contains a few st.text_input fields. The app is currently deployed on the cloud. The problem is that when you’ve used it a couple of times, once you click again on the text input field the app suggests previous inputs. Can I disable this feature? I don’t want any suggestions on any of the fields.
I think the auto-suggest may not be a Streamlit built-in feature for the st.text_input
method but may be from the browser’s built-in feature.
Please see the following on how to turn the auto-fill off in the browser:
Hope this helps!
that’s very helpful, thank you!
It is actually possible to achieve the desired result without deactivating the suggestions from the browser, by using the autocomplete option (autocomplete=“off”), check the following example:
query = st.text_input("Enter your query:", placeholder="Query...", autocomplete="off")