Expand my Community achievements bar.

July 31st AEM Gems Webinar: Elevate your AEM development to master the integration of private GitHub repositories within AEM Cloud Manager.

Variable Font Size in Form

Avatar

Former Community Member
How do I set the font size to shrink when a user fills a text box, thereby allowing more characters to be entered in the fixed-size text box?
2 Replies

Avatar

Former Community Member
In the scripting box for the text field you could use:



this.font.size = "0pt";



Ensure you set the event to Initialise and the language to JavaScript.