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
BedrockMission!

Learn More

View all

Sign in to view all badges

Font size in livecycle form

Avatar

Avatar
Validate 1
Level 1
pizush
Level 1

Likes

0 likes

Total Posts

21 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
pizush
Level 1

Likes

0 likes

Total Posts

21 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile
pizush
Level 1

15-08-2018

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.

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Boost 50
MVP
_Bruce_Robertson
MVP

Likes

269 likes

Total Posts

1,782 posts

Correct Reply

372 solutions
Top badges earned
Boost 50
Boost 5
Boost 3
Boost 250
Boost 25
View profile

Avatar
Boost 50
MVP
_Bruce_Robertson
MVP

Likes

269 likes

Total Posts

1,782 posts

Correct Reply

372 solutions
Top badges earned
Boost 50
Boost 5
Boost 3
Boost 250
Boost 25
View profile
_Bruce_Robertson
MVP

15-08-2018

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

Answers (1)

Answers (1)

Avatar

Avatar
Validate 1
Level 1
pizush
Level 1

Likes

0 likes

Total Posts

21 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
pizush
Level 1

Likes

0 likes

Total Posts

21 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile
pizush
Level 1

17-08-2018

It worked.

Thanks