Support HTML Formatting in Attributes in Collector and Explorer

410
0
04-09-2019 07:28 AM
Status: Open
TimAlbert
New Contributor III

For example if an attribute contains "<a href="http://www.link.com/File Name.pdf" target="_blank">File</a>"

  • In AGOL Web Apps and Maps HTML code is supported in attributes. The above string in a text field is interpreted as Hyperlinked text string "File" that links correctly to the PDF file.  This is exactly what we want.
  • In Explorer for ArcGIS and Collector for ArcGIS HTML code it is not supported in attributes and the above code is interpreted as:"<a href="http://www.link.com/File Name.pdf" target="_blank">File</a>" ignoring the HTML code and not creating a correct link to the file due to the space in the file name.

The only way to get it to work in both AGOL Web Apps and Maps and Explorer for ArcGIS and Collector for ArcGIS is to remove the HTML code and replace any spaces with %20.  This way the link works in both, but the presentation is difficult for users.  If the attribute contains "http://www.link.com/File%20Name.pdf"

  • In AGOL Web Apps and Maps the above string is interpreted as Hyperlinked text string "More info" that links correctly to the PDF file.  But every link is just labelled "More info" giving no opportunity to help the user understand what they are actually linking to.
  • In Explorer for ArcGIS and Collector for ArcGIS  the above string is interpreted as:   "http://www.link.com/File%20Name.pdf" which is useful and works, but for very long links it can end up taking up considerable screen space and it still makes it difficult for the user to understand what they are linking to.

The answer is to enable Explorer for ArcGIS and Collector for ArcGIS to properly interpret HTML code in attributes the same way AGOL Web Apps and Maps support HTML code.

Tags (1)