Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

Instance referencing

Avatar

Former Community Member

I have a subform where new instances are created as needed, and i can use instance manager to get the count, add or remove instances, and set the total number of instances.

I need to access the data in specific fields on specific instances of the subform, either from within another instance, or from elsewhere on the form.

At the moment, my only method is to use the resolveNode function,

Like this: var prevDropBox = parent.parent.resolveNode("fields[" + k + "].CBA2");

but there has to be a better way.

Any ideas?

1 Reply

Avatar

Level 2

Unless you switch from Javascript to FormCalc, that is the only way. See what Adobe has to say about it in the Livecycle Designer  Scripting Basics document, page 58.