laptop and a wrench

Bug

The Survey123 for ArcGIS field app fails to pass values to another survey via a custom URL if the field values contain quotes or ampersand (&).

Last Published: September 8, 2020 ArcGIS Survey123
Bug ID Number BUG-000120041
SubmittedFebruary 13, 2019
Last ModifiedJune 5, 2024
Applies toArcGIS Survey123
Version found3.2
Operating SystemN/A
Operating System VersionN/A
StatusWill Not Be Addressed

Additional Information

This issue is caused by the URL not being encoded correctly; ampersands and other special characters must be percent-encoded (refer to https://tools.ietf.org/html/rfc3986#section-2.1 or https://en.wikipedia.org/wiki/Percent-encoding). There is no function to encode values within the XLSForm specification, and detecting when a link is present automatically is difficult due to the number of ways links can be generated. A workaround is available by using custom JavaScript functions (refer to https://doc.arcgis.com/en/survey123/desktop/create-surveys/pulldatajavascript.htm). The following function will return encoded text: ```javascript function encode(inText) { return (inText == undefined) ? "" : encodeURIComponent(inText); } ```

Steps to Reproduce

Bug ID: BUG-000120041

Software:

  • ArcGIS Survey123

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options