Font size in livecycle form




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)




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.