<?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: JavaScript functions for Geopoint or Geoshape in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/javascript-functions-for-geopoint-or-geoshape/m-p/1201147#M44216</link>
    <description>&lt;P&gt;bump&lt;/P&gt;</description>
    <pubDate>Wed, 10 Aug 2022 01:28:10 GMT</pubDate>
    <dc:creator>WPG03WPG03</dc:creator>
    <dc:date>2022-08-10T01:28:10Z</dc:date>
    <item>
      <title>JavaScript functions for Geopoint or Geoshape</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/javascript-functions-for-geopoint-or-geoshape/m-p/1200296#M44166</link>
      <description>&lt;P&gt;I would like to write JavaScript functions that can be directly used in the calculation column of geopoint and geoshape, as follows:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="xlsform.PNG" style="width: 881px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/48014iB5FE4A5870B9F71D/image-size/large?v=v2&amp;amp;px=999" role="button" title="xlsform.PNG" alt="xlsform.PNG" /&gt;&lt;/span&gt;&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;LI-CODE lang="javascript"&gt;/*
 * JavaScript functions for Survey123
 */

function getGeoPoint() {

    // Add your code here

    return "1.0000 2.00000";
}

function getGeoShape() {

    // Add your code here

    return "0.0000 0.00000;0.1000 0.00000;0.1000 0.10000; 0.0000 0.10000";
}&lt;/LI-CODE&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;However, the above JavaScript functions do not work and return the following error:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="xlsform_error.PNG" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/48015i230E911A7B5CF756/image-size/large?v=v2&amp;amp;px=999" role="button" title="xlsform_error.PNG" alt="xlsform_error.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;It seems that the expected output is not some space-separated values of latitude and longitude.&amp;nbsp; What are the correct output from a JavaScript functions that can be directly used by geopoint and geoshape?&amp;nbsp; I can't find such documentations.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Aug 2022 10:29:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/javascript-functions-for-geopoint-or-geoshape/m-p/1200296#M44166</guid>
      <dc:creator>WPG03WPG03</dc:creator>
      <dc:date>2022-08-08T10:29:13Z</dc:date>
    </item>
    <item>
      <title>Re: JavaScript functions for Geopoint or Geoshape</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/javascript-functions-for-geopoint-or-geoshape/m-p/1201147#M44216</link>
      <description>&lt;P&gt;bump&lt;/P&gt;</description>
      <pubDate>Wed, 10 Aug 2022 01:28:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/javascript-functions-for-geopoint-or-geoshape/m-p/1201147#M44216</guid>
      <dc:creator>WPG03WPG03</dc:creator>
      <dc:date>2022-08-10T01:28:10Z</dc:date>
    </item>
    <item>
      <title>Re: JavaScript functions for Geopoint or Geoshape</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/javascript-functions-for-geopoint-or-geoshape/m-p/1201415#M44233</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/1213"&gt;@JamesTedrick&lt;/a&gt;&amp;nbsp; Grateful if you can shed some lights on this problem.&amp;nbsp; Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Aug 2022 16:49:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/javascript-functions-for-geopoint-or-geoshape/m-p/1201415#M44233</guid>
      <dc:creator>WPG03WPG03</dc:creator>
      <dc:date>2022-08-10T16:49:10Z</dc:date>
    </item>
    <item>
      <title>Re: JavaScript functions for Geopoint or Geoshape</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/javascript-functions-for-geopoint-or-geoshape/m-p/1261328#M47631</link>
      <description>&lt;P&gt;As a workaround, modify the calculation column using the following syntax:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;string(pulldata("@javascript", ...))+" "
string(pulldata("@json", ...))+" "&lt;/LI-CODE&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>Fri, 24 Feb 2023 08:12:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/javascript-functions-for-geopoint-or-geoshape/m-p/1261328#M47631</guid>
      <dc:creator>WPG03WPG03</dc:creator>
      <dc:date>2023-02-24T08:12:36Z</dc:date>
    </item>
  </channel>
</rss>

