Gravity Forms Geo Conditional Fields

Gravity Forms Geo Conditional Fields

The Gravity Forms Geo Conditional Fields plugins creates an additional 2 hidden field types that you can use to determine what country and what continent the user filling out your form is from.


  • Show/Hide fields based on users geographical location.
  • Send customised notifications to users and admins based on users geographical.
  • Use notification routing to email different users and admins based on users geographical location.
  • Gain valuable insight into where your users reside.
  • Trigger Gravity Form feeds (such as PayPal, MailChimp) based on users geographical location. Example: subscribe user to a certain mailing list or trigger a certain payment gateway.
  • Access to current visitor’s geographical location using included php function geo_fields_query_ip($ip).
  • Automatic monthly updates to the GeoLite2 information database.
  • Custom merge tags for geo country and geo continent information.

The plugin will determine the users geographical location based on their IP address which is a unique identifier of the user completing your form. It will perform a lookup using the MaxMind GeoLite2 database to find a match. The plugin will also ensure this database is automatically downloaded on a monthly basis to ensure it stays up to date and current.

Getting Started

It’s simple. Just install and activate the plugin and you’re good to go. All you need to do is add a Geo Conditional (country or continent) field into your form and then save it. The plugin will immediately start collecting data the next time your form is submitted.

Check out the latest tutorial on my blog: Use Gravity Form Geo Conditional Field for Custom Feed Processing


You must have Gravity Forms 1.9.x or higher installed and activated on your WordPress site.

You must have the WP Cron system enabled so regular updates can be downloaded from MaxMind. Updates will be downloaded from MaxMind so long as the database remains open and free to download.


This product includes GeoLite2 data created by MaxMind, available from The accuracy of this plugin is subject to the accuracy of the GeoLite2 database provided by MaxMind.

You are welcome to email if you require support or have any questions/comments.

Please check my website out

Change Log

Version 2.0.0

  • Major refactor for better compatibility with newer versions of Gravity Forms. NOTE: This update requires Gravity Forms 1.9.x in order to run.
  • CHANGED: Converted field to conform to GF_Field model.
  • CHANGED: Raw value original was ‘Country/Continent [code]’. Raw value is now returned as just ‘code’. This is only applicable for developers who may be extending the plugin.

Version 1.27

  • FIXED: Bug which would cause the plugin to not initialize when WordPress was installed in a directory other than default.

Version 1.26

  • FIXED: Localisation namespace inconsistencies

Version 1.25

  • FIXED: Fixed some Undefined index notices.

Version 1.24

  • FIXED: PHP5.3 compatibility – created a skeleton for JsonSerializable interface for MaxMind GeoIp

Version 1.21

  • ADDED: Support for newer style feed conditional logic.
  • INFO: Support of older style feeds with merge tags.

Version 1.2

  • ADDED: Merge Tag {geo_country} – AU/US/IL etc..
  • ADDED: Merge Tag {geo_country_display} – Australia, United States, Ireland etc..
  • ADDED: Merge Tag {geo_continent} – NA/SA etc..
  • ADDED: Merge Tag {geo_continent_display} – North America, South America etc…
  • ADDED: Ability to use custom merge tags in hidden field default values for feed conditional logic (such as PayPal), and notification routing (separate from notification conditional logic)
  • FIXED: Incorrectly changing field display values using gform_get_input_value instead of correct filters.

Version 1.01

  • FIXED: Oceania was regarded as Australia which meant Continent conditional did not work.

Version 1.0

  • Initial Release.