<?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: How can I calculate default coordinates for my geopoint question when it is not a relevant question? in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/how-can-i-calculate-default-coordinates-for-my/m-p/809453#M12921</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes it becomes relevant for all other sample types.&amp;nbsp;I'll try to attach xlsx spreadsheet.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Sep 2019 14:30:11 GMT</pubDate>
    <dc:creator>JamesKelly4</dc:creator>
    <dc:date>2019-09-04T14:30:11Z</dc:date>
    <item>
      <title>How can I calculate default coordinates for my geopoint question when it is not a relevant question?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/how-can-i-calculate-default-coordinates-for-my/m-p/809449#M12917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In my survey the geopoint question is relevant for all but 1 sample type. This is because county is the highest resolution location data that we get for this 1 sample type. However, I would like the default coordinates for this sample type to be the centroid of the selected county. I can get this functionality to work on all of the sample types that are relevant for this question with the following formula and by having a csv file (centroids) in the media folder with x,y coordinates for centroid of each county.&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="token function"&gt;concat&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;number&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;pulldata&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'centroids'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'x'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'county'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; $&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;county&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;" "&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;number&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;pulldata&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'centroids'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'y'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'county'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; $&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;county&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I was hoping it would still do the calculation for the sample type for which the geopoint question is not relevant, but it is not. It still returns x and y values of 0, placing the point off the coast of Africa.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help is appreciated! &lt;A href="https://community.esri.com/migrated-users/273976" target="_blank"&gt;Survey123 Geonet&lt;/A&gt;‌ &lt;A href="https://community.esri.com/migrated-users/366055" target="_blank"&gt;Survey123 (Admin)&lt;/A&gt;‌ &lt;A href="https://community.esri.com/migrated-users/309843" target="_blank"&gt;Survey123 Survey&lt;/A&gt;‌ &lt;A href="https://community.esri.com/migrated-users/3263" target="_blank"&gt;James Tedrick&lt;/A&gt;‌ &lt;A href="https://community.esri.com/migrated-users/3966" target="_blank"&gt;Ismael Chivite&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 09:28:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/how-can-i-calculate-default-coordinates-for-my/m-p/809449#M12917</guid>
      <dc:creator>JamesKelly4</dc:creator>
      <dc:date>2021-12-12T09:28:51Z</dc:date>
    </item>
    <item>
      <title>Re: How can I calculate default coordinates for my geopoint question when it is not a relevant question?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/how-can-i-calculate-default-coordinates-for-my/m-p/809450#M12918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/283902"&gt;Philip Wilson&lt;/A&gt;‌ - got anything for me on this one? Thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Aug 2019 12:51:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/how-can-i-calculate-default-coordinates-for-my/m-p/809450#M12918</guid>
      <dc:creator>JamesKelly4</dc:creator>
      <dc:date>2019-08-30T12:51:45Z</dc:date>
    </item>
    <item>
      <title>Re: How can I calculate default coordinates for my geopoint question when it is not a relevant question?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/how-can-i-calculate-default-coordinates-for-my/m-p/809451#M12919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When a relevant is hidden it will always be "" string.&amp;nbsp; No way around that.&amp;nbsp; (Except for the default values bug.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could use the hidden type or something maybe?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Aug 2019 14:17:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/how-can-i-calculate-default-coordinates-for-my/m-p/809451#M12919</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2019-08-30T14:17:02Z</dc:date>
    </item>
    <item>
      <title>Re: How can I calculate default coordinates for my geopoint question when it is not a relevant question?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/how-can-i-calculate-default-coordinates-for-my/m-p/809452#M12920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi James,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does the geopoint question ever become relevant, or always not relevant but you want to capture a position for it? Can you share your xlsx file?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Phil.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 01 Sep 2019 10:46:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/how-can-i-calculate-default-coordinates-for-my/m-p/809452#M12920</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2019-09-01T10:46:08Z</dc:date>
    </item>
    <item>
      <title>Re: How can I calculate default coordinates for my geopoint question when it is not a relevant question?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/how-can-i-calculate-default-coordinates-for-my/m-p/809453#M12921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes it becomes relevant for all other sample types.&amp;nbsp;I'll try to attach xlsx spreadsheet.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Sep 2019 14:30:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/how-can-i-calculate-default-coordinates-for-my/m-p/809453#M12921</guid>
      <dc:creator>JamesKelly4</dc:creator>
      <dc:date>2019-09-04T14:30:11Z</dc:date>
    </item>
    <item>
      <title>Re: How can I calculate default coordinates for my geopoint question when it is not a relevant question?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/how-can-i-calculate-default-coordinates-for-my/m-p/809454#M12922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure how to attach spreadsheet so here is a &lt;A href="https://drive.google.com/file/d/1AodyvAe9MREvy62rbkshvSDW4ZAE13cp/view?usp=sharing"&gt;copy on my google drive&lt;/A&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Sep 2019 14:36:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/how-can-i-calculate-default-coordinates-for-my/m-p/809454#M12922</guid>
      <dc:creator>JamesKelly4</dc:creator>
      <dc:date>2019-09-04T14:36:30Z</dc:date>
    </item>
    <item>
      <title>Re: How can I calculate default coordinates for my geopoint question when it is not a relevant question?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/how-can-i-calculate-default-coordinates-for-my/m-p/809455#M12923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi James,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can attach the xlsx file to the reply/post using the "Use advanced editor" option (top right corner of reply when open in new window/tab (not in Inbox).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Phil.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Sep 2019 21:53:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/how-can-i-calculate-default-coordinates-for-my/m-p/809455#M12923</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2019-09-04T21:53:58Z</dc:date>
    </item>
    <item>
      <title>Re: How can I calculate default coordinates for my geopoint question when it is not a relevant question?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/how-can-i-calculate-default-coordinates-for-my/m-p/809456#M12924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;10-4. Sorry for slow followup. Please see attached.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Sep 2019 20:29:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/how-can-i-calculate-default-coordinates-for-my/m-p/809456#M12924</guid>
      <dc:creator>JamesKelly4</dc:creator>
      <dc:date>2019-09-06T20:29:51Z</dc:date>
    </item>
    <item>
      <title>Re: How can I calculate default coordinates for my geopoint question when it is not a relevant question?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/how-can-i-calculate-default-coordinates-for-my/m-p/809457#M12925</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi James,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You calculation relies on a pull data with CSV - it would be helpful to attach that as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another technique you could use to debug this form is to migrate the pulldata calculations to notes to make sure that it's being read properly, and calculate the geopoint based on the notes. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll also note that Survey123 expects a Latitude, Longitude (y,x) pair, not an x,y pair, which is what you apparently are trying to calculate.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Sep 2019 20:26:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/how-can-i-calculate-default-coordinates-for-my/m-p/809457#M12925</guid>
      <dc:creator>JamesTedrick</dc:creator>
      <dc:date>2019-09-10T20:26:55Z</dc:date>
    </item>
  </channel>
</rss>

