Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

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.