Custom javascript in Esri Survey123 - Part 1
So this week I've been playing with the latest beta release of Esri Survey123; and in particular the ability to now call custom javascript functions though the pulldata() function. This new feature allows you to extend Survey123 quite significantly, such as by using functions to calculate new values or for performing data validation. So in this post (and a second post to come shortly) I've outlined a couple of common use cases where I've extended Survey123 using javascript functions to calculate new values. Example 1: Converting Coordinates One of the frequent challenges with using the ArcGIS Online platform within the UK is that by default all location is stored in WGS 1984 Web Mercator (auxiliary sphere) - EPSG:3857, and accessing location information from the spatial objects is returned either this coordinate system or WGS84 latitude / longitude (EPSG:4326); but a lot of organisations in the UK work to British National Grid ( EPSG:27700) . Whilst dropping