1

I'd like to send users a notification email when someone donates from a specific contribution page - is this possible? I don't see contribution page in the list of condition options in CiviRule.

1
  • 1
    and this notification needs to be separate to any receipt I assume?
    – petednz - fuzion
    Commented Jun 21, 2023 at 18:27

2 Answers 2

2

Lars' answer is correct, but there are some caveats for sending notifications based on the contribution page.

  • You must use the "Contribution" as your trigger entity, not "Contribution Page". That may be obvious.

  • You have to use "is changed" in the trigger, not "is added". Contributions are first created with a "Pending" status, then the card is charged, and if successful, changed to "Completed". If you use "Contribution is Added" you'll send notifications even if their payment failed.

  • Because "Contribution is changed" any time you make a change on the back end, you must add an additional condition: "Compare Old Contribution Status to New Contribution Status". Set it to Old value != Completed and new value = Completed. That way, it only triggers once, when the charge completes successfully.

  • If your notification contains tokens that reference subsidiary entities (memberships, participants, soft credits) you must add a delay of 1 minute (or more) to the notification. Other entities are created after the contribution, and won't exist yet if you send immediately.

Your setup should look somewhat like this screenshot (this rule doesn't need a delay, and the field value comparison should be =, not !=):

enter image description here

1

You can use Field Value Comparison to check the Contribution Page.

Field Value Comparison is the slightly more manual way to check basically any field you want in CiviRules — it opens up a lot of options. Always test because things might not work quite as you expect with fields that can have multiple values and other more complex situations, but Contribution Page should be pretty straightforward.

2
  • You can also just cc or bcc the receipt to others, which might be simpler.
    – Lars SG
    Commented Jun 21, 2023 at 19:58
  • Thank you! I'm not sending receipts since these contributions don't qualify for a tax receipt so I can't use the cc
    – erin
    Commented Jun 21, 2023 at 20:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.