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

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list

How to "Expand to Fit" in script

Avatar

Not applicable
I want a text field to have scroll bars while editing, and want it to expand to fit content (even flow to next pages) when it is printed.

Haven't been able to figure out how to do so.

Any Help?



Many Thanks.
3 Replies

Avatar

Level 10
The subform and the form must be set to flowed and dynamic render. On the Layout palette make sure that the Expand to Fit checkbox is checked under the Y: coordinates.



There is a sample that shows this in the Designer install directory. Look under install dir/EN/Samples/Forms/Purchase Order/Dynamic Interactive/Forms/Purchase Order.pdf



The comments field does exactly what you ask.

Avatar

Not applicable
Thanks Paul!



It shows the scrollbars while editing, but as soon as we tab out of the textfield, it expands the textfield already. Doesn't wait for printing time. Any chance of keeping it in scrollbars up until we actually print it?



If not possible, then I guess this behavior will have to do.

Thanks again.