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

layout/relayout of the form with expandable fields

Avatar

Level 6
Hello,



I have a dynamic section in my form. In that I have two fields. When one is expanded, I would like the other to expand to, using this code:



var newHeight = xfa.layout.h(TextField1, "in");

TextField2.h = newHeight + "in";



The problem is that, when I add a second section dynamically using instance manager, if I take some text of the previous expanded field, the form will not relayout as it should: between the 2 instances of the section I will have an empty space. I put the code on the layout ready event of the field. Without the code, the expand and unexpand will layout the form just fine.
0 Replies