conditional content based on recurring gift duration?

Options
Can anyone tell me if it's possible to use S-tags to create conditional content in a donation form autoresponder based on the recurring gift duration selected on the donation form? For example, I'd like to convey one message to a donor who selects a recurring gift of 3 months and another for the donor that selects a recurring gift with an ongoing ("forever") duration. 
Tagged:

Comments

  • That is a good question. I'd be interested in knowing the answer as well. It will really help our donors feel like the message we are creating is just for them!
  • Absolutely -- you can use an S120 tag to accomplish this.



    This will give you the gift frequency, for example "Monthly":



    [[S120:dc:recurringFrequencyLabel]]



    This is blank if the gift is not a recurring gift, so commonly, I've seen organizations do something like this:



    [[?xx::x[[S120:dc:recurringFrequencyLabel]]x::<br /><br/>&nbsp; <p>Thank you for your one-time gift!</p><br /><br/>::<br /><br/>&nbsp; <p>Thank you for your recurring gift!</p><br /><br/>]]



    For a "Forever" gift, this will return "Monthly (ongoing)", so you can do something like this:



    [[?xx::x[[S120:dc:recurringFrequencyLabel]]x::<br /><br/>&nbsp; <p>Thank you for your one-time gift!</p><br /><br/>::<br /><br/>&nbsp;&nbsp;[[?xMonthly (ongoing)x::x[[S120:dc:recurringFrequencyLabel]]x::<br /><br/>&nbsp; &nbsp; <p>Thank you for your gift that recurs forever!</p><br /><br/>&nbsp;&nbsp;::<br /><br/>&nbsp;&nbsp; &nbsp;<p>Thank you for your recurring gift!</p><br /><br/>&nbsp;&nbsp;]]<br /><br/>]]
  • Thanks, Noah! I'm assuming that since I'm using the Flexible Sustainer Donation level which has a one-time gift option, that if someone chooses to give a one-time gift they'll get the "Standard Donation Thank You" autoresponder.



    If they select a recurring gift option (either 3 months or ongoing), they'll get the "Sustaining Initial Thank You" autoresponder. So on this autoresponder, using your code snippett, would I be right to use the following?



      [[?xMonthly (ongoing)x::x[[S120:dc:recurringFrequencyLabel]]x::

        <p>Thank you for your gift that recurs forever!</p>

      ::

             <p>Thank you for your gift that recurs for 3 months</p>

      ]]

    ]]



     
  • nice question. I want to see your campaign Greg. Do you mind emailing me one of your asks? Or can I just sign up on your website newsletter to receive it. :)
  • Good point -- the one-time vs. recurring conditional is really only useful if you're doing this conditionalization on the thank you page not in the autoresponder, since a different autoresponder is sent for one-time and recurring gifts.



    To conditionalize the content in the "Sustaining Initial Thank You" autoresponder for gifts with a finite number of payments vs. forever gifts, the snippet you copied is close to being right. Two things: 1) you included a stray "]]", and 2) you should of course make the number of payments dynamic rather than hardcoding "3".



    [[?xMonthly (ongoing)x::x[[S120:dc:recurringFrequencyLabel]]x::<br /><br/>&nbsp;&nbsp;<p>Thank you for your gift that recurs forever!</p><br /><br/>::<br /><br/>&nbsp;&nbsp;<p>Thank you for your gift that recurs for [[S120:dc:recurringTotalNumberOfPayments]] months</p><br /><br/>]]
  • It's very similar to the one you guys run for the summer months, Maria. In fact, you were the inspiration for us to try it. I'll forward you the test message, or yes, just sign up on our list. I'm on yours :)
  • Noah Cooper:

    Good point -- the one-time vs. recurring conditional is really only useful if you're doing this conditionalization on the thank you page not in the autoresponder, since a different autoresponder is sent for one-time and recurring gifts.



    To conditionalize the content in the "Sustaining Initial Thank You" autoresponder for gifts with a finite number of payments vs. forever gifts, the snippet you copied is close to being right. Two things: 1) you included a stray "]]", and 2) you should of course make the number of payments dynamic rather than hardcoding "3".



    [[?xMonthly (ongoing)x::x[[S120:dc:recurringFrequencyLabel]]x::<br /><br/>&nbsp;&nbsp;<p>Thank you for your gift that recurs forever!</p><br /><br/>::<br /><br/>&nbsp;&nbsp;<p>Thank you for your gift that recurs for [[S120:dc:recurringTotalNumberOfPayments]] months</p><br /><br/>]]

    Noah, something's not working. I can't get the conditional to pull using the frequency label of xMonthly (ongoing)x. I've tried removing the space, capitalization, flipping the order to Ongoing(Monthly)...but nothing works. Here is the link to the published donation form: http://engage.acfb.org/site/Donation2?df_id=6120&6120.donation=form1. Maybe you're able to tell what I'm doing wrong?
  • Greg Sims:

    It's very similar to the one you guys run for the summer months, Maria. In fact, you were the inspiration for us to try it. I'll forward you the test message, or yes, just sign up on our list. I'm on yours :)

    Signed up yesterday. We should talk after your campaign is done and compare results. :)
  • Noah, don't know if you saw my last response to your post yesterday. The code snippet you suggested doesn't work. Can't figure out why. Appreciate any help you or others might provide as I'm trying to get this campaign launched today. I suspect that there's something wrong with the value I'm inserting for the 'recurringFrequencyLabel' but don't know for sure. Here's the basic code as I've got it configured.



    [[?xMonthly (ongoing)x::x[[S120:dc:recurringFrequencyLabel]]x::

        <p style="margin-bottom: 1em; font-size: 11pt; font-family: Arial, Helvetica, sans-serif; line-height: 140%;">When summer temperatures rise, so does the need for the hungry and hurting in greater Atlanta and north Georgia. <br /><br />

         <b>That's why I'm so grateful for your ongoing commitment of [[S120:dc:giftAmount]].</b> Your generosity will help ensure hungry children, families and seniors here in greater Atlanta and north Georgia have enough food to eat during the difficult summer months and beyond!</p>

    ::

    <p style="margin-bottom: 1em; font-size: 11pt; font-family: Arial, Helvetica, sans-serif; line-height: 140%;">When summer temperatures rise, so does the need for the hungry and hurting in greater Atlanta and north Georgia. <br /><br />

         <b>That's why I'm so grateful for your three-month commitment of [[S120:dc:giftAmount]].</b> Your generosity will help ensure hungry children, families and seniors here in greater Atlanta and north Georgia have enough food to eat during the difficult summer months and beyond!</p>

    ]]
  • Nevermind. Figured it out with the help of Support. Discovered that testing the conditional code via the "Test Drive" feature doesn't work. I had to make a live donation to check the code -- and it worked! I should have trusted Noah all along. 



    Thanks!

Categories