Donation thank you page, conditional text for regular vs recurring donations

Options

Is there a conditional available that allows one to display a different message on a donation thank you page (not an autoresponder). I've tried the following, however, in the test mode I repeatedly get the null value regardless of what I choose.

 

Any insight will be greatly appreciated.

 


[[?xActivex::x[[S120:dc:recurringCurrentStatusString]]x::
<!-- recurring donation text -->

::
<!-- regular donation text-->

]]

 

Tagged:

Comments

  • Hey Elizabeth,



    You may have to test it out with an actual credit card and choosing a recurring gift. The test mode doesn't always give actual results.



    Also, I found this S Tag on another post, - S1:sustained_status. That seems to give you different values similar to the S Tag you are using. You may have to test them in all situations to see all the possible values that the condition should look for (like "Postponed Sustaining Donor" in addition to "Active").


  • shobi varghese:
    Hey Elizabeth,



    You may have to test it out with an actual credit card and choosing a recurring gift. The test mode doesn't always give actual results.



    Also, I found this S Tag on another post, - S1:sustained_status. That seems to give you different values similar to the S Tag you are using. You may have to test them in all situations to see all the possible values that the condition should look for (like "Postponed Sustaining Donor" in addition to "Active").


    Hi, Elizabeth,

     

    Per the S120 documentation,  [[S:120:dc:firstName would return  'the string value of the "firstName" property of the object named "dc".'  The S120 tag is specific to this donation; the S1 tag will return the current constituent data.  That would be why the two tags might return something different.

  • shobi varghese:
    Hey Elizabeth,



    You may have to test it out with an actual credit card and choosing a recurring gift. The test mode doesn't always give actual results.



    Also, I found this S Tag on another post, - S1:sustained_status. That seems to give you different values similar to the S Tag you are using. You may have to test them in all situations to see all the possible values that the condition should look for (like "Postponed Sustaining Donor" in addition to "Active").


    Thanks Shobi, for confirming my suspicions.
  • Evelyn Bunton:

    Hi, Elizabeth,

     

    Per the S120 documentation,  [[S:120:dc:firstName would return  'the string value of the "firstName" property of the object named "dc".'  The S120 tag is specific to this donation; the S1 tag will return the current constituent data.  That would be why the two tags might return something different.

    Thanks Evelyn.

    I figured as much, it's just tricky to test that S120 tag, as it doesn't work consistently in Test mode. I have to test it out on an instance where the live transactions are not setup, so I can avoid charging a credit card for these tests.
  • After some internal digging I found another solution, which doesn't seem to be documented anywhere.

     


    [[?xx[[S120:dc:recurringFrequencyUnit]]xx::xxmonthsxx::
    This is a recurring donation!
    ::
    This is a onetime donation.
    ]]

     Hopefully this will help someone.

  • Elizabeth Makayed:

    After some internal digging I found another solution, which doesn't seem to be documented anywhere.

     


    [[?xx[[S120:dc:recurringFrequencyUnit]]xx::xxmonthsxx::
    This is a recurring donation!
    ::
    This is a onetime donation.
    ]]

     Hopefully this will help someone.

    We use dc:recurringFrequencyLabel to do the same thing, but one really cool thing that makes your undocumented dc:recurringFrequencyUnit better is that it appears to actually work properly in Test Drive.  Awesome!

  • Chris Backus:

    We use dc:recurringFrequencyLabel to do the same thing, but one really cool thing that makes your undocumented dc:recurringFrequencyUnit better is that it appears to actually work properly in Test Drive.  Awesome!

    Awesome!



    Do you know the value that dc:recurringFrequencyUnit or dc:recurringFrequencyLabel returns?
  • shobi varghese:
    Awesome!



    Do you know the value that dc:recurringFrequencyUnit or dc:recurringFrequencyLabel returns?

    Shobi,

    I'm not sure about all actual values, since the tag is not in the documentation. But since Chris was saying that dc:recurringFrequencyUnit works in test mode, you can just put a tag in a doonation form & test for different values in a test mode.

     

    Hope this helps.

  • Elizabeth Makayed:

    shobi varghese:

    Awesome!


    Do you know the value that dc:recurringFrequencyUnit or dc:recurringFrequencyLabel returns?
     

    Shobi,

    I'm not sure about all actual values, since the tag is not in the documentation. But since Chris was saying that dc:recurringFrequencyUnit works in test mode, you can just put a tag in a doonation form & test for different values in a test mode.

     

    Hope this helps.

     

    I'm using the dc:recurringFrequencyUnit tag.  It returns 'months' (plural) if your recurring form is set as a monthly (the default).  In other cases, it returns 'no such property: recurring FrequencyUnit'.  So I test for 'months', and that is pretty reliable.

Categories