Skip to main content

Geofence Form Field

This field allows users to draw a boundary on a Google Map and then automatically check whether an address entered in a linked address field is within those boundaries. This can be used in conditional logic for other form fields.

The Geofence field lets you draw a boundary on a map, then checks whether the address someone types is inside it. You can use the answer (true or false) to show or hide other fields, like charging residents and non-residents different application fees.

Prefer to watch?


Add a geofence to your form

  1. Go to Content > Gravity Forms and open your form.

  2. Add a Geofence field and an Address field. You need both.

  1. Click the Geofence field to open its settings.

  2. Under General, click Edit Geofence Area. Allow location access if your browser asks, so the map centers on you (otherwise it starts on Washington, DC).

  3. Click around the map to draw your boundary, then click the first point to close the shape.

  4. Click Save Geofence.

  5. Scroll to Target Address Field and pick your address field.

  6. Optional: check Display Map on Form to show the map to families. It appears wherever the Geofence field sits, so drag the field to move it.

  7. Save the form.

💡 Using Address Autocomplete? The Geofence field works with the Gravity Perks Address Autocomplete add-on too.


Show or hide fields based on the address

  1. Open the field you want to show or hide, like a Resident Application Fee.

  2. Turn on conditional logic and base it on the Geofence field being true (inside) or false (outside).

  3. Save the form and test it with an address inside and one outside your boundary.

Did this answer your question?