Launching Fundraise Up Checkout modal on page load

Automatically opening the Fundraise Up Checkout modal when a page loads can streamline the donation process for your supporters. There are multiple ways to achieve this, including using URL parameters, Fundraise Up Elements, and the JavaScript API.

Prerequisites

Using URL parameters

The simplest way to open the Checkout modal on page load is by using URL parameters. This method works on any page of your website where the Fundraise Up installation code is present, not just the homepage. The form parameter can be set to either the campaign ID or a custom name (friendly URL value) for the campaign. You can share this URL directly with supporters or create a link or button that redirects to this URL, automatically opening the Checkout modal.

Campaign ID method

Structure your URL as follows:

1https://yourwebsite.org/any-page/?form=FUNXXXXX
2https://yourwebsite.org/?form=FUNXXXXX

Replace FUNXXXXX with your actual campaign ID and any-page with the specific page URL where you want the modal to open.

Custom name method

If you've set a custom Campaign URL for your campaign, replace FUNXXXXX from the previous examples with your custom campaign name.

1https://yourwebsite.org/any-page/?form=custom-campaign-name
2https://yourwebsite.org/?form=custom-campaign-name

When using subaccounts, custom campaign names for subaccount campaigns don't work with the parent account's installation code on a website. In such cases, you must use the campaign ID in the form parameter instead.

Using Fundraise Up Elements

Fundraise Up Elements offer another approach to trigger the Checkout modal:

  1. Create a Donate Link element in your Fundraise Up dashboard.
  2. Specify the URL where you want the Checkout modal to open.
  3. The generated link will lead donors to the specified page with the Checkout modal opened.
If a supporter clicks on the link outside of your website with Fundraise Up installation code and you have Campaign Page enabled in the campaign, the supporter will be forwarded to the campaign page instead of the specified URL.

Using the JavaScript API method

For more advanced control, you can use the JavaScript API method to open the Checkout modal programmatically:

1FundraiseUp.openCheckout('FUNXXXXX'); // Replace with your campaign ID

This method allows you to open the Checkout modal based on specific events or user interactions.

Still need help?

Need help with something not covered in Support Center? Connect with a support engineer for more assistance.
Email us