Preselecting a country in the form

Back to the homepage

Preselecting a country in the form

By supplementing the embedded code for the donation form on your website, you can preselect the donor's country in the donation form.

For example, in order to display "United Kingdom" in the form by default, the string "country=GB&" must be placed in the appropriate place of the embedded code.

The country code ("GB" in this example) must be written in the universal two-letter code (ISO-3166 Alpha2). You will find an overview of all country codes here: https://en.wikipedia.org/wiki/ISO_3166-1 

The revised embedded code in this example would look like this:

<script type="text/javascript" src="https://secure.fundraisingbox.com/app/paymentJS?country=GB&hash=XXXX"></script>

Please note:
This is just a sample code. Please refer to the specific embedding code in your FundraisingBox or on your website.

Export to PDF