We have a planning cases Operations Dashboard. On the ArcGIS Online Popup there is a link to the Applicant's Submittal. Most of the planning cases have an associated PDF, but not all.
I would like to validate that a URL has content and does not give a 404 error.
Can this be done in an ArcGIS Online popup with Arcade and/or another method?
Thanks,
Mele
Solved! Go to Solution.
Hello Mele,
Unfortunately there isn't really a way to do this with Arcade language, as this language is primarily used for controlling the way GIS features are rendered and labeled, rather than interacting with hyperlinked content. A list of the current available Arcade functions can be found below.
Arcade Function Index
https://developers.arcgis.com/arcade/function-reference/
There isn't really any available out-of-the-box functionality for validating URLs within an ArcGIS Online popup at this time. For a workflow like this, it may be more worthwhile to explore a workflow that involves exporting the table containing the applicant URLs from your webmap data, and running the URLs through a status checker website like the one linked below.
Bulk URL status code checker:
I hope this information helps!
-TB
Hello Mele,
Unfortunately there isn't really a way to do this with Arcade language, as this language is primarily used for controlling the way GIS features are rendered and labeled, rather than interacting with hyperlinked content. A list of the current available Arcade functions can be found below.
Arcade Function Index
https://developers.arcgis.com/arcade/function-reference/
There isn't really any available out-of-the-box functionality for validating URLs within an ArcGIS Online popup at this time. For a workflow like this, it may be more worthwhile to explore a workflow that involves exporting the table containing the applicant URLs from your webmap data, and running the URLs through a status checker website like the one linked below.
Bulk URL status code checker:
I hope this information helps!
-TB
Tyler,
Thanks for confirming this. I was not able to find any examples, so I see why.
I did use a similar approach as you suggested. I created a .NET program which validates a URL in our Enterprise Geodatabase Feature Class and updates a field if the URL is valid. I am then using that field in Arcade.
Thanks
Mele