Geolocation Fields
Example: When employees conduct site visits, they fill out a form on their iPads describing the site's status. This form has a geolocation field in which they select the Use current location option. After the form is submitted, an integration pulls the geolocation and site data from the business processes database and updates a map with the site location and name. Managers view this map throughout the day to keep track of the sites that have been visited.
Note: Longitude and latitude values will be rounded to a precision of 15 significant digits.
Note: You must use HTTPS to retrieve the current geolocation when you are on iOS 10 Safari and Chrome.
Field settings
To edit a geolocation field
- Select the field on the canvas.
- Under Field label, enter the field label that will appear next to the field on the form. Click the Insert Variables button to include a variable with this text.
- Under Variable, specify a name for the field variable associated with this field. If you do not specify a variable name, Laserfiche will automatically assign the field one based on its label.
- Under Field options, select Required if users must fill in this field before submitting the form. Select Read-only if users should not be allowed to modify this field.
- Under Text above field and Text below field, you can enter any additional text that should appear with the field. Click the Insert Variables button to include a variable with this text.
- Under Default Location, provide a value that will appear in the field by default for Default Latitude and Default Longitude. Click the token button to use a token or to select Use current location. If you select the Use current location option, the field will be populated with the user's geolocation as determined at the time they open the form. Alternatively, if the field is read-only, Use current location will use the geolocation as determined at the time that the form is submitted.
- To configure advanced options, click the Advanced tab.
- Under Tooltip, specify the help text that will appear when users hover over the field. Click the Insert Variables button to include a variable with this text.
- Under CSS class, specify a CSS class to assign this field.
- When you are finished editing the field settings, click Done. Your changes will be saved automatically.
Tip: The read-only setting can be particularly useful with this field if you also set the default value of the field to Use current location. With this configuration, the location coordinates are automatically captured when the form is submitted.
Note: If a required field is hidden with a field rule, it is no longer required. A required field is only required when it appears on the form.
Note: The labels, tooltip, text above, and text below settings support the use of simple HTML markup for formatting purposes.
- Select the field on the canvas and click Edit.
- Under Field label, enter the field label that will appear next to the field on the form. Click the Insert Variables button to include a variable with this text.
- Under Variable, specify a name for the field variable associated with this field. If you do not specify a variable name, Laserfiche will automatically assign the field one based on its label.
- Under Field options, select Required if users must fill in this field before submitting the form. Select Read-only if users should not be allowed to modify this field.
- Under Text above field and Text below field, you can enter any additional text that should appear with the field. Click the Insert Variables button to include a variable with this text.
- Under Default value, provide a value that will appear in the field by default. Click the token button to use a token or to select Use current location. If you select the Use current location option, the field will be populated with the user's geolocation as determined at the time they open the form. Alternatively, if the field is read-only, Use current location will use the geolocation as determined at the time that the form is submitted.
- To configure advanced options, click the Advanced tab.
- Under Tooltip, specify the help text that will appear when users hover over the field. Click the Insert Variables button to include a variable with this text.
- Under CSS class, specify a CSS class to assign this field.
- When you are finished editing the field settings, click Done. Your changes will be saved automatically.
Tip: The read-only setting can be particularly useful with this field if you also set the default value of the field to Use current location. With this configuration, the location coordinates are automatically captured when the form is submitted.
Note: If a required field is hidden with a field rule, it is no longer required. A required field is only required when it appears on the form.