<?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 snippet to get a vertex from a geotrace question? in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/javascript-snippet-to-get-a-vertex-from-a-geotrace/m-p/1408608#M56145</link>
    <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/251557"&gt;@ZacharySutherby&lt;/a&gt;&amp;nbsp; is it correct that the javascript snippets won't run when users open the survey in the browser? I read before that it wouldn't work in the browser, but I thought that meant if you use the website to develop/publish the survey then you can't use JS. Can you confirm this snippet won't run in the browser even though I published with Connect?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 11 Apr 2024 16:42:05 GMT</pubDate>
    <dc:creator>MaryGraceMcClellan</dc:creator>
    <dc:date>2024-04-11T16:42:05Z</dc:date>
    <item>
      <title>JavaScript snippet to get a vertex from a geotrace question?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/javascript-snippet-to-get-a-vertex-from-a-geotrace/m-p/1408192#M56118</link>
      <description>&lt;P&gt;I am trying to get just one vertex from a geotrace question - it seems possible using a JavaScript snippet, but I can't tell how to get into the geotrace output or what data type it is. My working snippet is below, I'm by no means proficient in JS, but this seemed to return at least something:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;var lat = 0;
function myfunction(geotrace_data) {

    lat = JSON.stringify(geotrace_data);
    return lat;
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Apr 2024 20:57:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/javascript-snippet-to-get-a-vertex-from-a-geotrace/m-p/1408192#M56118</guid>
      <dc:creator>MaryGraceMcClellan</dc:creator>
      <dc:date>2024-04-10T20:57:04Z</dc:date>
    </item>
    <item>
      <title>Re: JavaScript snippet to get a vertex from a geotrace question?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/javascript-snippet-to-get-a-vertex-from-a-geotrace/m-p/1408234#M56125</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/420216"&gt;@MaryGraceMcClellan&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is a sample that calculates the vertex for a specified index, but this index can be hard coded vs dynamically passed in from the survey.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Apr 2024 22:29:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/javascript-snippet-to-get-a-vertex-from-a-geotrace/m-p/1408234#M56125</guid>
      <dc:creator>ZacharySutherby</dc:creator>
      <dc:date>2024-04-10T22:29:04Z</dc:date>
    </item>
    <item>
      <title>Re: JavaScript snippet to get a vertex from a geotrace question?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/javascript-snippet-to-get-a-vertex-from-a-geotrace/m-p/1408249#M56130</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/251557"&gt;@ZacharySutherby&lt;/a&gt;&amp;nbsp;that is incredible, thank you!!! I was trying to parse the string but this is much more useful.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Apr 2024 23:32:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/javascript-snippet-to-get-a-vertex-from-a-geotrace/m-p/1408249#M56130</guid>
      <dc:creator>MaryGraceMcClellan</dc:creator>
      <dc:date>2024-04-10T23:32:13Z</dc:date>
    </item>
    <item>
      <title>Re: JavaScript snippet to get a vertex from a geotrace question?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/javascript-snippet-to-get-a-vertex-from-a-geotrace/m-p/1408608#M56145</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/251557"&gt;@ZacharySutherby&lt;/a&gt;&amp;nbsp; is it correct that the javascript snippets won't run when users open the survey in the browser? I read before that it wouldn't work in the browser, but I thought that meant if you use the website to develop/publish the survey then you can't use JS. Can you confirm this snippet won't run in the browser even though I published with Connect?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Apr 2024 16:42:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/javascript-snippet-to-get-a-vertex-from-a-geotrace/m-p/1408608#M56145</guid>
      <dc:creator>MaryGraceMcClellan</dc:creator>
      <dc:date>2024-04-11T16:42:05Z</dc:date>
    </item>
  </channel>
</rss>

