<?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 Survey123 Don't overwrite calculated variable on resubmission or survey in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/survey123-don-t-overwrite-calculated-variable-on/m-p/1145988#M40663</link>
    <description>&lt;P&gt;I have an attribute field that gets duplicated on submitting a survey.&lt;/P&gt;&lt;P&gt;Seed Point ID is replicated in Legacy Seed Point ID.&lt;/P&gt;&lt;P&gt;I want to keep a record of the Seed Point if the site falls through and the attribute gets changed to "No Seed Point."&amp;nbsp; I have the users open up an exiting sites survey, make any changes and resubmit the survey to update the records.&amp;nbsp; When changing the Seed Point status to "No Seed Point," it moves that value into the Legacy Seed Point ID.&amp;nbsp; Is there a way to disable the JS script on resubmission for edits?&amp;nbsp; I was also trying to set up a JS script to handle this but had no luck.&amp;nbsp; It doesn't look like I can pass the variable itself to the script&lt;/P&gt;&lt;P&gt;function legacyseedrun(seedpointid) {&lt;/P&gt;&lt;P&gt;// Set up query parameters&lt;/P&gt;&lt;P&gt;var leg = seedpointid;&lt;/P&gt;&lt;P&gt;let outValue = "";&lt;/P&gt;&lt;P&gt;if (seedpointid == "No Seed Point") {&lt;/P&gt;&lt;P&gt;outValue = leg;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;else{&lt;/P&gt;&lt;P&gt;outValue = seedpointid}&lt;/P&gt;&lt;P&gt;return outValue&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;</description>
    <pubDate>Sun, 20 Feb 2022 17:04:52 GMT</pubDate>
    <dc:creator>TylerSavoy</dc:creator>
    <dc:date>2022-02-20T17:04:52Z</dc:date>
    <item>
      <title>Survey123 Don't overwrite calculated variable on resubmission or survey</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/survey123-don-t-overwrite-calculated-variable-on/m-p/1145988#M40663</link>
      <description>&lt;P&gt;I have an attribute field that gets duplicated on submitting a survey.&lt;/P&gt;&lt;P&gt;Seed Point ID is replicated in Legacy Seed Point ID.&lt;/P&gt;&lt;P&gt;I want to keep a record of the Seed Point if the site falls through and the attribute gets changed to "No Seed Point."&amp;nbsp; I have the users open up an exiting sites survey, make any changes and resubmit the survey to update the records.&amp;nbsp; When changing the Seed Point status to "No Seed Point," it moves that value into the Legacy Seed Point ID.&amp;nbsp; Is there a way to disable the JS script on resubmission for edits?&amp;nbsp; I was also trying to set up a JS script to handle this but had no luck.&amp;nbsp; It doesn't look like I can pass the variable itself to the script&lt;/P&gt;&lt;P&gt;function legacyseedrun(seedpointid) {&lt;/P&gt;&lt;P&gt;// Set up query parameters&lt;/P&gt;&lt;P&gt;var leg = seedpointid;&lt;/P&gt;&lt;P&gt;let outValue = "";&lt;/P&gt;&lt;P&gt;if (seedpointid == "No Seed Point") {&lt;/P&gt;&lt;P&gt;outValue = leg;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;else{&lt;/P&gt;&lt;P&gt;outValue = seedpointid}&lt;/P&gt;&lt;P&gt;return outValue&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;</description>
      <pubDate>Sun, 20 Feb 2022 17:04:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/survey123-don-t-overwrite-calculated-variable-on/m-p/1145988#M40663</guid>
      <dc:creator>TylerSavoy</dc:creator>
      <dc:date>2022-02-20T17:04:52Z</dc:date>
    </item>
    <item>
      <title>Re: Survey123 Don't overwrite calculated variable on resubmission or survey</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/survey123-don-t-overwrite-calculated-variable-on/m-p/1150645#M41069</link>
      <description>&lt;P&gt;Use the property pulldata("@property", 'status')&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Returns draft, submitted, sent, or inbox if the survey was opened from Drafts, Outbox, Sent, or Inbox, respectively. An empty string is returned if the response is new.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Mar 2022 14:19:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/survey123-don-t-overwrite-calculated-variable-on/m-p/1150645#M41069</guid>
      <dc:creator>BennetGigliottiManHydro</dc:creator>
      <dc:date>2022-03-04T14:19:25Z</dc:date>
    </item>
  </channel>
</rss>

