Skip To Content

Integrate with other apps

Survey123 for ArcGIS is capable of integrating with other apps using a custom URL scheme. A URL scheme can be used in a web browser to open apps on your desktop or device, or from within another app. ArcGIS apps that can be opened with a URL scheme include Survey123, Collector for ArcGIS, and Navigator for ArcGIS.

To help you understand the structure of the URL, the following sections describe how to construct a URL that opens Survey123 from a web browser and how to open Navigator from within Survey123.

Link to Survey123 from other apps

You can create a URL to open the Survey123 field or web app that can be embedded into your own native or web app. The same URL can also be entered into a web browser for testing.

  1. Type arcgis-survey123:// into your browser. This automatically opens the Survey123 field app (or prompts you to do so).
  2. You can also add a unique reference to a survey and add it to the URL. First you must identify the item ID of the survey you want to open. This is the string of characters that ArcGIS Online uses to uniquely identify your survey and can be found in the URL of your form item in ArcGIS Online. For example, if your form's URL is https://exampleurl.maps.arcgis.com/home/item.html?id=36ff9e8c13e042a58cfce4ad87f55d19, your form's item ID is 36ff9e8c13e042a58cfce4ad87f55d19.
  3. To include your survey in the URL you're constructing, add ?itemID= and your form's item ID to the URL.
    Your URL should look similar to the following:

    arcgis-survey123://?itemID=36ff9e8c13e042a58cfce4ad87f55d19

    If you test your URL, it should now open the Survey123 field app and immediately open your survey.

    Note:

    The survey needs to be downloaded to your device before it can be opened.

  4. Optionally, you can include some predetermined answers to questions. To do this, the URL needs to include a reference to the field using the name assigned to it in the XLSForm (not its label). For example, to populate a field called Surname, type &field:Surname=and the value you want to enter; the & acts as a parameter separator, while field: refers to the question name to be populated.
    Your URL should look similar to the following:

    arcgis-survey123://?itemID=36ff9e8c13e042a58cfce4ad87f55d19&field:surname=Klauser

    The URL will now open the Survey123 field app and your survey, and fill the given question with the answer you defined. You can populate multiple questions in the one survey URL. Field names are case sensitive.

  5. Optionally, you can add coordinates to the URL, defining a location for a geopoint question in the survey. To do this, type &center=, and then type the coordinates. Type the latitude and then longitude coordinates in decimal degrees, separated by a single comma.

Your final URL should look similar to the following:

arcgis-survey123://?itemID=36ff9e8c13e042a58cfce4ad87f55d19&field:surname=Klauser&center=37.8199,-122.4783

This complete URL will now open the Survey123 field app and your chosen survey, populate a text question, and provide a new default location for your geopoint question.

Contents of fields can also be passed to Survey123 from a pop-up in an ArcGIS web map, allowing for integration with any Esri apps that make use of pop-ups in a web map. This capability can be used to populate a field in Survey123 with the contents of a feature attribute, rather than a set value, by providing the name of the attribute enclosed in curly brackets. To do this, select Configure Pop-up for an existing layer in your web map. In the display drop-down menu, select a custom attribute display, and then click Configure and insert a link to your survey.

Set the link for the URL scheme in the custom attribute

This example URL would populate the Surname field with the contents of the selected feature's name attribute rather than a set value.

arcgis-survey123://?itemID=36ff9e8c13e042a58cfce4ad87f55d19&field:surname={name}

Note:

There is currently a bug with the Survey123 URL scheme where values can only be passed to select one or select multiple questions if the name and label of the choice in a choice list are identical. This is intended to be fixed in a future release.

Pass parameters to Survey123 web app

The Survey123 web app can accept parameters in the same format as the field app. The only difference is that you must use a question mark to separate the item ID of the survey from the first parameter, rather than an ampersand (ampersands are still used to separate parameters). The following example URL passes the surname and coordinate parameters to a survey in the Survey123 web app.

https://survey123.arcgis.com/share/36ff9e8c13e042a58cfce4ad87f55d19?field:surname=Klauser&center=37.8199,-122.4783

Currently, passing URL parameters to the web app is only supported for surveys built in Survey123 Connect. Surveys created in the web app cannot support parameters being passed through the web app's URL.

Pass parameters to Survey123 Connect

The URL scheme used by Survey123 Connect is arcgis-survey123connect://, which will allow the user to automatically download and open a survey, ready for editing.

This URL scheme accepts different parameters than the field app or web app, however, instead accepting the form's item ID and the URL for the portal that the item is stored on. This example URL opens a specific survey in Survey123 Connect from the ArcGIS Enterprise portal provided, downloading it if it isn't already present.

arcgis-survey123connect://?portalUrl=https://exampleportal.esri.com/arcgis&itemID=36ff9e8c13e042a58cfce4ad87f55d19

If your survey is saved in ArcGIS Online, you still need to provide the portal URL for ArcGIS Online.

arcgis-survey123connect://?portalUrl=https://www.arcgis.com&itemID=36ff9e8c13e042a58cfce4ad87f55d19

Note:

Currently, these URL parameters can only be used to open forms that you are the owner of. It can't be used to open surveys that you have access to, but did not create.

Link to other apps from Survey123

You can create a URL that opens another app and insert it into your survey. These apps can also accept custom parameters in their URLs in the same way as Survey123.

To start, you need to add a note question to your survey with a label that contains the URL.

Note:

In iOS 9 and later, URL schemes need to be added to a whitelist, or list of approved schemes, within the app. The URL schemes that are whitelisted in Survey123 are as follows:

  • arcgis-appstudio-player
  • arcgis-collector
  • arcgis-trek2there
  • arcgis-explorer
  • arcgis-navigator
  • arcgis-workforce
  • comgooglemaps
  • foreflightmobile
  • waze
  • spike-partner

Navigator URL scheme

  1. To open Navigator from a survey, enter the following text as the label of a note question:

    <a href="arcgis-navigator://">Launch Navigator</a>

  2. Navigator can accept stops as custom parameters to allow you to send a specific destination to the app. To open Navigator with a stop designated by the given coordinates, see the following example:

    <a href="arcgis-navigator://?stop=34.057419, -117.182646">Launch Navigator</a>

  3. Optionally, you can add a parameter to return to the Survey123 field app once navigation is complete. This parameter is referred to as a callback. The following example includes a callback to the Survey123 field app:

    <a href="arcgis-navigator://?stop=34.057419, -117.182646&callbackprompt=Survey123&callback=arcgis-survey123://">Launch Navigator</a>

For more information, see Navigator custom URL scheme.

Collector URL scheme

  1. To open Collector from a survey to a specific map, provide the item ID in the link, as in this example:

    <a href="arcgis-collector://?itemID=35b1ccecf226485ea7d593f100996b49">Launch Collector</a>

  2. Collector can accept center as a custom parameter to provide latitude and longitude coordinates for a location to center the map on. To open Collector with a specific center location, see the following example:

    <a href="arcgis-collector://?itemID=35b1ccecf226485ea7d593f100996b49&center=34.0547155,-117.1961714">Launch Collector</a>

For more information, see Collector custom URL scheme.

Explorer URL scheme

  1. To open Explorer from a survey to a specific map, provide the item ID in the link, as in this example:

    <a href="arcgis-explorer://?itemID=35b1ccecf226485ea7d593f100996b49">Launch Explorer</a>

  2. Explorer can accept center as a custom parameter to provide latitude and longitude coordinates for a location to center the map on. To open Explorer with a specific center location, see the following example:

    <a href="arcgis-explorer://?itemID=35b1ccecf226485ea7d593f100996b49&center=34.0547155,-117.1961714">Launch Explorer</a>

For more information, see Explorer custom URL scheme.

Note:

Currently, the Explorer URL scheme is only capable of accepting one custom parameter at a time.