How to add a Donation Form in Drupal 8

How to add a Donation Form in Drupal 8

drupal 8 donations

We put together a quick integration guide for our Drupal 8 users – keep reading to find out how easy it is to install a Donorbox donation form onto your Drupal 8 website!

Step 1

Head over to your Donorbox campaigns page. Click the form integrations icon </> for your fundraising campaign. Then, click the “<>Embed Codes” button.

drupal 8 donations

Step 2

You can edit some of the default settings in your form here, like setting a default donation amount or recurring option. As you change the settings, you will see the code automatically adjust itself.

When you’re happy with the settings, copy the embed code for your form. This code will be pasted in your Drupal site later on.

drupal 8 donations

Step 3

Now, log into your Drupal 8 account. At the top of your Dashboard, click the “Manage” tab, followed by the “Content” tab. Then click the blue “Add Content” button.

donate on Drupal 8

Step 4

In order to add a permanent donation page to your website, choose the “Basic page” option for your new content.

Drupal 8 donations

Step 5

After naming your page, paste the donation form embed code into the appropriate field.

Drupal 8 donations

Step 6

Below your code, change your text format to “Full HTML”. The code should instantly transform into your donation form within the text box. Because we are using an embed code instead of a preset donation module, make sure not to skip this step or lines of code will appear on your website instead of the form itself.

donation form in Drupal 8

Step 7

To ensure that your new donation page is featured on your website’s menu bar, click the “Menu Settings” tab to the right of the text box and select “Provide a menu link”. Don’t forget to name your menu link – this is the title that will appear on your menu bar.
donation form in Drupal 8

Step 8

Click the “Save And Publish” button located at the bottom left of the page, and you’re all set! Your new donation page should look a little something like this:

donate on Drupal 8


We hope you found this guide useful! If you have any questions or comments, feel free to contact .

Wagisha Jha is the content overseer and writer at Donorbox. She is a marketer specializing in early to mid-stage startup growth. In her free time, she can be found writing, caring for animals, or indulging in fine arts. Say hello to her on Linkedin or Instagram.

Join the Nonprofit Movement
Receive our free email updates to get nonprofit tips, resources and freebies sent directly to your inbox.

Join us in serving the nonprofit world!

Take your donor experience to the next level!
Join the 35,000+ nonprofits already raising funds online.
(No setup fee. Unsubscribe anytime)