I would like to use a statement to tell if I am on the web or native platform. It seems like GetEnvironment() is still not supported in Field Maps, any alternative?
Yes a reliable way to determine context is needed. getenvironment has been available for about 2 years now. kinda telling that this has not been solved after all these years.
//my hack way to try to figure out if we are online or in field mapsvar PointGeometry = Centroid(Geometry($feature));var ArcadeSr = PointGeometry.spatialReference.wkid;var application = ArcadeSrif (ArcadeSr == 102100) {application = 'AGOL online edit'} else if (ArcadeSr == 3857) {application = 'GPS in FieldMaps'}
I would like to show Arcade content (survey123 links) when users access the pop ups in field maps and hide the links in the web app.
Hi @TL2 . Could you tell me more about your workflow? What is the end goal you are hoping to achieve?
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.