Expand my Community achievements bar.

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