<?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 Embed an HTML web form in an ArcGIS Online popup using attributes? in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/embed-an-html-web-form-in-an-arcgis-online-popup/m-p/305603#M15340</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a parcel layer, with official parcel ID numbers from a county assessor.&amp;nbsp; I would like to create a direct link to the assessor's parcel information page inside the popup in ArcGIS Online using the ID attribute.&amp;nbsp; I have done this successfully with sites that use attributes in the URL query string, using the GET method, but now I'm working with a county site that submits data from a form using a POST request.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have successfully reproduced the Form in HTML, and it works when I type a Parcel ID number in the text box and click the Submit button.&amp;nbsp; I'm having no luck getting the Parcel ID from the parcel attribute to properly substitute into the form data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the relevant HTML in the popup:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;lt;form action='&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fsomesite%2Findex.php" target="_blank"&gt;http://somesite/index.php&lt;/A&gt;' method='post'&amp;gt;
&amp;nbsp; &amp;lt;input type='text' name='searchTerm' value='{ACCNO}'&amp;gt;
&amp;nbsp; &amp;lt;input type='submit' value='Assessor Info'&amp;gt;
&amp;lt;/form&amp;gt; &lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want the attribute {ACCNO} to substitute itself for the field value for that parcel, so that the data submitted from the form looks like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;searchTerm=123456789&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But what actually gets submitted from the popup window is this string:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN class="header-value source-code" style="font-family: Consolas, 'Lucida Console', monospace; margin-right: 1em; margin-top: 1px;"&gt;&lt;SPAN style="color: rgba(0, 0, 0, 0); font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;searchTerm=&amp;lt;span class='esriNumericValue'&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="color: rgba(0, 0, 0, 0); font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;123456789&lt;/SPAN&gt;&lt;SPAN style="color: rgba(0, 0, 0, 0); font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;&amp;lt;/span&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The external web server doesn't like all of that markup.&amp;nbsp; Is there a way to send attribute values in POST data without adding that extra &amp;lt;span&amp;gt; markup?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Justin Johnson to properly display the unrendered html&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 14:37:44 GMT</pubDate>
    <dc:creator>JustinJohnson2</dc:creator>
    <dc:date>2021-12-11T14:37:44Z</dc:date>
    <item>
      <title>Embed an HTML web form in an ArcGIS Online popup using attributes?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/embed-an-html-web-form-in-an-arcgis-online-popup/m-p/305603#M15340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a parcel layer, with official parcel ID numbers from a county assessor.&amp;nbsp; I would like to create a direct link to the assessor's parcel information page inside the popup in ArcGIS Online using the ID attribute.&amp;nbsp; I have done this successfully with sites that use attributes in the URL query string, using the GET method, but now I'm working with a county site that submits data from a form using a POST request.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have successfully reproduced the Form in HTML, and it works when I type a Parcel ID number in the text box and click the Submit button.&amp;nbsp; I'm having no luck getting the Parcel ID from the parcel attribute to properly substitute into the form data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the relevant HTML in the popup:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;lt;form action='&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fsomesite%2Findex.php" target="_blank"&gt;http://somesite/index.php&lt;/A&gt;' method='post'&amp;gt;
&amp;nbsp; &amp;lt;input type='text' name='searchTerm' value='{ACCNO}'&amp;gt;
&amp;nbsp; &amp;lt;input type='submit' value='Assessor Info'&amp;gt;
&amp;lt;/form&amp;gt; &lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want the attribute {ACCNO} to substitute itself for the field value for that parcel, so that the data submitted from the form looks like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;searchTerm=123456789&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But what actually gets submitted from the popup window is this string:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN class="header-value source-code" style="font-family: Consolas, 'Lucida Console', monospace; margin-right: 1em; margin-top: 1px;"&gt;&lt;SPAN style="color: rgba(0, 0, 0, 0); font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;searchTerm=&amp;lt;span class='esriNumericValue'&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="color: rgba(0, 0, 0, 0); font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;123456789&lt;/SPAN&gt;&lt;SPAN style="color: rgba(0, 0, 0, 0); font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;&amp;lt;/span&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The external web server doesn't like all of that markup.&amp;nbsp; Is there a way to send attribute values in POST data without adding that extra &amp;lt;span&amp;gt; markup?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Justin Johnson to properly display the unrendered html&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 14:37:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/embed-an-html-web-form-in-an-arcgis-online-popup/m-p/305603#M15340</guid>
      <dc:creator>JustinJohnson2</dc:creator>
      <dc:date>2021-12-11T14:37:44Z</dc:date>
    </item>
  </channel>
</rss>

