Hello, I have a form that asks users to enter coordinates in Gauss Kruger Zone 7 and then converts them to Lat Long to calculate the geopoint question before saving to the database.
I am using a custom javascript function to transform from Gauss Kruger to Lat Long, and as it uses the proj4 library, I have used webpack to compile a single .js file that i put into the scripts folder (like this https://github.com/EsriPS/survey123-webpack)
This works perfectly in Survey123 connect but not in the web app. When i open the form in the web app and enter the gauss kruger coordinates the lat and long fields don't calculate, they remain empty.
I have checked the known limitations of javascript in survey123 but cant find one related to this error, but was wondering if i missed something.
Does anyone know why it would work in connect and not in the web app? Or have any ideas of what i could do to get it to work?
I am using v3.19 of Connect, below is the jvascript i am using to convert the coordinates
Thanks!