Hi all,
I have a donation widget on our WordPress website that lets visitors select a gift amount ($50, $100, $200, $500, or a custom amount). When they click "Donate Now," our RE NXT Optimized Donation Form opens as a popup using the standard Blackbaud loader script and data-blackbaud-optimized-form-id button method.
Everything works correctly; the form opens as expected. What I'm trying to figure out is whether there's a way to pass the amount the visitor selected on our website into the form, so that amount is pre-filled when the popup opens.
I've reviewed the URL parameter documentation (designation, campaign, appeal) and don't see an amount parameter listed. I also tried appending ?amount= to the page URL before the popup fires, but that had no effect.
Here is the test page where the widget is live so you can see exactly what I'm describing:
Get Help - Greater Lansing Food Bank
My questions:
- Is there a supported URL parameter for pre-filling a gift amount in an Optimized Form?
- If not, does the Blackbaud loader script expose any JavaScript method that would allow an amount to be passed in programmatically when the popup is triggered?
Thanks in advance for any help!