St.form with text_input - confusing instructions for user

Running Locally
Python 3.11
streamlit==1.28.2

I have a text input box where the user will enter … some text.

I am using st.form and st.text_area

# Using the "with" syntax
with st.form(key='my_form'):
	theme = st.text_area(label='Enter some text')
	submit_button = st.form_submit_button(label='Submit')

However, as you can see, the user is given two instructions. Press Ctrl + enter to Submit. Or Press the Submit button to submit.

I want the submit button to be the only method available. Having two sets of instructions may confuse people. (Never underestimate non technical people).

Is there a way to just have the Submit button as the only way to Submit?

Hi @solivc ,

appreciate you making this post. We currently have a github issue where other users feel the same way:

Please upvote these issues as we currently use them to prioritize issues.

2 Likes

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