<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Collector (Aurora) Custom Expressions in Custom URL Scheme Error in ArcGIS Collector Questions</title>
    <link>https://community.esri.com/t5/arcgis-collector-questions/collector-aurora-custom-expressions-in-custom-url/m-p/184149#M3071</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I opened this webmap &lt;A href="https://www.arcgis.com/home/item.html?id=0062ba474d7b467dad3e6f75ffd6a7a8"&gt;https://www.arcgis.com/home/item.html?id=0062ba474d7b467dad3e6f75ffd6a7a8&lt;/A&gt;&lt;/P&gt;&lt;P&gt;In Collector and tapped a polygon for Popup.&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/441853_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you try this map?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Apr 2019 18:57:07 GMT</pubDate>
    <dc:creator>MarkBockenhauer</dc:creator>
    <dc:date>2019-04-11T18:57:07Z</dc:date>
    <item>
      <title>Collector (Aurora) Custom Expressions in Custom URL Scheme Error</title>
      <link>https://community.esri.com/t5/arcgis-collector-questions/collector-aurora-custom-expressions-in-custom-url/m-p/184146#M3068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am writing a campsite collection form that uses Collector and Survey 123. I set this up using Arcmap's custom URL scheme. The user can select a site in collector and two links are included in the pop-up. One says&amp;nbsp;&lt;STRONG&gt;Resurvey Campsite&lt;/STRONG&gt; the other says&amp;nbsp;&lt;STRONG&gt;Survey New Site&lt;/STRONG&gt;. The resurvey link has a rather lengthy URL that attempts to pre-fill many of the fields of survey123. This worked other than the attributes that I had custom expressions to set correctly. The final bit the resurvey link sends the coordinates of the campsite using another custom expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately, the custom expressions would work on my desktop, but when I opened collector on the&amp;nbsp;iPad issued to me, they would not. I posted on this issue and was informed that Collector Aurora would support custom expressions in the URL link. I signed up for the beta and had fair success with the iPad. Some custom expressions still didn't send but coordinates did, and they were the most important one to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now that Collector (Aurora) is officially out, I went out and field tested the two apps to discover that custom expressions are once again not working on my iPad or Samsung Galaxy phone. I am curious is this is a known issue and can be fixed or not, as it is rather&amp;nbsp;pivotal&amp;nbsp;that I can at least send the coordinates of the point to Survey 123. Below is my custom URL scheme for the resurvey link and the steps I went through to test if the custom URL was truly the issue&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;STRONG&gt;Resurvey Campsite Link - (&amp;amp;center={expression/expr2} is the non-functioning part)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;arcgis-survey123://?itemID=1284e4815d4c4995b5809f1a51a83f9f&amp;amp;field:District={expression/expr1}&amp;amp;field:Wilderness_CRD={expression/expr3}&amp;amp;field:Wilderness_BRRD={expression/expr4}&amp;amp;field:Wilderness_CRRD={expression/expr5}&amp;amp;field:New_Site=no&amp;amp;field:Date_Orig_Collection={calOrigYear}&amp;amp;field:Campsite_ID_Number={expression/expr0}&amp;amp;field:Dist_Along_Trail={Dist_Along_Trail}&amp;amp;field:Ground_Dist={Ground_Dist}&amp;amp;field:Tree_Damage={Tree_Damage}&amp;amp;field:Disturbed_Area={Disturbed_Area}&amp;amp;field:Overall_Imp={Overall_Imp}&amp;amp;field:Between_Trail_Stream={Between_Trail_Stream}&amp;amp;field:Water_Source={expression/expr7}&amp;amp;field:Water_Dist_FT={Water_Dist}&amp;amp;field:Social_Trails={Social_Trails}&amp;amp;field:Main_Trail_Designated={Main_Trail_Designated}&amp;amp;field:Trail_Dist_FT={Trail_Dist}&amp;amp;field:Impact_Area={expression/expr6}&amp;amp;field:Litter_Trash={Litter_Trash}&amp;amp;field:Pot_Site_Expan={Pot_Site_Expan}&amp;amp;field:NNIS_Presence={NNIS_Presence}&amp;amp;field:Site_Condi={Site_Condi}&amp;amp;field:Rec_Site_S={expression/expr8}&amp;amp;field:Admin_Structures={Admin_Structures}&amp;amp;center={expression/expr2}&lt;/CODE&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;STRONG&gt;Resurvey Campsite Link Output on Desktop&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;arcgis-survey123://?itemID=1284e4815d4c4995b5809f1a51a83f9f&amp;amp;field:District=CRRD&amp;amp;field:Wilderness_CRD=&amp;amp;field:Wilderness_BRRD=&amp;amp;field:Wilderness_CRRD=MT&amp;amp;field:New_Site=no&amp;amp;field:Date_Orig_Collection=2007&amp;amp;field:Campsite_ID_Number=1&amp;amp;field:Dist_Along_Trail=&amp;amp;field:Ground_Dist=1&amp;amp;field:Tree_Damage=1&amp;amp;field:Disturbed_Area=1&amp;amp;field:Overall_Imp=3&amp;amp;field:Between_Trail_Stream=&amp;amp;field:Water_Source=1&amp;amp;field:Water_Dist_FT=45&amp;amp;field:Social_Trails=%20&amp;amp;field:Main_Trail_Designated=&amp;amp;field:Trail_Dist_FT=-100&amp;amp;field:Impact_Area=3&amp;amp;field:Litter_Trash=%20&amp;amp;field:Pot_Site_Expan=Medium&amp;amp;field:NNIS_Presence=Unknown&amp;amp;field:Site_Condi=Fair&amp;amp;field:Rec_Site_S=&amp;amp;field:Admin_Structures=N%2FA&amp;amp;center=34.745047%2C%20-83.844254&lt;/CODE&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;STRONG&gt;Expression/expr2 - Code to calculate geometry&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;function metersToLatLon(mx, my) { &lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;var originShift = 2.0 * PI * 6378137.0 / 2.0;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;var lon = (mx / originShift) * 180.0;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;var lat = (my / originShift) * 180.0;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;lat = 180.0 / PI * (2.0 * Atan(Exp(lat * PI / 180.0)) - PI / 2.0);&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;return [lat, lon];&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;}&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;var poly = Geometry($feature);&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;var result = '';&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;if (!IsEmpty(poly)) {&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;var latlon = metersToLatLon(poly.x, poly.y);&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;result = Round(latlon[0], 6) + ', ' + Round(latlon[1], 6);&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;}&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;return result;&lt;/CODE&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;H3&gt;&lt;STRONG&gt;Process for Testing Error&lt;/STRONG&gt;&lt;/H3&gt;&lt;UL&gt;&lt;LI&gt;After noticing the error in the field, I retested each device in the office&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/STRONG&gt;&lt;STRONG&gt;Desktop&amp;nbsp;&lt;/STRONG&gt;(Success)&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;STRONG&gt;iPad&lt;/STRONG&gt;&amp;nbsp;(Error) - Newest Collector App&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;STRONG&gt;Android&lt;/STRONG&gt; (Error) - Beta App&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" height="336" src="https://community.esri.com/legacyfs/online/441830_pastedImage_19.png" width="198" /&gt;&lt;IMG class="image-2 jive-image" height="334" src="https://community.esri.com/legacyfs/online/441831_pastedImage_21.png" width="250" /&gt;&lt;IMG class="image-3 jive-image" height="335" src="https://community.esri.com/legacyfs/online/441832_pastedImage_24.jpg" width="163" /&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I then created a third link that only included the code to send the coordinates and tested it on each device&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;Link - &lt;CODE&gt;arcgis-survey123://?itemID=1284e4815d4c4995b5809f1a51a83f9f&amp;amp;center={expression/expr2}&lt;/CODE&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;STRONG&gt;Desktop&lt;/STRONG&gt; (Success)&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;STRONG&gt;iPad&lt;/STRONG&gt; (Error) - Newest Collector App&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;STRONG&gt;Android&lt;/STRONG&gt; (Error) - Beta App&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;IMG class="jive-image image-4" height="338" src="https://community.esri.com/legacyfs/online/441835_pastedImage_29.png" width="199" /&gt;&lt;IMG class="image-5 jive-image" height="331" src="https://community.esri.com/legacyfs/online/441836_pastedImage_30.png" width="248" /&gt;&lt;IMG class="image-6 jive-image" height="327" src="https://community.esri.com/legacyfs/online/441837_pastedImage_31.jpg" width="159" /&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Finally, I created one more link that sent a fixed coordinates instead of using the custom expression&lt;/LI&gt;&lt;/UL&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;Link -&amp;nbsp;&lt;CODE&gt;arcgis-survey123://?itemID=1284e4815d4c4995b5809f1a51a83f9f&amp;amp;center=34.734837%2C%20-83.916739&lt;/CODE&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Desktop&lt;/STRONG&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;(Success)&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;iPad&lt;/STRONG&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;(Success) - Newest Collector App&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Android&lt;/STRONG&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;(Success) - Beta App&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-7 jive-image" height="336" src="https://community.esri.com/legacyfs/online/441838_pastedImage_34.png" width="198" /&gt;&lt;IMG class="jive-image image-8" height="337" src="https://community.esri.com/legacyfs/online/441839_pastedImage_35.png" width="253" /&gt;&lt;IMG class="image-9 jive-image" height="335" src="https://community.esri.com/legacyfs/online/441840_pastedImage_36.jpg" width="163" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for anyone who has made it this far, I would really appreciate any help on resolving this bug as I'm super excited about using Collector and Survey 123. Good work!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Apr 2019 14:44:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-collector-questions/collector-aurora-custom-expressions-in-custom-url/m-p/184146#M3068</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2019-04-11T14:44:24Z</dc:date>
    </item>
    <item>
      <title>Re: Collector (Aurora) Custom Expressions in Custom URL Scheme Error</title>
      <link>https://community.esri.com/t5/arcgis-collector-questions/collector-aurora-custom-expressions-in-custom-url/m-p/184147#M3069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried the following with a map in Collector (IOS) and it passed the coordinate via an expression to Survey123&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var polyx = text(centroid($feature).x);&lt;BR /&gt;var polyy = text(centroid($feature).y);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;function metersToLatLon(mx, my) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;var originShift = 2.0 * PI * 6378137.0 / 2.0;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;var lon = (mx / originShift) * 180.0;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;var lat = (my / originShift) * 180.0;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;lat = 180.0 / PI * (2.0 * Atan(Exp(lat * PI / 180.0)) - PI / 2.0);&lt;BR /&gt; return [lat, lon];&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var latlon = "";&lt;BR /&gt;var result = "";&lt;BR /&gt; var latlon = metersToLatLon(polyx, polyy);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;result = Round(latlon[0], 6) + ', ' + Round(latlon[1], 6);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;return result;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the link&lt;/P&gt;&lt;P&gt;arcgis-survey123:///?itemID=7e7dd26a96db4338bcdae969d9d05398&amp;amp;center={expression/expr0}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Apr 2019 17:04:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-collector-questions/collector-aurora-custom-expressions-in-custom-url/m-p/184147#M3069</guid>
      <dc:creator>MarkBockenhauer</dc:creator>
      <dc:date>2019-04-11T17:04:38Z</dc:date>
    </item>
    <item>
      <title>Re: Collector (Aurora) Custom Expressions in Custom URL Scheme Error</title>
      <link>https://community.esri.com/t5/arcgis-collector-questions/collector-aurora-custom-expressions-in-custom-url/m-p/184148#M3070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the response. I tried your code in place of mine and had the exact same result as mine. It works on my desktop (windows 10), but not on my iPad or android phone. I used the link you provided (and was thankfully able to open your water leak report survey) and also had the exact same problem. The coordinates were passed just fine on my desktop, but did not work on my iPad or Android.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you say it worked for you in IOS, where you using a mobile device or a desktop?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Apr 2019 18:37:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-collector-questions/collector-aurora-custom-expressions-in-custom-url/m-p/184148#M3070</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2019-04-11T18:37:43Z</dc:date>
    </item>
    <item>
      <title>Re: Collector (Aurora) Custom Expressions in Custom URL Scheme Error</title>
      <link>https://community.esri.com/t5/arcgis-collector-questions/collector-aurora-custom-expressions-in-custom-url/m-p/184149#M3071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I opened this webmap &lt;A href="https://www.arcgis.com/home/item.html?id=0062ba474d7b467dad3e6f75ffd6a7a8"&gt;https://www.arcgis.com/home/item.html?id=0062ba474d7b467dad3e6f75ffd6a7a8&lt;/A&gt;&lt;/P&gt;&lt;P&gt;In Collector and tapped a polygon for Popup.&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/441853_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you try this map?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Apr 2019 18:57:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-collector-questions/collector-aurora-custom-expressions-in-custom-url/m-p/184149#M3071</guid>
      <dc:creator>MarkBockenhauer</dc:creator>
      <dc:date>2019-04-11T18:57:07Z</dc:date>
    </item>
    <item>
      <title>Re: Collector (Aurora) Custom Expressions in Custom URL Scheme Error</title>
      <link>https://community.esri.com/t5/arcgis-collector-questions/collector-aurora-custom-expressions-in-custom-url/m-p/184150#M3072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Further update, I realized when I say it is working in desktop that I was opening that from the arcmap online map that I've used to design the app.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I opened the actual collector app on my windows computer and it failed to send the coordinates to survey123 as well. This isn't too surprising though as this is still the older version of collector and not aurora (I'm fairly certain).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Apr 2019 19:15:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-collector-questions/collector-aurora-custom-expressions-in-custom-url/m-p/184150#M3072</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2019-04-11T19:15:19Z</dc:date>
    </item>
    <item>
      <title>Re: Collector (Aurora) Custom Expressions in Custom URL Scheme Error</title>
      <link>https://community.esri.com/t5/arcgis-collector-questions/collector-aurora-custom-expressions-in-custom-url/m-p/184151#M3073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Definitely need to use New Collector for this.&amp;nbsp; Were you able to try the map I referenced in Collector on IOS?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Apr 2019 19:24:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-collector-questions/collector-aurora-custom-expressions-in-custom-url/m-p/184151#M3073</guid>
      <dc:creator>MarkBockenhauer</dc:creator>
      <dc:date>2019-04-11T19:24:13Z</dc:date>
    </item>
    <item>
      <title>Re: Collector (Aurora) Custom Expressions in Custom URL Scheme Error</title>
      <link>https://community.esri.com/t5/arcgis-collector-questions/collector-aurora-custom-expressions-in-custom-url/m-p/184152#M3074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was able to try your map, both in Arcmap Online and on my iPad. It worked perfectly both in displaying the coordinates and the link to survey123. I then mimicked your design and added the geometry expression to my pop-up. This finally found the actual issue! Below is the screenshot of Collector on the iPad. The section that says&amp;nbsp;&lt;STRONG&gt;Coordinates:&amp;nbsp;&lt;/STRONG&gt; is where I have my custom expression which as you can see is outputting 0.000312, -0.000754. This is why my survey123 is opening at 0, 0.&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" height="1029" src="https://community.esri.com/legacyfs/online/441896_pastedImage_1.png" width="772" /&gt;&lt;/P&gt;&lt;P&gt;The only difference between our maps that I could immediately think of was that mine is prepared for offline use. So I made a copy of my map and didn't have it set up for offline mode. I then opened it on the iPad. It works perfectly! As you can see below, the coordinates are reported perfectly (and the Resurvey Campsite link sent the correct coordinates to Survey123. This clearly shows that the map being in offline mode is somehow affecting the custom expression, but I'm not sure yet how. When I'm back at work tomorrow I plan to test the other custom expressions to see if they are changing at all between online and offline mode. Thank you so much Mark! I have been so frustrated by this and your help has gotten me to the actual problem finally!&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/441897_pastedImage_2.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Apr 2019 20:22:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-collector-questions/collector-aurora-custom-expressions-in-custom-url/m-p/184152#M3074</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2019-04-11T20:22:21Z</dc:date>
    </item>
    <item>
      <title>Re: Collector (Aurora) Custom Expressions in Custom URL Scheme Error</title>
      <link>https://community.esri.com/t5/arcgis-collector-questions/collector-aurora-custom-expressions-in-custom-url/m-p/184153#M3075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So I have got it working now!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Long story short in online mode the code&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;CODE&gt;&amp;nbsp;text(centroid($feature).x);&lt;/CODE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;outputs&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;CODE&gt;-9331888.963170711&lt;/CODE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;This then needs to be converted to longitude to be sent to Survey123.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In offline mode though, the exact same code&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;CODE&gt;&amp;nbsp;text(centroid($feature).x);&lt;/CODE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;outputs&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;CODE&gt;-83.829785&lt;/CODE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;This is already in longitude and does not need to be converted to be sent to Survey123. Since the conversion was still being run though, Survey123 was being sent something that&amp;nbsp;is approximately 0. I have no idea why this change happens, but I made a small edit to Mark's geometry code that checks if the absolute value of&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;var polyx = text(centroid($feature).x);&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;is greater than 10,000. If it is, then it runs the conversion, if it isn't then it doesn't. This means the custom expression is now working in the Arcmap Online map and on the Collector Aurora (I have tested it on my iPad). Such a simple fix that was&amp;nbsp;ridiculously frustrating to find! Here is the full code for anyone else who runs into weird issue.&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;var polyx = text(centroid($feature).x);&lt;BR /&gt;var polyy = text(centroid($feature).y);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;function metersToLatLon(mx, my) {&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;var originShift = 2.0 * PI * 6378137.0 / 2.0;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;var lon = (mx / originShift) * 180.0;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;var lat = (my / originShift) * 180.0;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;lat = 180.0 / PI * (2.0 * Atan(Exp(lat * PI / 180.0)) - PI / 2.0);&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;return [lat, lon];&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var latlon = "";&lt;BR /&gt;var result = "";&lt;BR /&gt;var latlon = [];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if (Abs(polyx) &amp;gt; 10000) {&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;latlon = metersToLatLon(polyx, polyy);&lt;BR /&gt;}&lt;BR /&gt;else {&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;latlon = [Number(polyy), Number(polyx)]&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;result = Round(latlon[0], 6) + ', ' + Round(latlon[1], 6);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;return result;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Apr 2019 16:03:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-collector-questions/collector-aurora-custom-expressions-in-custom-url/m-p/184153#M3075</guid>
      <dc:creator>WarrenCarver1</dc:creator>
      <dc:date>2019-04-12T16:03:33Z</dc:date>
    </item>
    <item>
      <title>Re: Collector (Aurora) Custom Expressions in Custom URL Scheme Error</title>
      <link>https://community.esri.com/t5/arcgis-collector-questions/collector-aurora-custom-expressions-in-custom-url/m-p/184154#M3076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Warren, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How are you taking the map offline?&lt;/P&gt;&lt;P&gt;I used a Map Area (pre-planned) and did not reproduce your experience (it worked as expected), did you use Collector to take the map offline (Adhoc)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will be sharing this experience with the team.&amp;nbsp; There are plans on the Arcade side to allow for specifying the coordinate system of the coordinates, but until that work is completed and delivered, this is really good to know.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Apr 2019 16:35:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-collector-questions/collector-aurora-custom-expressions-in-custom-url/m-p/184154#M3076</guid>
      <dc:creator>MarkBockenhauer</dc:creator>
      <dc:date>2019-04-12T16:35:39Z</dc:date>
    </item>
    <item>
      <title>Re: Collector (Aurora) Custom Expressions in Custom URL Scheme Error</title>
      <link>https://community.esri.com/t5/arcgis-collector-questions/collector-aurora-custom-expressions-in-custom-url/m-p/184155#M3077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mark,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As the collection is being done in Forest Service Wilderness areas, offline mode was a necessity. Under the map settings I have offline mode enabled and have defined 12 offline areas. Below is a screenshot of my specific maps settings. I want to make sure I'm answering your question correctly as this is the only way I thought you could use a map offline.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another difference I can think of is that the data I'm accessing (the point feature layer) is the output feature layer for my Survey. Not sure if that makes sense, so my survey&amp;nbsp;&lt;STRONG&gt;R8 Wilderness Campsite Survey&lt;/STRONG&gt; outputs data to the feature layer (hosted)&amp;nbsp;&lt;STRONG&gt;R8 Wilderness Campsite Survey&lt;/STRONG&gt;. This layer is in the Online Map titled&amp;nbsp;&lt;STRONG&gt;AT/Wilderness Campsite Inventory&lt;/STRONG&gt; that is set to Offline Mode Enabled for Collector. I have then created a view layer of&amp;nbsp;&lt;STRONG&gt;R8 Wilderness Campsite Survey&lt;/STRONG&gt; that filters the data so that only select sites are displayed. This view layer of the survey layer is the specific feature layer (sorry for saying layer so much there), that I am using the custom expression with and that this effect occurred.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finally, I formatted all of our old campsite data to match the format of the&amp;nbsp;&lt;STRONG&gt;R8 Wilderness Campsite Survey&lt;/STRONG&gt; feature layer and uploaded it into the layer using&amp;nbsp;&lt;STRONG&gt;Update Data &amp;gt; Append Data to Layer&lt;/STRONG&gt;. These are all the things I've done that I can think of that might impact my map behaving differently to what&amp;nbsp;is normally expected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If any of that blathering doesn't make sense or further info would be helpful, please let me know! Again, thank you for the help!&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/441954_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Apr 2019 17:19:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-collector-questions/collector-aurora-custom-expressions-in-custom-url/m-p/184155#M3077</guid>
      <dc:creator>WarrenCarver1</dc:creator>
      <dc:date>2019-04-12T17:19:35Z</dc:date>
    </item>
    <item>
      <title>Re: Collector (Aurora) Custom Expressions in Custom URL Scheme Error</title>
      <link>https://community.esri.com/t5/arcgis-collector-questions/collector-aurora-custom-expressions-in-custom-url/m-p/184156#M3078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your write up.&amp;nbsp; In a different context (ArcGIS Pro) I have noticed that in some instances the geometry function will return values in the coordinate system of the source data, while in others it returns values in the coordinate system of the map.&amp;nbsp; I mention this because your result difference&amp;nbsp; &lt;CODE&gt;-9331888.963170711&lt;/CODE&gt; vs. &lt;CODE&gt;-83.829785&lt;/CODE&gt;&amp;nbsp; Is what I have seen while using a similar expression in ArcGIS Pro - Labeling vs. Popup vs. Calculation - same expression yields different results.&amp;nbsp; It would appear that there is something in the webmap use case that triggers similar inconsistencies.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Apr 2019 18:54:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-collector-questions/collector-aurora-custom-expressions-in-custom-url/m-p/184156#M3078</guid>
      <dc:creator>MarkBockenhauer</dc:creator>
      <dc:date>2019-04-12T18:54:29Z</dc:date>
    </item>
    <item>
      <title>Re: Collector (Aurora) Custom Expressions in Custom URL Scheme Error</title>
      <link>https://community.esri.com/t5/arcgis-collector-questions/collector-aurora-custom-expressions-in-custom-url/m-p/1296705#M13774</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/2733"&gt;@MarkBockenhauer&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/16421"&gt;@DougBrowning&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/1213"&gt;@JamesTedrick&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/2929"&gt;@IsmaelChivite&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All:&lt;/P&gt;&lt;P&gt;I have been experiencing the same issues described in this thread: trying to create an attribute expression that calculates lat/long coordinates from a hosted feature layer, then integrate Field Maps with Survey123 to open a form and have the geopoint plot the submitted survey on top of the feature using the result of the attribute expression using a custom URL via the custom URL popup (&amp;amp;center=).&lt;/P&gt;&lt;P&gt;I have been using the "&lt;STRONG&gt;Expression/expr2 - Code to calculate geometry"&amp;nbsp;&lt;/STRONG&gt;formula called out in this post (and a multitude of others on the community page) and it was correctly calculating the coordinates in ArcGIS Online Web Viewer Classic, but then when we tested this functionality in the field, the point was not mapping.&lt;/P&gt;&lt;P&gt;I found that the original formula in the "&lt;STRONG&gt;Expression/expr2 - Code to calculate geometry"&amp;nbsp;&lt;/STRONG&gt;results in an&amp;nbsp;&lt;EM&gt;Array&lt;/EM&gt; data type, with associated brackets. These brackets do not show up in ArcGIS Online, but when you view the popup in Field Maps, you can see the brackets. So because of this, i tested further and in the original function, i removed the brackets in the result line, which worked but was not perfect. It was not perfect because the coordinate results ended up being truncated to 2 decimals, and even though the submitted form was executing, the point was being plotted hundred of feet away.&lt;/P&gt;&lt;P&gt;After 10 hours of testing and researching these threads (which by the way, all of the contributions are EXPONENTIALLY HELPFUL AND I AM SO GRATEFUL OF YOUR KNOWLEDGE) i was able to find the CORRECT SOLUTION:&lt;/P&gt;&lt;P&gt;1.) Create an attribute expression for latitude:&lt;/P&gt;&lt;P&gt;var lat;&lt;BR /&gt;var originShift = 2.0 * PI * 6378137.0 / 2.0;&lt;/P&gt;&lt;P&gt;lat = number(Geometry($feature).y / originShift) * 180.0;&lt;BR /&gt;lat = 180.0 / PI * (2.0 * Atan( Exp( lat * PI / 180.0)) - PI / 2.0);&lt;BR /&gt;return lat;&lt;/P&gt;&lt;P&gt;2.) Create an attribute expression for longitude:&lt;/P&gt;&lt;P&gt;var lon;&lt;BR /&gt;var originShift = 2.0 * PI * 6378137.0 / 2.0;&lt;/P&gt;&lt;P&gt;lon = number(Geometry($feature).x / originShift) * 180.0;&lt;BR /&gt;return lon;&lt;/P&gt;&lt;P&gt;3.) Because of the "number" identifier, In ArcGIS Online Web Map Viewer Classic go to Configure Popups, make sure your pop up display is custom, then the important step is to click &lt;STRONG&gt;Configure Attributes&lt;/STRONG&gt;. Navigate to the newly created expressions and expand the decimal places to a minimum of 5.&lt;/P&gt;&lt;P&gt;4.) Lastly, in the custom URL make the "&amp;amp;center={expression/expr3},{expression/expr4}&amp;nbsp;&lt;EM&gt;where expr 3 is Lat and expr 4 is Long.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;I have been testing since i discovered this and it has been running smoothly. Happy Mapping!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jun 2023 15:12:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-collector-questions/collector-aurora-custom-expressions-in-custom-url/m-p/1296705#M13774</guid>
      <dc:creator>JoshConrad1</dc:creator>
      <dc:date>2023-06-07T15:12:52Z</dc:date>
    </item>
    <item>
      <title>Re: Collector (Aurora) Custom Expressions in Custom URL Scheme Error</title>
      <link>https://community.esri.com/t5/arcgis-collector-questions/collector-aurora-custom-expressions-in-custom-url/m-p/1596579#M13845</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;the CORRECT SOLUTION:&lt;P&gt;1.) Create an attribute expression for latitude:&lt;/P&gt;&lt;P&gt;var lat;&lt;BR /&gt;var originShift = 2.0 * PI * 6378137.0 / 2.0;&lt;/P&gt;&lt;P&gt;lat = number(Geometry($feature).y / originShift) * 180.0;&lt;BR /&gt;lat = 180.0 / PI * (2.0 * Atan( Exp( lat * PI / 180.0)) - PI / 2.0);&lt;BR /&gt;return lat;&lt;/P&gt;&lt;P&gt;2.) Create an attribute expression for longitude:&lt;/P&gt;&lt;P&gt;var lon;&lt;BR /&gt;var originShift = 2.0 * PI * 6378137.0 / 2.0;&lt;/P&gt;&lt;P&gt;lon = number(Geometry($feature).x / originShift) * 180.0;&lt;BR /&gt;return lon;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I got this working in FieldMaps.&lt;BR /&gt;THANK YOU!&lt;/P&gt;</description>
      <pubDate>Tue, 18 Mar 2025 14:43:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-collector-questions/collector-aurora-custom-expressions-in-custom-url/m-p/1596579#M13845</guid>
      <dc:creator>JeffLegato1</dc:creator>
      <dc:date>2025-03-18T14:43:15Z</dc:date>
    </item>
  </channel>
</rss>

