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.

Alternative to expanding and shrinking font needed.

Avatar

Former Community Member

Hi,


I have a form that has a Name Field, it's set to Arial Font 9.

I'd like the text to shrink ONLY when the name is too long to fit.  I do not want it to get larger if the name is short (this happens when I set the font = 0)

I cannot have this field set to "expand to fit" due to the layout constraints.

I need the font to stay at 9, unless the name is too long and then I'd like it to shrink.

Is this possible?

3 Replies

Avatar

Level 8

The easiest way I can think of, if you want to maintain the height of your field, is to adjust the Paragraph>Spacing. Set the Above and Below to the same values until you get a size that is as close to 9pt as you can get it.

Kyle

Avatar

Former Community Member

Thanks this helped, I set the top at 2.4 and the bottom at 2.5 and it worked like I needed.

thanks again!

Avatar

Former Community Member

Although this worked in 'preview' mode.  It does not pull the information from the DB, it shows the whole field as blank when I change the settings to the Font = 0 as stated above.

Any ideas??? If I set the font to a size(ex: 9) then it populates.