Scripting Overview

Memento Database provides powerful scripting capabilities that allow you to extend functionality, automate tasks, and create dynamic user experiences using JavaScript. Scripts enable you to go beyond the standard database features and implement custom logic tailored to your specific needs.

Where Scripts Are Used

  • Triggers: Execute automatically on database events (record creation, updates, deletion, field changes)
  • Actions and Buttons: Run when users click buttons or menu items in the interface
  • Data Sources: Provide dynamic data for auto-completion fields and dropdowns
  • Widgets: Program the appearance and behavior of widgets based on library data
  • JavaScript Field: Use scripts for complex calculations within entry fields

For detailed information on accessing and manipulating library data within scripts, see the Memento JavaScript API documentation, which provides comprehensive reference for all available methods and objects for working with entries, fields, and library operations.

Scripts in JavaScript Field run in a limited execution context and do not support methods from the Memento JavaScript API.