form builder elements
What is the Location Widget?
The Location widget is used to capture GPS data of the current geolocation when the element is engaged. The Location widget captures GPS Location Data for Latitude, Longitude, Altitude, Speed (m/s), Horizontal Accuracy(m), Vertical Accuracy (m), and Time.
How do I add the Location widget to my form?
To add the Location widget, please follow the instructions below.
From inside the form builder, click the Date button from the left-hand menu. You'll see it populate the device view.
On the right-hand side, you'll see the element properties. Enter the name of your element (A), and if you like, a description of what information should be entered in the element when collecting (B).
Note that if you check the Based on Label option, it will create a data column based on the Label on the element.
Save your form.
How can I parse location data?
The Location Widget stores its data in variables that are accessible to other form fields. For example, if you want to parse out the Latitude, Longitude, Altitude, Speed, Horizontal Accuracy, or Vertical Accuracy this can be accomplished by using the following variables in your Dynamic Values.
Please note that Android only measures horizontal accuracy, so please use the following Dynamic Value: DataColumnName.accuracy
To parse the location data, please follow the instructions below.
Things you'll need
The data column name of your Location element.
Add a Text element under the Location element.
Test on your device.