<?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: Custom URL from Collector Passing Attribute Values with Special Characters to Survey123 in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/custom-url-from-collector-passing-attribute-values/m-p/1082213#M36085</link>
    <description>&lt;P&gt;Hi all - 2 years later and I am still seeing the same issues with special characters persist in URLs.&amp;nbsp; I am using FieldMaps instead of Collector and find myself having to encode every special character using Arcade.&amp;nbsp; This is a laborious task and really should be unnecessary.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyone have a better workaround?&amp;nbsp; &amp;nbsp;Anyone at Esri have some insight????&lt;/P&gt;</description>
    <pubDate>Fri, 23 Jul 2021 15:32:14 GMT</pubDate>
    <dc:creator>Andrew-Bowne</dc:creator>
    <dc:date>2021-07-23T15:32:14Z</dc:date>
    <item>
      <title>Custom URL from Collector Passing Attribute Values with Special Characters to Survey123</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/custom-url-from-collector-passing-attribute-values/m-p/873132#M28660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a web map for use in Collector that has a custom URL in the pop-up to launch a Survey123 form. One of the fields that is passed through the custom URL tends to have a lot of values with apostrophes. In the Survey123 form, all the fields populate via the custom URL as expected until a value with an apostrophe is passed through, then the apostrophe does not appear and nothing after that auto-populates. An example is below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Field One:&amp;nbsp;&lt;/P&gt;&lt;P&gt;Compton Peak&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Field Two:&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #000000; background-color: #ffffff; border: 0px; font-weight: inherit;"&gt;Mary&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;&amp;lt;&amp;lt;&amp;lt; This should read "&lt;STRONG style="color: #000000; background-color: #ffffff; border: 0px; font-weight: inherit;"&gt;Mary's Rock&lt;/STRONG&gt;"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Field Three:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;&amp;lt;&amp;lt; This should read "Rock Castle Gorge"&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This behavior only appears on the iPad and Android mobile devices. When tested in the Windows version of the Survey123 application, all the values come through as expected.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jun 2019 15:08:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/custom-url-from-collector-passing-attribute-values/m-p/873132#M28660</guid>
      <dc:creator>MalloryGill</dc:creator>
      <dc:date>2019-06-17T15:08:23Z</dc:date>
    </item>
    <item>
      <title>Re: Custom URL from Collector Passing Attribute Values with Special Characters to Survey123</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/custom-url-from-collector-passing-attribute-values/m-p/873133#M28661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/273373"&gt;Mallory,&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you build the custom url for Survey123, have you tried to encode any strings with an apostrophe as ‘%27’ for the apostrophe, such as “Mary%27s_Rock”?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jun 2019 01:48:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/custom-url-from-collector-passing-attribute-values/m-p/873133#M28661</guid>
      <dc:creator>LanceCole</dc:creator>
      <dc:date>2019-06-18T01:48:08Z</dc:date>
    </item>
    <item>
      <title>Re: Custom URL from Collector Passing Attribute Values with Special Characters to Survey123</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/custom-url-from-collector-passing-attribute-values/m-p/873134#M28662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey &lt;A href="https://community.esri.com/migrated-users/67060"&gt;Lance Cole&lt;/A&gt;&amp;nbsp;- I had the same thought, but we're passing through a field name rather than a specific value for the field. So the URL reads&amp;nbsp;&lt;EM style="color: #000080; background-color: #ffffff; border: 0px;"&gt;arcgis-survey123://?itemID=abcdefghijklmnopqrstuvwxyz&amp;amp;field:TrailName={trail_name} &lt;/EM&gt;rather than&amp;nbsp;&lt;EM style="color: #000080; background-color: #ffffff; border: 0px;"&gt;arcgis-survey123://?itemID=abcdefghijklmnopqrstuvwxyz&amp;amp;field:TrailName="Mary's Rock".&amp;nbsp;&lt;/EM&gt;I couldn't think of any way to add this encoding on a conditional basis anytime an apostrophe comes up in the passed field's value. But I'm definitely open to any ideas or possible workarounds I've missed!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks for your help!&lt;/P&gt;&lt;P&gt;Mallory&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jun 2019 15:02:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/custom-url-from-collector-passing-attribute-values/m-p/873134#M28662</guid>
      <dc:creator>MalloryGill</dc:creator>
      <dc:date>2019-06-18T15:02:03Z</dc:date>
    </item>
    <item>
      <title>Re: Custom URL from Collector Passing Attribute Values with Special Characters to Survey123</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/custom-url-from-collector-passing-attribute-values/m-p/873135#M28663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/187909" target="_blank"&gt;Mallory&lt;/A&gt;‌,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can create custom expressions for use in your Pop-ups using Arcade.&amp;nbsp; Please see &lt;A _jive_internal="true" href="https://community.esri.com/thread/202175-attribute-expressions-in-agol" target="_blank"&gt;Attribute Expressions in AGOL&lt;/A&gt; and the &lt;A href="https://developers.arcgis.com/arcade/function-reference/" rel="nofollow noopener noreferrer" target="_blank"&gt;Arcade Function Index.&lt;/A&gt;&amp;nbsp; You can use an expression along the lines of the following in Arcade.&amp;nbsp; This will replace a apostrophe with "%27%" if it is in the string or just return the original string if not.&amp;nbsp; This would need to be modified for strings that could contain multiple apostrophe's.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;Var t = $feature.trail_name
IIf (Find("'", t)&amp;gt;0, Replace(t, "'", "%27%"), t)‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then in your hyperlink reference the expression rather than the field: &lt;SPAN style="background-color: #ffffff; border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; color: #000080; font-family: arial,helvetica,&amp;amp;quot; helvetica neue&amp;amp;quot;,verdana,sans-serif; font-size: 15px; font-style: italic; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; outline-color: invert; outline-style: none; outline-width: 0px; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; vertical-align: baseline; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; padding: 0px; margin: 0px; border: 0px none #000080;"&gt;&lt;EM&gt;arcgis-survey123://?itemID=abcdefghijklmnopqrstuvwxyz&amp;amp;field:TrailName={expression/expr0} &lt;/EM&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note, the number of the expression "expr0" will be dependent upon your setup.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;1) Open the Feature Map in AGOL&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;2) Select "Configure Pop-up" for the feature you would like to modify&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;3) Scroll down to the Attributes Expressions and click the ADD button&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;IMG __jive_id="450645" alt="Attributes Expressions" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/450645_Capture1.JPG" /&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;4) Build the expression something along the lines as below.&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;IMG __jive_id="450656" alt="Custom Expression" class="image-2 jive-image" height="443" src="https://community.esri.com/legacyfs/online/450656_Capture1.JPG" width="737" /&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;5) This expression will now be available for use in constructing your Pop-up&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;IMG __jive_id="450657" alt="Custom Attribute Display" class="image-3 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/450657_Capture1.JPG" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 10:55:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/custom-url-from-collector-passing-attribute-values/m-p/873135#M28663</guid>
      <dc:creator>LanceCole</dc:creator>
      <dc:date>2021-12-12T10:55:34Z</dc:date>
    </item>
    <item>
      <title>Re: Custom URL from Collector Passing Attribute Values with Special Characters to Survey123</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/custom-url-from-collector-passing-attribute-values/m-p/873136#M28664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/67060"&gt;Lance Cole&lt;/A&gt;this&amp;nbsp;looks like exactly what I need - thank you!! I'll give this a go later this week&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for all of your help!&lt;/P&gt;&lt;P&gt;Mallory&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jun 2019 16:39:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/custom-url-from-collector-passing-attribute-values/m-p/873136#M28664</guid>
      <dc:creator>MalloryGill</dc:creator>
      <dc:date>2019-06-18T16:39:03Z</dc:date>
    </item>
    <item>
      <title>Re: Custom URL from Collector Passing Attribute Values with Special Characters to Survey123</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/custom-url-from-collector-passing-attribute-values/m-p/873137#M28665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/67060" target="_blank"&gt;Lance Cole&lt;/A&gt;- this worked! I had to tweak the arcade expression just a bit, the expression I ended up using is below&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;Var t = $feature["Trail_Name"]
IIf (Find("'", t)&amp;gt;0, Replace(t, "'", "%27"), t)‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;And a couple Esri quirks I found as well - when using the custom URL link from a web map, the link attempts to encode the % sign that I'm manually inserting above, adding some extra unexpected characters to the Survey123 form, BUT when the link is clicked from Collector, it works exactly as expected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also found that this is currently only supported in Collector for iOS devices. For android devices, the Collector app doesn't honor the arcade expression being sent through (yet) and that field just shows up as a blank line. However, the Beta version of Collector for android (also available in the Google Play Store) does support the arcade expression, so the link and resulting population in Survey123 shows the expected result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again for all of your help!&lt;/P&gt;&lt;P&gt;Mallory&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 10:55:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/custom-url-from-collector-passing-attribute-values/m-p/873137#M28665</guid>
      <dc:creator>MalloryGill</dc:creator>
      <dc:date>2021-12-12T10:55:37Z</dc:date>
    </item>
    <item>
      <title>Re: Custom URL from Collector Passing Attribute Values with Special Characters to Survey123</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/custom-url-from-collector-passing-attribute-values/m-p/1082213#M36085</link>
      <description>&lt;P&gt;Hi all - 2 years later and I am still seeing the same issues with special characters persist in URLs.&amp;nbsp; I am using FieldMaps instead of Collector and find myself having to encode every special character using Arcade.&amp;nbsp; This is a laborious task and really should be unnecessary.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyone have a better workaround?&amp;nbsp; &amp;nbsp;Anyone at Esri have some insight????&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jul 2021 15:32:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/custom-url-from-collector-passing-attribute-values/m-p/1082213#M36085</guid>
      <dc:creator>Andrew-Bowne</dc:creator>
      <dc:date>2021-07-23T15:32:14Z</dc:date>
    </item>
    <item>
      <title>Re: Custom URL from Collector Passing Attribute Values with Special Characters to Survey123</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/custom-url-from-collector-passing-attribute-values/m-p/1235440#M46250</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/2929"&gt;@IsmaelChivite&lt;/a&gt;&amp;nbsp;is there an official solution for passing attributes with special characters to Survey123?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Nov 2022 15:55:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/custom-url-from-collector-passing-attribute-values/m-p/1235440#M46250</guid>
      <dc:creator>AustinCanty1</dc:creator>
      <dc:date>2022-11-28T15:55:46Z</dc:date>
    </item>
  </channel>
</rss>

