AnsweredAssumed Answered

Survey123 - get first element of a javascript array

Question asked by pnord on Sep 3, 2019
Latest reply on Sep 4, 2019 by pnord

Hi,

 

I succeeded in converting coordinates from WGS84 to a local coord. system using the pulldata @javascript function.

The javascript function I use (from GitHub - proj4js/proj4js ) takes a geopoint and return what seems to be an array of coordinates (348465.3828225266 283140.21524795296 for exemple). I can see it as a string value.

I need to extract X and Y from this array in separate fields but I can't do a pulldata("@geopoint" ... "x") because it is not recognized as a geopoint.

 

How can I extract 1st and 2nd values in decimal fields ?

Thanks

 

Outcomes