Is it possible to have example input values where user can select for st.form?

Hi, just wanted to know how I can add example input values so user can click and it will fill up the form for st.form. Thank you

Well, st.text_input and st.text_area have a parameter called placeholder which should do what you want. You can review the docs as needed.

For other widgets, you could probably use st.markdown to show example text (to serve the same functionality). Or you can put instructions in the help= parameter.

Cheers

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.