laptop and a wrench

Error

Arcade expression converts to octothorpe (#) in the pop-up configuration if it is added to a hyperlink.

Última publicación: August 5, 2021 Portal for ArcGIS
Número de ID del error BUG-000141008
EnviadoJune 25, 2021
Última modificaciónFebruary 14, 2025
Relacionado conPortal for ArcGIS
Versión encontrada10.8.1
Sistema operativoWindows OS
Versión de sistema operativoN/A
EstadoAs Designed

Información adicional

This is as-designed. Both ArcGIS Enterprise and ArcGIS Online have HTML sanitization logic in place to clean untrusted elements and strings of HTML. This is to prevent cross-site scripting and protect the system and user. In this case, the HTML href element does not contain a trusted protocol and the resulting link is intentionally sanitized (resulting in a link that does not work). The HTML sanitization logic trusts the "arcgis-survey123" protocol, but in this example, it is not defined explicitly via the HTML string, it is constructed via the underlying arcade expression. Refer to the workaround to revise the arcade expression and href HTML string.

Solución alternativa

The workflow works with the following updates: 1. Update the return statement within the arcade expression to... return UrlEncode(params)+coordinates+callback; 2. Update the pop-up HTML string href to... href="arcgis-survey123://{expression/expr0}&field:esa={esa}"

Pasos para reproducir

ID del error: BUG-000141008

Software:

  • Portal for ArcGIS

Recibir notificaciones cuando cambie el estado de un error

Descargar la aplicación de soporte de Esri

Descubrir más sobre este tema

Obtener ayuda de expertos en ArcGIS

Contactar con el soporte técnico

Descargar la aplicación de soporte de Esri

Ir a opciones de descarga