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

automatic entry from one repeating subform to another

Avatar

Level 1

I've got two subforms are repeating and they have the same number of repeats.  What i want to be able to do is autmatically enter a value from subform1.text1 to subform2.text1.  The trick is that each repeated subform has a new value and matching repeats in subform 1 and 2 need to have those same values.

I've been playing with this bit of code to get it to work

xfa.resolveNode("subform1[" + this.parent.index + "]").text1.rawValue = this.rawValue;

Entry will always be made in subform 1 and that will need to be transfered to subform2.  I tried this code in the calculate event of subform1.text1, but no luck.

Let me know what my options are.

Thanks,

Matt


2 Replies

Avatar

Level 10

Use a global binding for those fields and give them the same name.

The they automatically have the same values.

Avatar

Level 1

That would work if the I had a single subform, however the subforms are repeating and each repeat has to have a different value.  Golbal binding makes all repeated subforms have the same value.