<?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: Pass attribute field as URL parameter in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/pass-attribute-field-as-url-parameter/m-p/1144991#M40602</link>
    <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/16421"&gt;@DougBrowning&lt;/a&gt;&amp;nbsp;, this is now solved thanks to Esri Tech Support. I am now able to launch Survey123 from the parent point in FieldMaps, perform the survey on a related child record, and then use the callback to pass an attribute back into the original parent record in Field Maps, thus changing the symbol. Whew.&lt;/P&gt;&lt;P&gt;The tricks were:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Configure the URL as an Arcade expression, rather than manually&lt;/LI&gt;&lt;LI&gt;Use the URLEncode() arcade function where relevant, although there is a bug (BUG-000146960) associated with this function that limits its current use&lt;/LI&gt;&lt;LI&gt;Use the arcade expression&amp;nbsp;Mid($feature.globalid,1,36)&amp;nbsp; to strip out the brackets on the GlobalID value within the featureID parameter of the callback.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;So my final arcade expression looked something like shown below. It passes in a hard-coded value of "2" to the "RetrofitStatus" attribute field, which was what controls my layer symbology.&lt;/P&gt;&lt;P&gt;var S123urlsource = 'arcgis-survey123://?itemID=xxxxxx&amp;amp;field:Pole_Key='+$feature.globalid+'&amp;amp;callback:submit=';&lt;BR /&gt;var FMurlsource='&lt;A href="https://fieldmaps.arcgis.app" target="_blank"&gt;https://fieldmaps.arcgis.app&lt;/A&gt;?';&lt;BR /&gt;var FMparams='itemID%3Dxxxxxx%26referenceContext%3DupdateFeature%26featureSourceURL%3Dhttps://services1.arcgis.com/xxxx/arcgis/rest/services/xxxx/FeatureServer/0%26';&lt;BR /&gt;var FMGID=Mid($feature.globalid,1,36);&lt;BR /&gt;var FMAtt='%26featureAttributes%3D%7B%22RetrofitStatus%22%3A%222%22%7D%0A';&lt;BR /&gt;return Concatenate(S123urlsource,UrlEncode(FMurlsource),FMparams,'featureID%3D',FMGID,FMAtt);&lt;/P&gt;</description>
    <pubDate>Thu, 17 Feb 2022 00:23:01 GMT</pubDate>
    <dc:creator>PaulPetersen1</dc:creator>
    <dc:date>2022-02-17T00:23:01Z</dc:date>
    <item>
      <title>Pass attribute field as URL parameter</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/pass-attribute-field-as-url-parameter/m-p/1144143#M40550</link>
      <description>&lt;P&gt;I am attempting to launch Field Maps from Survey123 via URL parameter and pass attributes&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;from&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Survey123 into a specified feature in Field Maps using the using the Field Maps referenceContext=updateFeature method.&lt;/P&gt;&lt;P&gt;The problem is that I can't figure out how to pass a specified attribute from Survey123 as a URL parameter. This is easy to do going from Field Maps to Survey123, but not so much going the opposite direction.&lt;/P&gt;&lt;P&gt;Basically I've got an guid attribute called Pole_Key in Survey123 that matches the GlobalID of a point feature in the Field Map. I want to use that Pole_Key to open and edit the corresponding record in Field Maps. How do I pass the Pole_Key attribute as a URL parameter&amp;nbsp;&lt;EM&gt;from&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Survey123?&lt;/P&gt;</description>
      <pubDate>Tue, 15 Feb 2022 16:45:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/pass-attribute-field-as-url-parameter/m-p/1144143#M40550</guid>
      <dc:creator>PaulPetersen1</dc:creator>
      <dc:date>2022-02-15T16:45:37Z</dc:date>
    </item>
    <item>
      <title>Re: Pass attribute field as URL parameter</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/pass-attribute-field-as-url-parameter/m-p/1144165#M40551</link>
      <description>&lt;P&gt;When you go to Field Maps you have to encode the URL.&amp;nbsp; But do not have to in 123 - no idea why.&lt;/P&gt;&lt;P&gt;This worked for me note this is for new feature you would need to edit this.&lt;/P&gt;&lt;P data-unlink="true"&gt;a href="https://fieldmaps.arcgis.app?itemID=bd19b66b22dc21a&amp;amp;referenceContext=addFeature&amp;amp;featureSourceURL=https://services1.arcgis.com/Hp6G80Pky0om7QvQ/arcgis/rest/services/PFC2022TrainingService/FeatureServer/2&amp;amp;featureAttributes=%7B%22LOCAL_ID%22:%22${LOCAL_ID}%22,%22AdminState%22:%22${ADMIN_ST}%22,%22FormID%22:%22${FormID}%22%7D&amp;amp;callback=https://survey123.arcgis.app&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is a good help page&amp;nbsp;&amp;nbsp;&lt;A href="https://doc.arcgis.com/en/field-maps/android/help/deploy-your-map.htm" target="_blank" rel="noopener"&gt;https://doc.arcgis.com/en/field-maps/android/help/deploy-your-map.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Hope that does it&lt;/P&gt;</description>
      <pubDate>Tue, 15 Feb 2022 17:00:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/pass-attribute-field-as-url-parameter/m-p/1144165#M40551</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2022-02-15T17:00:42Z</dc:date>
    </item>
    <item>
      <title>Re: Pass attribute field as URL parameter</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/pass-attribute-field-as-url-parameter/m-p/1144219#M40559</link>
      <description>&lt;P&gt;Hi Doug,&lt;/P&gt;&lt;P&gt;Thanks for the reply! Still not quite working for me. To be more specific, I am trying to pass a Survey123 attribute to Field Maps through a callback. So my basic workflow is:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;In Field Maps, user clicks on a point (parent feature class)&lt;/LI&gt;&lt;LI&gt;In the Field Maps popup, the user then clicks a configured link to open a Survey123 form for a child inspection record (passes parent GlobalID into child Pole_Key)&lt;/LI&gt;&lt;LI&gt;This same link also includes a callback, so that when the user Submits the Survey123 form, the callback will open the parent form in Field Maps&amp;nbsp;&lt;EM&gt;and&lt;/EM&gt; pass a couple of attributes. The point symbol will then update in Field Maps, showing that the inspection is done.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Right now my link looks something like this. (note that I've edited the exact item IDs, and also note that I haven't encoded the featureID=${Pole_Key} simply for the sake of readability.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;arcgis-survey123://?itemID=xxxxxxxxxxxxxxxxxxxxxxx&amp;amp;field:Pole_Key={GlobalID}&amp;amp;field:PoleNumber={PoleNumber}&amp;amp;field:PoleID={PoleID}&amp;amp;callback:submit=https%3A%2F%2Ffieldmaps.arcgis.app%2F%3FitemID%3Dxxxxxxxxxxxxxxxxxxxxxxx%26referenceContext%3DupdateFeature%26featureSourceURL%3Dhttps%3A%2F%2Fservices1.arcgis.com%2FdscgdziA6jUxpQJw%2Farcgis%2Frest%2Fservices%2Fxxxxxxxxxxxxxxxx%2FFeatureServer%2F0%26featureID=${Pole_Key}%26featureAttributes%3D%7B%22RetrofitStatus%22%3A%222%22%2C%22NumPhotos%22%3A%222%22%2C%22RetrofitProject%22%3A%22test%22%7D%0A&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I guess my real question is whether I can pass a Survey123 attribute&amp;nbsp;&lt;EM&gt;within&lt;/EM&gt; a callback, and if so, what sort of encoding to I need. I should note that this link works brilliantly when I hard-code the featureID within the URL (for testing), but I'm really struggling to pass it as a dynamic parameter.&lt;/P&gt;&lt;P&gt;..and if there's an easier way of doing this, I'm all ears!&amp;nbsp; End of the day, I just need a point to change colors to denote that it's been inspected! Needs to work with the mobile app and in offline mode, which I how I landed on the current workflow.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Feb 2022 18:55:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/pass-attribute-field-as-url-parameter/m-p/1144219#M40559</guid>
      <dc:creator>PaulPetersen1</dc:creator>
      <dc:date>2022-02-15T18:55:18Z</dc:date>
    </item>
    <item>
      <title>Re: Pass attribute field as URL parameter</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/pass-attribute-field-as-url-parameter/m-p/1144246#M40561</link>
      <description>&lt;P&gt;You have to double encode it for one.&amp;nbsp; See the help on that.&lt;/P&gt;&lt;P&gt;I also have a feeling you are running into what I posted here&amp;nbsp;&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-field-maps-questions/is-it-possible-to-send-data-back-from-survey123-in/m-p/1062015" target="_blank"&gt;https://community.esri.com/t5/arcgis-field-maps-questions/is-it-possible-to-send-data-back-from-survey123-in/m-p/1062015&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Basically the URL is made at the beginning so you cant really do a field in the callback since it is too late.&amp;nbsp; You may be able to hardcode some value not sure.&amp;nbsp; So just send back like "done" vs a attribute.&lt;/P&gt;&lt;P&gt;I still think not adding to a repeat and instead have a master layer and a related form is the better way to go.&lt;/P&gt;&lt;P&gt;Also you can use Arcade to look for children - which is what I do.&amp;nbsp; But cannot do symbols.&amp;nbsp; I know what you are trying to do but it is actually really hard to symbolize that way for now.&amp;nbsp; We just have the crew mark the point as done in field maps manually for now.&lt;/P&gt;&lt;P&gt;Hope that helps&lt;/P&gt;</description>
      <pubDate>Tue, 15 Feb 2022 19:31:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/pass-attribute-field-as-url-parameter/m-p/1144246#M40561</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2022-02-15T19:31:17Z</dc:date>
    </item>
    <item>
      <title>Re: Pass attribute field as URL parameter</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/pass-attribute-field-as-url-parameter/m-p/1144254#M40563</link>
      <description>&lt;P&gt;yes, that's more or less what I am trying to do! It's crossed my mind that I can't grab an attribute field within the callback (which you've verified). However, another thought is that I &lt;EM&gt;should&lt;/EM&gt; be able to send the {GlobalID} directly from Field Maps, and then that bypasses my need to grab the attribute from Survey123. I can just hard-code the attribute needed to update the point symbology (ie. InspectionStatus='Done')...but I still need to pass the Parent GlobalID as a parameter so that the callback knows which feature to edit. Doesn't work at all the hard-code that!&lt;/P&gt;&lt;P&gt;The following&amp;nbsp;&lt;EM&gt;seems&amp;nbsp;&lt;/EM&gt;to generate a good URL. It does generate the correct GlobalID for the featureID. It just doesn't work in the callback. If you look at the URL being generated by the callback (which I can do if I test in Windows), it actually&amp;nbsp;&lt;EM&gt;is&lt;/EM&gt; a good URL...everything looks correct. But it doesn't actually work. If I just swap out the GlobalID parameter and hard-code it (and keep everything else the same), it works like a champ. It's very frustrating!&lt;/P&gt;&lt;LI-CODE lang="c"&gt;arcgis-survey123://?itemID=xxx&amp;amp;field:Pole_Key={GlobalID}&amp;amp;field:PoleNumber={PoleNumber}&amp;amp;field:PoleID={PoleID}&amp;amp;callback:submit=https%3A%2F%2Ffieldmaps.arcgis.app%2F%3FitemID%3Dxxx%26referenceContext%3DupdateFeature%26featureSourceURL%3Dhttps%3A%2F%2Fservices1.arcgis.com%2FdscgdziA6jUxpQJw%2Farcgis%2Frest%2Fservices%2Fxxx%2FFeatureServer%2F0%26featureID%3D{GlobalID}%26featureAttributes%3D%7B%22RetrofitStatus%22%3A%222%22%7D%0A&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Feb 2022 19:51:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/pass-attribute-field-as-url-parameter/m-p/1144254#M40563</guid>
      <dc:creator>PaulPetersen1</dc:creator>
      <dc:date>2022-02-15T19:51:13Z</dc:date>
    </item>
    <item>
      <title>Re: Pass attribute field as URL parameter</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/pass-attribute-field-as-url-parameter/m-p/1144991#M40602</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/16421"&gt;@DougBrowning&lt;/a&gt;&amp;nbsp;, this is now solved thanks to Esri Tech Support. I am now able to launch Survey123 from the parent point in FieldMaps, perform the survey on a related child record, and then use the callback to pass an attribute back into the original parent record in Field Maps, thus changing the symbol. Whew.&lt;/P&gt;&lt;P&gt;The tricks were:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Configure the URL as an Arcade expression, rather than manually&lt;/LI&gt;&lt;LI&gt;Use the URLEncode() arcade function where relevant, although there is a bug (BUG-000146960) associated with this function that limits its current use&lt;/LI&gt;&lt;LI&gt;Use the arcade expression&amp;nbsp;Mid($feature.globalid,1,36)&amp;nbsp; to strip out the brackets on the GlobalID value within the featureID parameter of the callback.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;So my final arcade expression looked something like shown below. It passes in a hard-coded value of "2" to the "RetrofitStatus" attribute field, which was what controls my layer symbology.&lt;/P&gt;&lt;P&gt;var S123urlsource = 'arcgis-survey123://?itemID=xxxxxx&amp;amp;field:Pole_Key='+$feature.globalid+'&amp;amp;callback:submit=';&lt;BR /&gt;var FMurlsource='&lt;A href="https://fieldmaps.arcgis.app" target="_blank"&gt;https://fieldmaps.arcgis.app&lt;/A&gt;?';&lt;BR /&gt;var FMparams='itemID%3Dxxxxxx%26referenceContext%3DupdateFeature%26featureSourceURL%3Dhttps://services1.arcgis.com/xxxx/arcgis/rest/services/xxxx/FeatureServer/0%26';&lt;BR /&gt;var FMGID=Mid($feature.globalid,1,36);&lt;BR /&gt;var FMAtt='%26featureAttributes%3D%7B%22RetrofitStatus%22%3A%222%22%7D%0A';&lt;BR /&gt;return Concatenate(S123urlsource,UrlEncode(FMurlsource),FMparams,'featureID%3D',FMGID,FMAtt);&lt;/P&gt;</description>
      <pubDate>Thu, 17 Feb 2022 00:23:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/pass-attribute-field-as-url-parameter/m-p/1144991#M40602</guid>
      <dc:creator>PaulPetersen1</dc:creator>
      <dc:date>2022-02-17T00:23:01Z</dc:date>
    </item>
    <item>
      <title>Re: Pass attribute field as URL parameter</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/pass-attribute-field-as-url-parameter/m-p/1207252#M44525</link>
      <description>&lt;P&gt;I have a&amp;nbsp;&lt;SPAN&gt;$feature.globalid=dfc3f832-d9d7-4097-91b3-69d10d33fea0 (in lower case in field Maps) and in Survey123, the rel_globalID = {DFC3F832-D9D7-4097-91B3-69D1033FEA0}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Is there a reason why the callback to Field Maps doesn't work&amp;nbsp; with the FeatureID even if this one is set with $feature.globalid (global id from Field Maps)&amp;nbsp; initially?&amp;nbsp; The submit update for the featureAttributes doesn't work.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you for your help!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Aug 2022 15:15:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/pass-attribute-field-as-url-parameter/m-p/1207252#M44525</guid>
      <dc:creator>YannickCabana</dc:creator>
      <dc:date>2022-08-29T15:15:51Z</dc:date>
    </item>
    <item>
      <title>Re: Pass attribute field as URL parameter</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/pass-attribute-field-as-url-parameter/m-p/1207268#M44526</link>
      <description>&lt;P&gt;I think you are seeing this&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/arcgis-field-maps-questions/field-maps-is-creating-lowercase-globalid-but-agol/m-p/1126721" target="_blank"&gt;https://community.esri.com/t5/arcgis-field-maps-questions/field-maps-is-creating-lowercase-globalid-but-agol/m-p/1126721&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/arcgis-pro-questions/globalid-inconsistent-display/m-p/291405" target="_blank"&gt;https://community.esri.com/t5/arcgis-pro-questions/globalid-inconsistent-display/m-p/291405&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Maybe&lt;/P&gt;</description>
      <pubDate>Mon, 29 Aug 2022 15:39:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/pass-attribute-field-as-url-parameter/m-p/1207268#M44526</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2022-08-29T15:39:52Z</dc:date>
    </item>
    <item>
      <title>Re: Pass attribute field as URL parameter</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/pass-attribute-field-as-url-parameter/m-p/1207293#M44527</link>
      <description>&lt;P&gt;Thank you DougBrowning for your answer.&lt;/P&gt;&lt;P&gt;For Field Maps layer,&lt;/P&gt;&lt;P&gt;In Pro, I see the globalID in lower case but with brackets and in AGOL, I see it without brackets.&lt;/P&gt;&lt;P&gt;Is there a solution to manage the callback from Survey to Field Maps even if the globalID from Field Maps is in lower case? Or if there is no solution?&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 29 Aug 2022 16:20:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/pass-attribute-field-as-url-parameter/m-p/1207293#M44527</guid>
      <dc:creator>YannickCabana</dc:creator>
      <dc:date>2022-08-29T16:20:51Z</dc:date>
    </item>
    <item>
      <title>Re: Pass attribute field as URL parameter</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/pass-attribute-field-as-url-parameter/m-p/1207299#M44528</link>
      <description>&lt;P&gt;AGOL just hides the brackets but they are there.&amp;nbsp; It is for sure confusing that Pro, AGOL, ArcMap, 123 and Field Maps are all different.&amp;nbsp; I have a bug with support on it.&lt;/P&gt;&lt;P&gt;If you are generating the URL with arcade I have seen people use Upper() or Lower() to convert it.&amp;nbsp; If not Arcade then no I do not know.&amp;nbsp; In theory GUID does not care but I am seeing it care at times which is weird and a big pain for sure.&lt;/P&gt;&lt;P&gt;Sorry all i got.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Aug 2022 16:37:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/pass-attribute-field-as-url-parameter/m-p/1207299#M44528</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2022-08-29T16:37:47Z</dc:date>
    </item>
    <item>
      <title>Re: Pass attribute field as URL parameter</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/pass-attribute-field-as-url-parameter/m-p/1231422#M46017</link>
      <description>&lt;P&gt;When you pass data back to Field Maps, is it possible to go ahead and have Fieldmaps automatically Submit the data that was passed from Survey123 without manually having to hit that button?&lt;/P&gt;</description>
      <pubDate>Mon, 14 Nov 2022 20:27:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/pass-attribute-field-as-url-parameter/m-p/1231422#M46017</guid>
      <dc:creator>DarenThompson</dc:creator>
      <dc:date>2022-11-14T20:27:55Z</dc:date>
    </item>
    <item>
      <title>Re: Pass attribute field as URL parameter</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/pass-attribute-field-as-url-parameter/m-p/1231436#M46018</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/332242"&gt;@DarenThompson&lt;/a&gt;&amp;nbsp;, I don't think so.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Nov 2022 20:43:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/pass-attribute-field-as-url-parameter/m-p/1231436#M46018</guid>
      <dc:creator>PaulPetersen1</dc:creator>
      <dc:date>2022-11-14T20:43:43Z</dc:date>
    </item>
    <item>
      <title>Re: Pass attribute field as URL parameter</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/pass-attribute-field-as-url-parameter/m-p/1319408#M51233</link>
      <description>&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Here would be a more dynamic expression: &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;itemID&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;'xxxxxx'&lt;/SPAN&gt;&lt;SPAN&gt;; &lt;/SPAN&gt;&lt;SPAN&gt;// Replace with your Survey123 item ID&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;field&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;'Pole_Key'&lt;/SPAN&gt;&lt;SPAN&gt;; &lt;/SPAN&gt;&lt;SPAN&gt;// Replace with the appropriate field name&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;attributeName&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;'RetrofitStatus'&lt;/SPAN&gt;&lt;SPAN&gt;; &lt;/SPAN&gt;&lt;SPAN&gt;// Replace with the desired attribute name&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;attributeValue&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;'2'&lt;/SPAN&gt;&lt;SPAN&gt;; &lt;/SPAN&gt;&lt;SPAN&gt;// Replace with the desired attribute value&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;survey123UrlSource&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;'arcgis-survey123://?itemID='&lt;/SPAN&gt;&lt;SPAN&gt; + &lt;/SPAN&gt;&lt;SPAN&gt;itemID&lt;/SPAN&gt;&lt;SPAN&gt; + &lt;/SPAN&gt;&lt;SPAN&gt;'&amp;amp;field:'&lt;/SPAN&gt;&lt;SPAN&gt; + &lt;/SPAN&gt;&lt;SPAN&gt;field&lt;/SPAN&gt;&lt;SPAN&gt; + &lt;/SPAN&gt;&lt;SPAN&gt;'='&lt;/SPAN&gt;&lt;SPAN&gt; + &lt;/SPAN&gt;&lt;SPAN&gt;$feature&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;globalid&lt;/SPAN&gt;&lt;SPAN&gt; + &lt;/SPAN&gt;&lt;SPAN&gt;'&amp;amp;callback:submit='&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;fieldMapsUrlSource&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;'&lt;A href="https://fieldmaps.arcgis.app" target="_blank"&gt;https://fieldmaps.arcgis.app&lt;/A&gt;?'&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;fieldMapsParams&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;'itemID%3D'&lt;/SPAN&gt;&lt;SPAN&gt; + &lt;/SPAN&gt;&lt;SPAN&gt;itemID&lt;/SPAN&gt;&lt;SPAN&gt; + &lt;/SPAN&gt;&lt;SPAN&gt;'%26referenceContext%3DupdateFeature%26featureSourceURL%3Dhttps://services1.arcgis.com/xxxx/arcgis/rest/services/xxxx/FeatureServer/0%26'&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;featureGlobalID&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;Mid&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;$feature&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;globalid&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;36&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;featureAttributes&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;'&amp;amp;featureAttributes='&lt;/SPAN&gt;&lt;SPAN&gt; + &lt;/SPAN&gt;&lt;SPAN&gt;URLEncode&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'{"'&lt;/SPAN&gt;&lt;SPAN&gt; + &lt;/SPAN&gt;&lt;SPAN&gt;attributeName&lt;/SPAN&gt;&lt;SPAN&gt; + &lt;/SPAN&gt;&lt;SPAN&gt;'":"'&lt;/SPAN&gt;&lt;SPAN&gt; + &lt;/SPAN&gt;&lt;SPAN&gt;attributeValue&lt;/SPAN&gt;&lt;SPAN&gt; + &lt;/SPAN&gt;&lt;SPAN&gt;'"}'&lt;/SPAN&gt;&lt;SPAN&gt;) + &lt;/SPAN&gt;&lt;SPAN&gt;'%0A'&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;return&lt;/SPAN&gt; &lt;SPAN&gt;survey123UrlSource&lt;/SPAN&gt;&lt;SPAN&gt; + &lt;/SPAN&gt;&lt;SPAN&gt;URLEncode&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;fieldMapsUrlSource&lt;/SPAN&gt;&lt;SPAN&gt;) + &lt;/SPAN&gt;&lt;SPAN&gt;fieldMapsParams&lt;/SPAN&gt;&lt;SPAN&gt; + &lt;/SPAN&gt;&lt;SPAN&gt;'featureID='&lt;/SPAN&gt;&lt;SPAN&gt; + &lt;/SPAN&gt;&lt;SPAN&gt;featureGlobalID&lt;/SPAN&gt;&lt;SPAN&gt; + &lt;/SPAN&gt;&lt;SPAN&gt;featureAttributes&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 16 Aug 2023 23:02:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/pass-attribute-field-as-url-parameter/m-p/1319408#M51233</guid>
      <dc:creator>AndrewPadilla</dc:creator>
      <dc:date>2023-08-16T23:02:06Z</dc:date>
    </item>
  </channel>
</rss>

