Working with Page-Level Action Scripts

This tab is for managing local actions within the current page. You can:

  • Create new scripts by clicking "+ New Script" in the first panel.

  • The second panel shows your current script, where you can:

    • Add actions

    • Rearrange actions via drag-and-drop

  • Edit action details in the third panel.

  • JavaScript Editor: If you have a "function" action, like the example below, click on the line number to open the JavaScript editor.

  • Disabled: Temporarily disable a script without deleting it.

  • Run: Execute the script immediately for testing purposes.

  • Delete: Permanently remove the script.

By organizing your logic into named scripts, you can create more modular, reusable, and maintainable actions within your BetterForms pages.

Priority of Local Scripts: Local scripts take priority over global scripts. For example, if both local and global scripts define a namedAction "someAction", the local script will be executed on this page.

Last updated

Was this helpful?