Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list

Shrink text to fit no longer working?

Avatar

Level 1

A year or two ago I needed a solution that would shrink the font size of text down to fit the length of the text box on a form if too much text was entered. I found many posts in these forums explaining that all you have to do is set the font size of the field to 0. I tried it out at the time and it worked fine. I recently needed to do that again, but now when I set the font size to 0, this no longer shrinks the text to fit the field. The text now simply starts out at the smallest possible text size, which is practically unreadable. Did the "shrink text to fit" behavior of setting the font size of a text field to 0 change at some point?

Thanks in advance,

Nathan Dawson

1 Reply

Avatar

Level 10

Hi Nathan,

Make sure you are making the font size zero for the value of the field, not for both caption and value (which is the default).

FontSize.jpg

Regards

Bruce