Hello! Is there a way to code something where if a user hits the enter or return key on their keyboard it will submit the form (if they are focusing an input box). For example I have this form: Screen Shot 2018-08-01 at 8.... It’s a single line. After the user enters their phone number I just want them to hit enter and then it will submit the form. Currently it does not do this. Any way I can add a line of code to trigger this? Thank you!
Hey
Just add the https://www.wix.com/code/reference/$w.TextInputMixin.html#onKeyPress to the input field.
Thanks so much Andreas! So which event key would be the “Enter” / “Return” button. Thanks again!
Hi
Did you end up finding a solution for this feature?