Select to view content in your preferred language

Support for URL parameters used in Survey123 to create dynamic forms

859
2
Jump to solution
11-02-2021 03:27 PM
AnnetteFarrell
Emerging Contributor

 

Hi,

We are using Survey123 for field inspections and we are investigating if we can move it to Field Maps. The form is complex and we use Survey123 parameters to dynamically pass data into the survey. In this way the form is dynamic and input is based on the properties of the item to survey. See below for some sample URLs.  

Is passing parameters in this way supported in Field Maps?  I don't see any options for field parameters listed here: https://doc.arcgis.com/en/field-maps/android/help/deploy-your-map.htm#ESRI_SECTION1_F7DE2402BA8743E5...

If it is not supported are there plans to support it in the future?

Sample Survey123 URLs:

Screenshot 2021-11-02 at 23.22.42.pngScreenshot 2021-11-02 at 23.22.50.png

Tags (3)
0 Kudos
1 Solution

Accepted Solutions
by Anonymous User
Not applicable

It looks like you are passing in attributes for the field. This is supported in Field Maps using the featureAttributes parameter. There are two example URLs about halfway down doc page you linked to:

Without URL encoding—https://fieldmaps.arcgis.app?referenceContext=addFeature&itemID=3ac4145c1ac44aea86e9ed42e00fbb0d&geo...
With URL encoding of form entries—https://fieldmaps.arcgis.app?referenceContext=addFeature&itemID=3ac4145c1ac44aea86e9ed42e00fbb0d&geo...

These will initiate collecting a new feature and populate the values in the form which could be used to conditionally hide/show other fields. Is that what you are hoping to achieve?

View solution in original post

0 Kudos
2 Replies
by Anonymous User
Not applicable

It looks like you are passing in attributes for the field. This is supported in Field Maps using the featureAttributes parameter. There are two example URLs about halfway down doc page you linked to:

Without URL encoding—https://fieldmaps.arcgis.app?referenceContext=addFeature&itemID=3ac4145c1ac44aea86e9ed42e00fbb0d&geo...
With URL encoding of form entries—https://fieldmaps.arcgis.app?referenceContext=addFeature&itemID=3ac4145c1ac44aea86e9ed42e00fbb0d&geo...

These will initiate collecting a new feature and populate the values in the form which could be used to conditionally hide/show other fields. Is that what you are hoping to achieve?

0 Kudos
AnnetteFarrell
Emerging Contributor

Thanks Aaron.  That's what I was looking for.

0 Kudos