PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Addition of Country to Dropdown

  1. Hi,
    I am using Gravity Forms for a site that allows international user to request information. We are using the default country dropdown to capture the users address, and it was brought to my attention that there is a problem with a couple countries. It appears that there is a option for "Congo", but not for "The Democratic Republic of Congo" and "The Republic of Congo".

    Is there anyway that I can fix this manually, or that I can get a quick update done to fix this?

    Thank you,

    Posted 13 years ago on Thursday September 29, 2011 | Permalink
  2. You would have to edit core code to change the countries. There isn't currently an easy way to do this and we can't push out an update just for this. But we can look at including this update in the final 1.6 release.

    We will add these in the 1.6 release:

    Congo, Republic of the
    Congo, Democratic Republic of the

    They will replace the existing Congo because really there isn't one, it's the two above.

    Posted 13 years ago on Thursday September 29, 2011 | Permalink
  3. I just looked into where these can be added manually if you want to go ahead and add these.

    You need to edit common.php in plugins/gravityforms and search for get_countries which is the function that returns the country list.

    You can then edit what is in that list to implement these changes if you need them before the next 1.6 release.

    Posted 13 years ago on Thursday September 29, 2011 | Permalink
  4. This was a big help. "Aruba" is also missing from the country list (GF 1.6.2), but I was able to add it. It would be great if it could be added to the next update. Thanks!

    Posted 12 years ago on Thursday December 29, 2011 | Permalink
  5. I've noted Aruba and we'll look into adding it in the next release. Some countries like Aruba are omitted from country lists depending on the source as they are constituent countries that are technically under another country (in this case the Netherlands). However, some constituent countries do get listed independently and Aruba can be listed as such.

    Posted 12 years ago on Thursday December 29, 2011 | Permalink

This topic has been resolved and has been closed to new replies.