How do I personalize the text on the Payment or Thank You page of a form?

You are able to use Key-Value Pairs to personalize text on your Donate2 forms. Personalization can be added to the body copy block for both the Payment page and Thank You page.


You can personalize the copy using the following syntax:
[[%d2fn%, by || By]] donating today you are helping to ensure a bright future
If d2fn DOES have a value it will look like this:
Stephen, by donating today you are helping to ensure a bright future
If d2fn DOES NOT have a value it will look like this:
By donating today you are helping to ensure a bright future

Here is a breakdown of the syntax:
[[%d2fn%, by || By]] 
[[ starts the condition check
%d2fn% is the Key-Value pair to be checked and the %’s indicate the beginning and end
if d2fn has a value, anything after the last % but before the || will be included with the Value (Stephen, by donating today you …)
if d2fn has no value, anything after the || will be used (By donating today you …)
]] ends the condition check

Here is an example of using a Custom URL Parameter to personalize your text:
You can use the following syntax in the body copy block for both the Payment page and Thank You page. This example is using a Custom URL Parameter of "state"

https://donate2.app/xxxxxx?state=Illinois

When you pass in a State using the Custom URL Parameter

This
Through the generosity of our supporters in  %state%, you make it possible for us to ...

Becomes this
Through the generosity of our supporters in Illinois, you make it possible for us to ...