Hello!
I have the following structure:
I would like to get all the T1 and T2 object in 2 lists.
If I use the following syntax:
var myList = xfa.form.form1.Page1.Main.nodes; to get the parent subforms
I get two types of objects: _H1 ... _HN and H1 ... HN. (_H1 ... HN objects have only get access.)
Is there a nice way to get only the H1 ... HN object so I could keep working with them to get the T1, T2 child objects?
Thanks and best regards.
Solved! Go to Solution.
Views
Replies
Total Likes
Hi,
the _Hx are the instance of the subform. To get all the subforms (without the _stuff) you can try this
var myList = xfa.form.form1.Page1.Main.resolveNodes("#subform[*]");
app.alert(myList.item(0).name) is H1 and length of the list is 4
Views
Replies
Total Likes
Hi,
the _Hx are the instance of the subform. To get all the subforms (without the _stuff) you can try this
var myList = xfa.form.form1.Page1.Main.resolveNodes("#subform[*]");
app.alert(myList.item(0).name) is H1 and length of the list is 4
Views
Replies
Total Likes
Views
Replies
Total Likes
or https://helpx.adobe.com/pdf/aem-forms/6-2/scripting-reference.pdf
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies