<?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: Survey123 - Execute calculation (JS function) only ONCE in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/survey123-execute-calculation-js-function-only/m-p/1349831#M52869</link>
    <description>&lt;P&gt;I found that using &lt;STRONG&gt;once() &lt;/STRONG&gt;in formula makes a trick.&lt;/P&gt;</description>
    <pubDate>Wed, 15 Nov 2023 18:22:42 GMT</pubDate>
    <dc:creator>EM-wsp</dc:creator>
    <dc:date>2023-11-15T18:22:42Z</dc:date>
    <item>
      <title>Survey123 - Execute calculation (JS function) only ONCE</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/survey123-execute-calculation-js-function-only/m-p/1347505#M52744</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a JS function which makes a POST request to the hosted service. I use it in the Survey123 form to create new data entries in the feature class on the side. I really need to take the execution of this function under control. I tried different variations of calculation modes (manual, whenEmpty), "if" statements, "relevant". Nothing gives a confidence that the function is executed only once. In reality, while filling/testing the survey it appeared to be executed 4-5 times.&lt;/P&gt;&lt;P&gt;I am wondering if there is a robust way to restrict the calculation to only one time. "whenEmpty" doesn't appear to work reliably here.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Nov 2023 00:04:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/survey123-execute-calculation-js-function-only/m-p/1347505#M52744</guid>
      <dc:creator>EM-wsp</dc:creator>
      <dc:date>2023-11-09T00:04:27Z</dc:date>
    </item>
    <item>
      <title>Re: Survey123 - Execute calculation (JS function) only ONCE</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/survey123-execute-calculation-js-function-only/m-p/1349831#M52869</link>
      <description>&lt;P&gt;I found that using &lt;STRONG&gt;once() &lt;/STRONG&gt;in formula makes a trick.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Nov 2023 18:22:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/survey123-execute-calculation-js-function-only/m-p/1349831#M52869</guid>
      <dc:creator>EM-wsp</dc:creator>
      <dc:date>2023-11-15T18:22:42Z</dc:date>
    </item>
  </channel>
</rss>

