Global functions
Create reusable scripts that you can use throughout your app.
Use Global functions to write a function once and use it anywhere in your app. A global function stores shared logic that several fields, buttons, or automations need. When you update the function, every place that calls it uses the new logic.
Create a global function

In the Scripting screen you can:
Select a function to open it in the editor.
Use Search in files to find a function by name.
Select Add to create another global function.
Switch between open functions using the tabs.
Rename or delete a global function
Move the cursor over a function in the Global functions list to show ⋮. Use the menu to rename or delete the function.
Call a global function
Define a function that returns the value or performs the action you need. Then call it from any other scripts in the app.
For example, define a function that returns a welcome message:
Call the function by its name, welcomeMessage(), where you need it. For example, use it in a logic field or a button to show a message:
Last updated
Was this helpful?