Hi everybody!
Thank you @dataprofessor for your answer.
Maybe I simply don’t understand your code correctly, but I don’t think your suggestion tackles the problem. I think @Arjun_Prasaath wants to deactivate the function of a text_input to submit the entire form when pressing enter after filling it out.
I am facing the same challenge. My app involves multiple text_input widgets, and I don’t want user to submit unintentionally too early by pressing enter to confirm their input.
In that sense, I don’t want to disable the widget, but just the function of submitting the whole form on one enter-click.
I’m also facing a similar issue. The default action upon pushing enter for a text_input widget in a form is to submit the form. This is not a desirable default if there are multiple text_input widgets. Making the hotkey, ⌘ + enter, to submit the form like it is for text_area would be a better solution.
No new information, but I would like to report the same issue. I have a longish form (a demographic survey to be filled out before participating in my experiment), and I don’t want the user to “lose their work” if they mistakenly press enter while they’re filling out the form.
Thanks for stopping by! We use cookies to help us understand how you interact with our website.
By clicking “Accept all”, you consent to our use of cookies. For more information, please see our privacy policy.
Cookie settings
Strictly necessary cookies
These cookies are necessary for the website to function and cannot be switched off. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms.
Performance cookies
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us understand how visitors move around the site and which pages are most frequently visited.
Functional cookies
These cookies are used to record your choices and settings, maintain your preferences over time and recognize you when you return to our website. These cookies help us to personalize our content for you and remember your preferences.
Targeting cookies
These cookies may be deployed to our site by our advertising partners to build a profile of your interest and provide you with content that is relevant to you, including showing you relevant ads on other websites.