<?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 Updating Javascript Functions in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/updating-javascript-functions/m-p/1368693#M53910</link>
    <description>&lt;P&gt;I'm having trouble finding how to update my Javascript functions once a survey has been published.&lt;/P&gt;&lt;P&gt;Code I add to functions.js in the scripts page of Survey123 Connect works.&amp;nbsp; But once published I want to add additional functions or make changes and when I edit the code in there, hit save, and publish the survey again the updated version on my phone doesn't include those changes.&lt;/P&gt;&lt;P&gt;I can't find functions.js anywhere online in ESRIs systems to edit there.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone please let me know what I'm missing?&lt;/P&gt;</description>
    <pubDate>Wed, 10 Jan 2024 22:56:40 GMT</pubDate>
    <dc:creator>DuncanC</dc:creator>
    <dc:date>2024-01-10T22:56:40Z</dc:date>
    <item>
      <title>Updating Javascript Functions</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/updating-javascript-functions/m-p/1368693#M53910</link>
      <description>&lt;P&gt;I'm having trouble finding how to update my Javascript functions once a survey has been published.&lt;/P&gt;&lt;P&gt;Code I add to functions.js in the scripts page of Survey123 Connect works.&amp;nbsp; But once published I want to add additional functions or make changes and when I edit the code in there, hit save, and publish the survey again the updated version on my phone doesn't include those changes.&lt;/P&gt;&lt;P&gt;I can't find functions.js anywhere online in ESRIs systems to edit there.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone please let me know what I'm missing?&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jan 2024 22:56:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/updating-javascript-functions/m-p/1368693#M53910</guid>
      <dc:creator>DuncanC</dc:creator>
      <dc:date>2024-01-10T22:56:40Z</dc:date>
    </item>
    <item>
      <title>Re: Updating Javascript Functions</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/updating-javascript-functions/m-p/1369087#M53932</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/731197"&gt;@DuncanC&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you delete the survey on the device and redownload it is the updated JavaScript function present?&amp;nbsp;&lt;/P&gt;&lt;P&gt;When you update the survey on the device the updated JavaScript junction should be present, you can check by accessing the file directly:&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN class=""&gt;Windows&lt;/SPAN&gt;—&lt;SPAN class=""&gt;C:\Users\&amp;lt;username&amp;gt;\ArcGIS\My Surveys\&amp;lt;surveyItemId&amp;gt;\esriinfo\scripts&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class=""&gt;iOS&lt;/SPAN&gt;—&lt;SPAN class=""&gt;Survey123/Documents/ArcGIS/My Surveys/Logs/&amp;lt;surveyItemId&amp;gt;/esriinfo/scripts&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class=""&gt;Android&lt;/SPAN&gt;—&lt;SPAN class=""&gt;Android/data/com.esri.survey123/files/ArcGIS/My Survey/Logs/&amp;lt;surveyItemId&amp;gt;/esriinfo/scripts&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;If you check in that directory on your device is the JS file the updated file?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;In Connect on the Options tab you can also &lt;A href="https://doc.arcgis.com/en/survey123/desktop/create-surveys/publishsurvey.htm#ESRI_SECTION1_EC6E17FD95514BAE9D9218EF6F98827B" target="_self"&gt;Require update to the latest version of the survey&lt;/A&gt; to ensure the survey get's updated on the device.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ZacharySutherby_0-1704997885290.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/91283i4AB9801E566A6910/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ZacharySutherby_0-1704997885290.png" alt="ZacharySutherby_0-1704997885290.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jan 2024 18:32:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/updating-javascript-functions/m-p/1369087#M53932</guid>
      <dc:creator>ZacharySutherby</dc:creator>
      <dc:date>2024-01-11T18:32:23Z</dc:date>
    </item>
    <item>
      <title>Re: Updating Javascript Functions</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/updating-javascript-functions/m-p/1372079#M54131</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/251557"&gt;@ZacharySutherby&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Sorry for the slow reply.&amp;nbsp; I tried looking for that file on my Pixel 7 but that directory seems to be hidden so I didn't get anywhere on that side of things.&lt;/P&gt;&lt;P&gt;But I was working on a survey this afternoon I needed to update javascript in and found out a little more that has greatly improved my workflow and may be helpful in your looking into it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just updating the survey normally doesn't update the functions.js file.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Deleting it, and redownloading it also doesn't update the functions.js file.&lt;/P&gt;&lt;P&gt;But if I delete it, force close Survey123 on my phone, and then download it when I reopen, the updates are there.&lt;/P&gt;&lt;P&gt;I don't love this, it's a little clunky to have to tell a end user in the field to do, but at least it's a working solution.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jan 2024 03:58:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/updating-javascript-functions/m-p/1372079#M54131</guid>
      <dc:creator>DuncanC</dc:creator>
      <dc:date>2024-01-19T03:58:51Z</dc:date>
    </item>
  </channel>
</rss>

