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

Fragments - How to reference them in JS?

Avatar

Not applicable
Hi,



We have a subform that is being used in about 20 places in a dynamic PDF form and basically showing/hiding this subform and setting it's internal object values based on user's selection somewhere else in the form.



Using the normal way of scripting this subform and its objects directly is working perfectly. However, when I converted this subform to Fragment, the current JS does not working any more. Another strange thing is the fragment node is not showing in the auto complete list during scripting!?



I do appreciate any idea where to look at and if there are any references on how-to?



PS: using Adobe LC ES Designer 8.1.



BR,



Yasser
0 Replies

Avatar

Not applicable
Hello,



are there any ideas how to solve that problem?



I've got the same problem:

"var childNodes = startNode.nodes;" found nodes which are fragments themselve. If I want to do a "theNode.access = "readOnly"; " the contained formular elemnts are not found (within LC Designer 8.1, they're greyed out too).



Is there another naming convention for denote a fragment or doesn't fragments can be manipulated in such a manner :-(( ?



Regards, Leo

The ultimate experience is back.

Join us in Vegas to build skills, learn from the world's top brands, and be inspired.

Register Now