How can I know if a input text area has a "enter/return key" or not.

Judit shared this question 1 year ago
Answered

I want to set up different actions if the user has entered a word or more in a text area field. Each word is inputted in his own line so I would need to detect if the text field has a return entered. Is that possible?

Comments (2)

photo
1

You can use a regular expression for that. Check the prototype attached.

photo
1

Awesome, thanks!