Html Link Causing Data Errors

560
2
Jump to solution
09-23-2019 05:42 AM
JoshHabel
Occasional Contributor

All,

I am having an issue with a google maps url causing data errors that is prevent editing of the survey data.  The Url that i am using is so the crews editing existing data can launch google map for driving directions.  I originally copied the following expression esri's support page.  FAQ: Is it possible to view a geopoint location from Survey123 Connect for ArcGIS in Google Maps? 

The expression in my survey form.

concat('<a href="https://www.google.com/maps?daddr=',pulldata ("@geopoint", ${Gps_Coord}, "y"), ',' ,pulldata("@geopoint", ${Gps_Coord}, "x"), concat('&amp;ll=">Click to open google maps</a>'))

The issue seems to be the " qoute marks for "https and =">.  This is causing some sort of data error that makes it impossible to edit any of the attributes for the survey.  If i remove the quotes then there is no data error but then the link no longer works in the survey field app.  Has anyone else experienced this issue?  I have esri support looking into it.

Josh

0 Kudos
1 Solution

Accepted Solutions
JamesTedrick
Esri Esteemed Contributor

Hi Josh,

Does the link occur in a note? If so, you can remove the name value from the note; that would prevent the link from being saved to the database. 

View solution in original post

0 Kudos
2 Replies
JamesTedrick
Esri Esteemed Contributor

Hi Josh,

Does the link occur in a note? If so, you can remove the name value from the note; that would prevent the link from being saved to the database. 

0 Kudos
JoshHabel
Occasional Contributor

Hi James,

I removed the note name values and it seems like it works now just fine. I don’t get the data error anymore and the links are working as they should. I’ll continue to do some more testing but I’d say that has fixed it.

Thanks,

Josh

0 Kudos