<?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: Pass Polygon coordinates to Survey123? in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/pass-polygon-coordinates-to-survey123/m-p/851684#M23699</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If it's passing the coordinates correctly to the geopoint question I would think that they would be showing there in the Survey123 map! Did you confirm that on the geopoint question it was showing roughly the centrepoint of the polygon you linked from? Are you sure the point in the Atlantic isn't an older record?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Aug 2020 11:47:11 GMT</pubDate>
    <dc:creator>JoshuaSharp-Heward</dc:creator>
    <dc:date>2020-08-20T11:47:11Z</dc:date>
    <item>
      <title>Pass Polygon coordinates to Survey123?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/pass-polygon-coordinates-to-survey123/m-p/851679#M23694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have created an ArcGIS Online map that allows you to click on a Feature Layer and the Pop Up allows you to link to Survey123&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/503966_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;Is it possible to pass the coordinates/centroid of the polygon you have selected to pass into Survey123 Data tab so that it appears as geocoded at that location instead of the Atlantic Ocean?&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/503967_pastedImage_2.png" /&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Aug 2020 13:48:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/pass-polygon-coordinates-to-survey123/m-p/851679#M23694</guid>
      <dc:creator>CMcDonald</dc:creator>
      <dc:date>2020-08-19T13:48:30Z</dc:date>
    </item>
    <item>
      <title>Re: Pass Polygon coordinates to Survey123?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/pass-polygon-coordinates-to-survey123/m-p/851681#M23696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I had some success using your solution.&amp;nbsp; The 2 Arcade expressions seem to work OK, example is the first expression&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/504062_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;I then appended my Pop-up URL with&amp;nbsp;&lt;STRONG&gt;?center={expression/expr0},{expression/expr1}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;When opening in Survey123 the behavior is a bit odd as it seems to have appended an entry with &lt;STRONG&gt;?center&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/504063_pastedImage_3.png" /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I perhaps should have said that my pop already contains&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;?field:site_id={SITE_ID}&amp;amp;field:site_name={SITE_NAME}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;appended to the URL so that the Site ID and Site Name pre-populates saving the person doing the survey entering it.&lt;/P&gt;&lt;P&gt;So the end of my URL looks like&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;?field:site_id={SITE_ID}&amp;amp;field:site_name={SITE_NAME}?center={expression/expr0},{expression/expr1}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The red dot on the map in Survey123 Data tab still shows in the Atlantic &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2020 09:20:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/pass-polygon-coordinates-to-survey123/m-p/851681#M23696</guid>
      <dc:creator>CMcDonald</dc:creator>
      <dc:date>2020-08-20T09:20:03Z</dc:date>
    </item>
    <item>
      <title>Re: Pass Polygon coordinates to Survey123?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/pass-polygon-coordinates-to-survey123/m-p/851682#M23697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try adding an &amp;amp; between the&amp;nbsp;{SITE_NAME} and ?center, like you did between the different fields you're populating earlier in the url. Currently it's reading the site_name as "{SITE_NAME}?center"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2020 09:37:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/pass-polygon-coordinates-to-survey123/m-p/851682#M23697</guid>
      <dc:creator>JoshuaSharp-Heward</dc:creator>
      <dc:date>2020-08-20T09:37:07Z</dc:date>
    </item>
    <item>
      <title>Re: Pass Polygon coordinates to Survey123?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/pass-polygon-coordinates-to-survey123/m-p/851683#M23698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes! That is behaving better now &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;How do I get the coordinates captured to appear on the Survey123 map?&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/504064_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;The new record still plots in the Atlantic&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2020 11:36:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/pass-polygon-coordinates-to-survey123/m-p/851683#M23698</guid>
      <dc:creator>CMcDonald</dc:creator>
      <dc:date>2020-08-20T11:36:16Z</dc:date>
    </item>
    <item>
      <title>Re: Pass Polygon coordinates to Survey123?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/pass-polygon-coordinates-to-survey123/m-p/851684#M23699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If it's passing the coordinates correctly to the geopoint question I would think that they would be showing there in the Survey123 map! Did you confirm that on the geopoint question it was showing roughly the centrepoint of the polygon you linked from? Are you sure the point in the Atlantic isn't an older record?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2020 11:47:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/pass-polygon-coordinates-to-survey123/m-p/851684#M23699</guid>
      <dc:creator>JoshuaSharp-Heward</dc:creator>
      <dc:date>2020-08-20T11:47:11Z</dc:date>
    </item>
    <item>
      <title>Re: Pass Polygon coordinates to Survey123?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/pass-polygon-coordinates-to-survey123/m-p/851680#M23695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Disclaimer: sourced the calculations mainly from &lt;A href="https://community.esri.com/thread/199141-arcade-expression-for-geometry-in-arcgis-online-popup" target="_blank"&gt;https://community.esri.com/thread/199141-arcade-expression-for-geometry-in-arcgis-online-popup&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you create two arcade expressions in the popup menu called lat and lon, using these arcade expressions:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; originShift &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;2.0&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt; PI &lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;6378137.0&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;2.0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; lat &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;Centroid&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;$feature&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Y &lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt; originShift&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;180.0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
lat &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;180.0&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt; PI &lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;2.0&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;Atan&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;Exp&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;lat &lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt; PI &lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;180.0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt; PI &lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;2.0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

&lt;SPAN class="keyword token"&gt;return&lt;/SPAN&gt; lat&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; originShift &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;2.0&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt; PI &lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;6378137.0&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;2.0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; lon &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;Centroid&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;$feature&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;X &lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt; originShift&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;180.0&lt;/SPAN&gt;

&lt;SPAN class="keyword token"&gt;return&lt;/SPAN&gt; lon&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;And then at the end of the link to the survey in your popup add ?center={expression/expr0},{expression/expr1} where the first expression is the latitude and the second expression is the longitude. These expressions will calculate the long and lat in wgs84 (for using ?center= coords need to be in wgs84) of the polygon you click on in your webmap, and then pass them to a geopoint question, as described halfway through this page:&amp;nbsp;&lt;A href="https://community.esri.com/groups/survey123/blog/2019/02/06/survey123-tricks-of-the-trade-web-form-url-parameters" target="_blank"&gt;https://community.esri.com/groups/survey123/blog/2019/02/06/survey123-tricks-of-the-trade-web-form-url-parameters&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 10:29:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/pass-polygon-coordinates-to-survey123/m-p/851680#M23695</guid>
      <dc:creator>JoshuaSharp-Heward</dc:creator>
      <dc:date>2021-12-12T10:29:13Z</dc:date>
    </item>
    <item>
      <title>Re: Pass Polygon coordinates to Survey123?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/pass-polygon-coordinates-to-survey123/m-p/1179530#M43014</link>
      <description>&lt;P&gt;Any reason why this is not working?&amp;nbsp; I am the using the latest and greatest Survey123 version and AGOL.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is what I have for my popup in AGOL.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;arcgis-survey123://?itemID=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&amp;amp;field:parcelnumber_txt={MDLink}&amp;amp;field:ownername_txt={OwnerName}&amp;amp;field:mailingaddress_txt={OwnersMailingLabel}&amp;amp;field:propadd_txt={PropertyAddress}&amp;amp;?center={expression/expr0},{expression/expr1}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If it helps&amp;nbsp;parcelshape_gs is the geopoint question where it should push too.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The expressions are the same as above.&amp;nbsp; In the popup in AGOL it shows different lat/longs for each polygon, but it does not put over to Survey123.&lt;/P&gt;&lt;P&gt;Thoughts?&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jun 2022 16:58:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/pass-polygon-coordinates-to-survey123/m-p/1179530#M43014</guid>
      <dc:creator>DavidBuehler</dc:creator>
      <dc:date>2022-06-02T16:58:43Z</dc:date>
    </item>
    <item>
      <title>Re: Pass Polygon coordinates to Survey123?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/pass-polygon-coordinates-to-survey123/m-p/1179602#M43021</link>
      <description>&lt;P&gt;I figured it out:&lt;/P&gt;&lt;P&gt;arcgis-survey123://?itemID=&lt;SPAN&gt;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&lt;/SPAN&gt;&amp;amp;field:parcelnumber_txt={MDLink}&amp;amp;field:ownername_txt={OwnerName}&amp;amp;field:mailingaddress_txt={OwnersMailingLabel}&amp;amp;field:propadd_txt={PropertyAddress}&amp;amp;center={expression/expr0},{expression/expr1}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;there is no need for the ?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jun 2022 19:43:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/pass-polygon-coordinates-to-survey123/m-p/1179602#M43021</guid>
      <dc:creator>DavidBuehler</dc:creator>
      <dc:date>2022-06-02T19:43:50Z</dc:date>
    </item>
  </channel>
</rss>

