< All Topics

How to Apply Geofence

 Geofencing is a feature that allows you to define a virtual geographic boundary for a specific location, such as a construction site, warehouse, or any other area of interest. By applying geofence restrictions to your forms, you can ensure that the data collected through these forms is submitted from within the designated geofence area. This can be particularly useful for field inspections, site visits, or any other location-specific data collection activities.

Step 1: Create a Data Collection Form or Object Form The first step is to create a form or an object that will serve as the data collection tool for your specific use case. This form should include fields for capturing relevant information, such as inspection details, site conditions, or any other data you need to collect.

Within this form, you’ll need to add two essential widgets:

  1. GPS Widget: This widget captures the user’s geographic location (latitude and longitude) at the time of form submission.
  2. Geofence Widget: This widget allows you to define the geographic boundaries (geofence) for a specific location, such as a construction site or a warehouse. You can set the geofence location by providing the coordinates or by drawing the boundary on a map.

Step 2: Create an Action Form Next, you’ll need to create an action form that will trigger the geofence validation process. This form should include an “Apply Geofence” widget, which will be configured to reference the data collection form or object form created in Step 1.

Within the “Apply Geofence” widget, you’ll have the option to enable geofence restrictions. When enabled, the widget will validate the user’s location (captured by the GPS widget) against the geofence defined in the data collection form or object form.

Step 3: Configure the Geofence Restriction Once you’ve added the “Apply Geofence” widget to your action form, you can configure the geofence restriction settings.

Step 4: Test and Deploy After configuring the geofence restriction, it’s essential to thoroughly test your form and ensure that the geofence validation is working as expected. Test the form from various locations, both inside and outside the defined geofence, to verify the behavior.

Once you’re satisfied with the testing, you can deploy your form and start collecting location-specific data with the added security of geofence restrictions.

Example Use Case:

Let’s consider a scenario where you need to conduct site inspections, and you want to ensure that the inspection data is submitted from within the boundaries of the designated site. In this case, you would create an inspection form with a GPS widget and a geofence widget configured for the specific site. Then, in the action form, you would add the “Apply Geofence” widget, referencing the inspection form and enabling the geofence restriction. This way, inspection data can only be submitted from within the geofence of the selected site, ensuring the accuracy and validity of the location-specific information.

Table of Contents