Global JavaScript hooks

Any JavaScript in the PolicyCenter/modules/configuration/webresources/js/customer directory is packaged up and deployed together with the PolicyCenter core JavaScript libraries. There is a basic customer.js file included in this directory by default, showing an example of how to register a System. All JavaScript libraries are included in PolicyCenter pages by the HTML header.

In addition, you can edit the file PolicyCenter/modules/configuration/webresources/Client_Header.json to include other JavaScript libraries or links in the HTML header. After changing Client_Header.json, in Guidewire Studio, click Tools > Web Resources.

For example you could add a new library by adding the following to Client_Header.json:
"script": [ {"src": "https://someserver/mylibrary.js"} ]

See also