2021.2

Table Of Contents
(while the page continues the parsing).
When neither option is checked, the script is fetched and executed immediately, while the
parsing of the page is paused.
5. Optionally, for a Capture OnTheGo Form, you can check Use cached Capture
OnTheGo resource, to prevent downloading a remote JavaScript file again if it has been
downloaded before. The file should be available on a publicly accessible location, for
example: a folder location on a corporate website, hosted by a CDN (Content Delivery
Network) or shared via a Workflow process.
Note
In Workflow, when using the Create Web Content task, check the Embed All Resources
option to download and embed all remote resources. (See Workflow Help: Create Web
Content.)
Tip
After adding the remote file, you may right-click it and select Download Resource. This
allows you to maintain a central file, from which you can quickly download a copy to your
template without having to copy & paste.
Note that a local copy of a remote resource is a snapshot; it is not automatically kept in
sync with its remote content. You can download the remote resource again to overwrite
the local copy with updated content. If you don't want a local copy to be overwritten you
should rename it before downloading the remote resource again.
Using JavaScript files in a template
Including a JavaScript file in a Web context
To link a JavaScript file to the Web context, or to a certain Web section or COTG template:
1. On the Resources pane, expand the Contexts folder, and then either right-click the Web
context, or expand the Web context and right-click a Web section.
2. Click Includes.
3. From the File types dropdown, select JavaScripts.
Page 569