Skip to main content

Activity

commented on How to display custom donation fields in email
Can’t quite get this to work right, would love some guidance. Have a list of items in a dropdown I’m trying to get it to display in the autoresponder email on a payment. I’ve tried it two ways, both are generating errors:

When I do:
{% if recipient.last_donation.custom_values[‘foo’] == ‘1’ }Option 1{ elsif recipient.last_donation.custom_values[‘foo’] == ‘2’ }Option 2{ elsif recipient.last_donation.custom_values[‘foo’] == ‘3’ }Option 3{ endif %}

In the autoresponder email it puts “Option A” no matter which item I select from the dropdown.

Then I tried:
{% if recipient.last_donation.custom_values[‘foo’] == ‘1’ }Option 1{ endif }
{
if recipient.last_donation.custom_values[‘foo’] == ‘2’ }Option 2{ endif }
{
if recipient.last_donation.custom_values[‘foo’] == ‘3’ }Option 3{ endif %}

And it output all three options in the autoresponder, even though obviously I had only selected one option.

Any idea what I’m doing wrong here?

Thanks!
posted 2020-01-22 17:04:12 -0800
published breadcrumbs missing? in Questions
posted 2017-09-12 15:39:38 -0700
commented on Is it possible to get a list of upcoming events?
Brilliant, replacing “home” with “calendar” in the call on the homepage did it. Thanks!

Now: anyone know how to pull just events with a specific tag? Or maybe exclude events with a specific tag?
posted 2017-07-13 11:16:01 -0700
commented on How do I display the tags of each blog post with the excerpt on the main blog page
Is it possible to do this for event pages? I have events tagged, would like the tags to show up in the main calendar listing page (as well as on each unique event page).
posted 2017-07-07 11:52:50 -0700