Skip to content
🚀 Rapid Application Development with the App Builder

loadScript(fileName, scriptId)

Dynamically loads a JavaScript file into the page header.

Scope: onAppOpen

Parameters

ParameterTypeDescription
fileNamestringURL to JavaScript file.
scriptId (optional)stringUse to prevent multiple file loads.

Return Value

None

✨ Example of a onAppOpen Hook

js
(() => {

	// Make sure the given path exists and is accessible:
	loadScript("/path/my-js-functions.js", "myJsFunctions")
	loadStyle("/path/my-style.css", "myCss")
	
})