<?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>idea Allow users to edit their submitted data (without the Survey123 App) in ArcGIS Survey123 Ideas</title>
    <link>https://community.esri.com/t5/arcgis-survey123-ideas/allow-users-to-edit-their-submitted-data-without/idi-p/1137177</link>
    <description>&lt;P&gt;I have a Survey123 survey embedded into a dashboard. It's a simple survey with just one ranking question. The survey is set up so that each user can only submit the survey one time, however; they are allowed to edit their submissions. When a user submits, they are taken to the Thank You page, but when they reload the page, they are taken to a "You've already taken this survey" page.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ideally, I would like the users to be able to edit their existing submission, but there doesn't seem to be a configurable way to set this up in Dashboard (Get user name --&amp;gt; search survey results for their record --&amp;gt; insert GlobalID into survey URL for embedded survey). Instead, since there is obviously a check going on to see if they've submitted, it would be nice if it would show the "You've already taken this survey" page text, but then include a "Would you like to edit your previous response?".&lt;/P&gt;&lt;P&gt;I mean, I've checked the box saying I want them to be able to edit their submissions, so that seems like it should be reasonable.&lt;/P&gt;</description>
    <pubDate>Tue, 25 Jan 2022 22:57:55 GMT</pubDate>
    <dc:creator>MatthewMuehlhauser</dc:creator>
    <dc:date>2022-01-25T22:57:55Z</dc:date>
    <item>
      <title>Allow users to edit their submitted data (without the Survey123 App)</title>
      <link>https://community.esri.com/t5/arcgis-survey123-ideas/allow-users-to-edit-their-submitted-data-without/idi-p/1137177</link>
      <description>&lt;P&gt;I have a Survey123 survey embedded into a dashboard. It's a simple survey with just one ranking question. The survey is set up so that each user can only submit the survey one time, however; they are allowed to edit their submissions. When a user submits, they are taken to the Thank You page, but when they reload the page, they are taken to a "You've already taken this survey" page.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ideally, I would like the users to be able to edit their existing submission, but there doesn't seem to be a configurable way to set this up in Dashboard (Get user name --&amp;gt; search survey results for their record --&amp;gt; insert GlobalID into survey URL for embedded survey). Instead, since there is obviously a check going on to see if they've submitted, it would be nice if it would show the "You've already taken this survey" page text, but then include a "Would you like to edit your previous response?".&lt;/P&gt;&lt;P&gt;I mean, I've checked the box saying I want them to be able to edit their submissions, so that seems like it should be reasonable.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jan 2022 22:57:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-ideas/allow-users-to-edit-their-submitted-data-without/idi-p/1137177</guid>
      <dc:creator>MatthewMuehlhauser</dc:creator>
      <dc:date>2022-01-25T22:57:55Z</dc:date>
    </item>
    <item>
      <title>Re: Allow users to edit their submitted data (without the Survey123 App)</title>
      <link>https://community.esri.com/t5/arcgis-survey123-ideas/allow-users-to-edit-their-submitted-data-without/idc-p/1137179#M1881</link>
      <description>&lt;P&gt;It might be complicated, but I bet you could do this with a Data Expression somehow.&lt;/P&gt;&lt;P&gt;Are the editor tracking settings configured so that users can only see their own features? That might simplify things.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jan 2022 23:04:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-ideas/allow-users-to-edit-their-submitted-data-without/idc-p/1137179#M1881</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2022-01-25T23:04:22Z</dc:date>
    </item>
    <item>
      <title>Re: Allow users to edit their submitted data (without the Survey123 App)</title>
      <link>https://community.esri.com/t5/arcgis-survey123-ideas/allow-users-to-edit-their-submitted-data-without/idc-p/1137451#M1885</link>
      <description>&lt;P&gt;Ok, so I have a Data Expression now that returns the URL for the survey depending on whether the user has submitted a survey before or not, assuming that there should only be 0 or 1 records since they can only see their own, although myself I can see all so need to test that out first to make sure that is the case.&lt;/P&gt;&lt;P&gt;That being said, the Test button returns the expected URL result, however; the Data Expression itself has a warning next to it saying "Unable to Execute Arcade Script". I thought this might be due to the fact that it's not a feature, so I turned the result into a Feature with a URL attribute and a random Geometry, and it's still unable to be selected.&lt;/P&gt;&lt;P&gt;Aside from that though, I have the URL Expression, but how would I use the output to fill in the URL text box for the embedded content panel?&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var url = 'https://survey123.arcgis.com/share/{Removed Survey ID}'
var editUrl = '?mode=edit&amp;amp;globalId='
var features = FeatureSetByPortalItem( Portal('https://www.arcgis.com'), '{Removed Item ID}', 0, ['GlobalID', 'Creator'], false );

var featureCount = Count(features)

var urlID = IIf(featureCount &amp;gt; 1, '{My Records Global ID}', IIf(featureCount &amp;lt; 1, null, First(features).GlobalID));

var finalURL = IIf(urlID != null, url + editUrl + urlID, url)

var pointJSON = {"x": -118.15, "y": 33.80, "spatialReference": { "wkid": 3857 } };
var pointGeometry = Geometry(pointJSON);

Feature(pointGeometry, 'survey_url', finalURL)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jan 2022 16:26:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-ideas/allow-users-to-edit-their-submitted-data-without/idc-p/1137451#M1885</guid>
      <dc:creator>MatthewMuehlhauser</dc:creator>
      <dc:date>2022-01-26T16:26:35Z</dc:date>
    </item>
    <item>
      <title>Re: Allow users to edit their submitted data (without the Survey123 App)</title>
      <link>https://community.esri.com/t5/arcgis-survey123-ideas/allow-users-to-edit-their-submitted-data-without/idc-p/1137462#M1886</link>
      <description>&lt;P&gt;Realized that it needed to be a FeatureSet and not a Feature. Changed that and I got a working expression. And it was actually pretty easy to get it into the URL text box after that!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;FeatureSet('{"fields":[{"alias":"URL","name":"URL","type":"esriFieldTypeString"}],"spatialReference":{"wkid":3857},"geometryType":"esriGeometryPoint","features":[{"geometry":{"spatialReference":{"wkid":3857},"x":-151.0063,"y":63.069},"attributes":{"URL":"' + finalURL + '"}}]}')&lt;/LI-CODE&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>Wed, 26 Jan 2022 16:45:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-ideas/allow-users-to-edit-their-submitted-data-without/idc-p/1137462#M1886</guid>
      <dc:creator>MatthewMuehlhauser</dc:creator>
      <dc:date>2022-01-26T16:45:46Z</dc:date>
    </item>
    <item>
      <title>Re: Allow users to edit their submitted data (without the Survey123 App) - Status changed to: Closed</title>
      <link>https://community.esri.com/t5/arcgis-survey123-ideas/allow-users-to-edit-their-submitted-data-without/idc-p/1163553#M2004</link>
      <description />
      <pubDate>Tue, 12 Apr 2022 16:28:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-ideas/allow-users-to-edit-their-submitted-data-without/idc-p/1163553#M2004</guid>
      <dc:creator>IsmaelChivite</dc:creator>
      <dc:date>2022-04-12T16:28:34Z</dc:date>
    </item>
  </channel>
</rss>

