---
title: "Latitude and Longitude Control"
slug: "latitude-longitude-control"
tags: ["Geolocation", "API"]
updated: 2024-08-19T14:13:17Z
published: 2024-08-19T14:13:17Z
---

> ## Documentation Index
> Fetch the complete documentation index at: https://documentation.decisions.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Latitude and Longitude Control

## Overview

This article demonstrates how to configure the **Latitude and Longitude**control on a Form.

This control utilizes [HTML Geolocation API](https://www.w3schools.com/html/html5_geolocation.asp) to gather latitude and longitude. Open the prior interlink and ensure the browser version to run Decisions supports Geolocation.

Note that this control only gathers coordinates of the **initiating account's device location**. It cannot be used to grab coordinates for a remote location.

---

## Example

Geolocation API only works on secure contexts such as HTTPSIf running Decisions on a non-secure context like HTTP, the control will not function.

To configure a Latitude and Longitude control:

1. [Create a Flow](https://documentation.decisions.com/v9/docs/creating-your-first-flow-2) and use the Show Form control to [create a new Form](https://documentation.decisions.com/v9/docs/create-a-form).
2. Open the Form in the Form Designer.
3. Search for the Latitude and Longitude control in the Toolbox and enter it in the Form's workspace. Add a Button named 'Submit'.
4. Select the control and view its Properties. Provide a Data Name for better organization.
5. Expand the control's **Behavior**tab and set **Visible At Runtime**to True.Visible At Runtime Available Only in Forms; not in Simple FormsToggling this setting to False prevents the end-user from viewing their latitude and longitude coordinates at runtime; however, this information may still be stored for use in later processes and/or Assignments.  
  
The Simple Form version of this control does not contain this setting. By default, Latitude and Longitude controls in Simple Forms are visible at runtime.![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/2024-07-18_10h11_13.png)
6. Save and exit the Form to return to the Flow Designer. Add another Show Form step to create a new Simple Form this time. Connect the first Form to the second.
7. In the Simple Form Designer, add a Button named 'Submit' and a Latitude and Longitude control. Give the control a Data Name.  
![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/2024-07-18_10h15_11.png)
8. Save and close the Simple Form to return back to the Flow Designer.
9. Connect the second Form to the end step. Save the Flow.

### Debug

Debug the Flow and notice the Latitude and Longitude controls populate with data once the Forms appears.
