Scripting on Community Campaigns

Pre-Processing Script

When it runs: When the community form renders — typically when a participant’s page loads
Purpose: Set defaults from participant context, pre-populate team fields, redirect based on conditions

Common uses:

  • Pre-populate the team assignment from the URL parameters
  • Set default donation amounts based on the participant’s previous giving
  • Redirect to a closed campaign page when the end date has passed

Post-Processing Script

When it runs: After a community transaction is saved
Purpose: Update team totals, notify team leaders, trigger social sharing prompts

Common uses:

  • Send a notification to the team leader when a new donation comes in
  • Update a leaderboard via an external API
  • Send a personalised thank-you from the participant to the donor

Script Context

Variable Contents
campaign The community campaign (TeamCampaign)
purchaseOrder The completed transaction
contact The donor’s Contact record
account The DonorPoint account
orderItems All donation line items

→ Full context reference: Scripting Contexts