You can use script fragments to reuse JavaScript functions in multiple forms. When creating a form design, you insert a reference to an existing script fragment and the fragment appears in the form design.To insert a script fragment from the LiveCycle Workbench ES repository:
1. In the LiveCycle Workbench ES Resources view, select the file that contains the fragment to insert.