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.

sharing javascript (library)

Avatar

Level 2

Is there a way to share javascript between forms?  Like calling a method in a javascript library?

Thanks, Doug

2 Replies

Avatar

Level 7

You should be able to create a JavaScript in a fragment, and then share the fragment between forms.

Avatar

Level 2

Could you add more detail.  Obviously, I can inject the Javascript code into the forms as XML before processing but that sort of seems complicated. 

These are not separate pages or sub forms but separate xdp documents.

Thanks, Doug