Expand my Community achievements bar.

Enhance your AEM Assets & Boost Your Development: [AEM Gems | June 19, 2024] Improving the Developer Experience with New APIs and Events

Prevent line breaks in expanding text field


Level 5

I have a form with many text fields which I have set to "Allow Multiple Lines" and Limit Length of 225 characters.  However, I would like to limit these fields to 2 LINES -- is it possible to prevent the user from pressing Enter a bunch of times in these fields?  Because  someone can enter one word per line and expand the field far beyond two lines, which is what the 225 character limited is intended to do.  Thanks.

0 Replies