Scripting on Events
Event Package Items support the full item scripting lifecycle.
Pre-Processing Script
When it runs: When a donor selects an Event Package on the form
Purpose: Enforce capacity rules, pre-populate attendee fields, apply conditional logic
Common uses:
- Check remaining capacity before allowing selection
- Pre-populate the attendee name from the logged-in user’s profile
- Show or hide seating options based on package selection
Post-Processing Script
When it runs: After the event registration transaction is saved
Purpose: Confirm attendance, update external systems, send targeted notifications
Common uses:
- Send a notification to event staff when a VIP package is purchased
- Post registration data to an external event management system
- Update the contact’s event history custom field
- Send a welcome email specific to this registration tier
Script Context
| Variable | Contents |
|---|---|
orderItem |
The Event Registration Order Item |
purchaseOrder |
The complete transaction |
contact |
The registrant’s Contact record |
account |
The DonorPoint account |
campaign |
The form this registration came from |
→ Full context reference: Scripting Contexts