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

SOLVED

Font size in livecycle form

Avatar

Level 2

Hi

I have tried to auto reduce font size when text does not accommodate within the given text field space. I have made a static pdf in livecycle designer es4. I search through the forum and come up with below code. But this code is not reducing the font size.

if (xfa.event.newText.length == 19) {

    this.font.size = "0pt";

}

How this code could be run in static form. Any help please.

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi, I don't think you can make these sort of changes to the layout in a static form.  But, if you set the font size for the value (not the caption or value/caption) to zero then Reader will reduce the font to fit the field.

1549839_pastedImage_0.png

View solution in original post

0 Replies

Avatar

Correct answer by
Level 10

Hi, I don't think you can make these sort of changes to the layout in a static form.  But, if you set the font size for the value (not the caption or value/caption) to zero then Reader will reduce the font to fit the field.

1549839_pastedImage_0.png