Your Rules: Before and After

DonorPoint provides scripting hooks at every significant event in the system. This is where your business rules live — not in manual workarounds, not in separate systems, but in the platform itself.

The mental model is simple: every meaningful event has a before and an after.

Hook Type When What You Can Do
Pre-Processing Before an action completes — form renders, item selected, record loads Set defaults, redirect, enforce eligibility, pre-populate fields
Validation At submit time, before saving Block submission with an error message if rules aren’t met
Post-Processing After a record is saved Notify, update related records, post to external systems
Event Handlers When any record is created or updated (anywhere — form, API, admin) Sync data, enforce standards, trigger downstream processes
Workflows After a transaction is successfully completed Multi-step automation: email sequences, conditional branching
Scheduled Scripts On a time-based schedule Batch operations, reports, file generation, periodic sync
Entity Actions On staff demand — a button in the sidebar Ad-hoc operations, bulk actions, on-demand integrations

Where to Find the Hooks

Each section of the documentation has a Scripting sub-topic that describes which hooks are available in that context and what use cases they support. All of those sub-topics link to Scripting Contexts for the authoritative list of variables available in each hook.

In This Section