<?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 JavaScript Functions are disabled - Script not functioning properly in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/javascript-functions-are-disabled-script-not/m-p/1373614#M54221</link>
    <description>&lt;P&gt;Hi y'all!&lt;/P&gt;&lt;P&gt;I'm working with a script on my survey:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DianaTorres10_0-1706037711899.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/92560i77B80E67745FFD2A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DianaTorres10_0-1706037711899.png" alt="DianaTorres10_0-1706037711899.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The pulldata and the script are working properly before the survey is published.&lt;/P&gt;&lt;P&gt;Once the survey is online the script doesn't work. Checking the developer options on my browser I found this message:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DianaTorres10_1-1706037817287.jpeg" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/92562i054FEE0F561BB71E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DianaTorres10_1-1706037817287.jpeg" alt="DianaTorres10_1-1706037817287.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It basically says that&amp;nbsp;JavaScript Functions are disabled.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you know how to fix this?&amp;nbsp;&lt;/P&gt;&lt;P&gt;I couldn't find an option to enable them.&lt;/P&gt;&lt;P&gt;Thanks!&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>Tue, 23 Jan 2024 19:26:46 GMT</pubDate>
    <dc:creator>DianaTorres10</dc:creator>
    <dc:date>2024-01-23T19:26:46Z</dc:date>
    <item>
      <title>JavaScript Functions are disabled - Script not functioning properly</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/javascript-functions-are-disabled-script-not/m-p/1373614#M54221</link>
      <description>&lt;P&gt;Hi y'all!&lt;/P&gt;&lt;P&gt;I'm working with a script on my survey:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DianaTorres10_0-1706037711899.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/92560i77B80E67745FFD2A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DianaTorres10_0-1706037711899.png" alt="DianaTorres10_0-1706037711899.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The pulldata and the script are working properly before the survey is published.&lt;/P&gt;&lt;P&gt;Once the survey is online the script doesn't work. Checking the developer options on my browser I found this message:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DianaTorres10_1-1706037817287.jpeg" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/92562i054FEE0F561BB71E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DianaTorres10_1-1706037817287.jpeg" alt="DianaTorres10_1-1706037817287.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It basically says that&amp;nbsp;JavaScript Functions are disabled.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you know how to fix this?&amp;nbsp;&lt;/P&gt;&lt;P&gt;I couldn't find an option to enable them.&lt;/P&gt;&lt;P&gt;Thanks!&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>Tue, 23 Jan 2024 19:26:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/javascript-functions-are-disabled-script-not/m-p/1373614#M54221</guid>
      <dc:creator>DianaTorres10</dc:creator>
      <dc:date>2024-01-23T19:26:46Z</dc:date>
    </item>
    <item>
      <title>Re: JavaScript Functions are disabled - Script not functioning properly</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/javascript-functions-are-disabled-script-not/m-p/1373626#M54224</link>
      <description>&lt;P&gt;Are you logged in?&amp;nbsp; Cannot use JS if anonymous user.&amp;nbsp; Also cannot use JS across AGOL organizations.&lt;/P&gt;&lt;P&gt;&lt;A href="https://doc.arcgis.com/en/survey123/desktop/create-surveys/pulldatajavascript.htm" target="_blank"&gt;https://doc.arcgis.com/en/survey123/desktop/create-surveys/pulldatajavascript.htm&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jan 2024 19:55:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/javascript-functions-are-disabled-script-not/m-p/1373626#M54224</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2024-01-23T19:55:58Z</dc:date>
    </item>
    <item>
      <title>Re: JavaScript Functions are disabled - Script not functioning properly</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/javascript-functions-are-disabled-script-not/m-p/1373677#M54231</link>
      <description>&lt;P&gt;Was just about to say that. Will also toss in the key phrase "cannot use JavaScript in public surveys"&lt;/P&gt;&lt;P&gt;To quote JamesTedrik &lt;A href="https://community.esri.com/t5/arcgis-survey123-ideas/survey123-javascript-function-on-public-surveys/idi-p/921430" target="_self"&gt;here&lt;/A&gt;:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;SPAN class=""&gt;Status changed to: &lt;A href="https://community.esri.com/t5/arcgis-survey123-ideas/idb-p/arcgis-survey123-ideas/status-key/closed" target="_blank" rel="noopener"&gt;Closed&lt;/A&gt; &lt;/SPAN&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;As mentioned in previous comments, the security team raised concerns with implementing this feature as it can potentially lead to untrusted JavaScript running on a user's device or browser (this was the reason for the original design limitation of requiring a user to be in the same organization as the form's author that currently exists).&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jan 2024 21:54:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/javascript-functions-are-disabled-script-not/m-p/1373677#M54231</guid>
      <dc:creator>abureaux</dc:creator>
      <dc:date>2024-01-23T21:54:55Z</dc:date>
    </item>
    <item>
      <title>Re: JavaScript Functions are disabled - Script not functioning properly</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/javascript-functions-are-disabled-script-not/m-p/1373699#M54234</link>
      <description>&lt;P&gt;Thank you, I have this survey open for everyone so there's the problem.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to make users only write in upper case and the script was an easy solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jan 2024 22:23:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/javascript-functions-are-disabled-script-not/m-p/1373699#M54234</guid>
      <dc:creator>DianaTorres10</dc:creator>
      <dc:date>2024-01-23T22:23:55Z</dc:date>
    </item>
    <item>
      <title>Re: JavaScript Functions are disabled - Script not functioning properly</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/javascript-functions-are-disabled-script-not/m-p/1373703#M54235</link>
      <description>&lt;P&gt;You can use regex for upper.&amp;nbsp; Check out the bible&amp;nbsp;&amp;nbsp;&lt;A href="https://doc.arcgis.com/en/survey123/desktop/create-surveys/xlsformformulas.htm" target="_blank"&gt;https://doc.arcgis.com/en/survey123/desktop/create-surveys/xlsformformulas.htm&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jan 2024 22:46:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/javascript-functions-are-disabled-script-not/m-p/1373703#M54235</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2024-01-23T22:46:49Z</dc:date>
    </item>
  </channel>
</rss>

