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

Auto fit text boxes do not save correctly....

tas2121
Level 2
Level 2

Hi,

I have a form where I have a text box on a positioned page that is set up in the following way

- allow multiple lines - object>field options

- expand to fit - Layout options.

- I do have a height specified as a default.

- this.maxH - ""; - is scripted to shrink the box to the smallest size possible based on the text value.

- this is a dynamic form

It works as designed when test the PDF in reader or acrobat.  I have enabled user rights to save the document in acrobat.

The problem is that when I add some text to the textbox, save the document, then reopen it - it collapses the text to one line and shifts the position up.  I have wrapped this in subfrom and set it to flowed, but that made no chance.  I wonder if there is a conflict with the this.maxH script and auto height.

Any ideas - thanks in advance to any all help. 

2 Replies
aks
Level 3
Level 3

Kindly share following details to exactly trace problem:

1: At what event you have written the script ?

2: Is there any condition before the script this.maxH - "" ?

Probably problem is your script, if there is no condition and it is called at form reopening.

Thanks.

tas2121
Level 2
Level 2

Hi aks@lc

It is at the exit event.  There is no condition statement.

thanks