<?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 HTML not working in field in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/html-not-working-in-field/m-p/1640610#M65899</link>
    <description>&lt;P&gt;I'm trying to place the following code in a field:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;&amp;lt;a target="_blank"
href="https://www.keepersofthewater.ca/water-monitoring-site-uar-e3"&amp;lt;/a&amp;gt;&amp;lt;button style="background-color: #1F77B5; color: white; font-size: 18px; padding: 18px; border:none;"&amp;gt;View Site Photos, Water Monitoring Data &amp;amp; Traditional Knowledge&amp;lt;/button&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;It works fine when I run it in the W3Schools validator, but when I paste it into a field in my map, I get an error. Interestingly enough, the errors vary with each attempt. Sometimes the error says the HTML is not valid, sometimes it says the operation is not supported.&lt;/P&gt;&lt;P&gt;I've used HTML in a field before (using an &amp;lt;a&amp;gt; element like the one in the code above, and that worked all right. But something is glitching with the &amp;lt;button&amp;gt; element or some aspect of the styling.&lt;/P&gt;&lt;P&gt;Can anyone help?&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 08 Aug 2025 22:03:21 GMT</pubDate>
    <dc:creator>AndyKubrin</dc:creator>
    <dc:date>2025-08-08T22:03:21Z</dc:date>
    <item>
      <title>HTML not working in field</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/html-not-working-in-field/m-p/1640610#M65899</link>
      <description>&lt;P&gt;I'm trying to place the following code in a field:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;&amp;lt;a target="_blank"
href="https://www.keepersofthewater.ca/water-monitoring-site-uar-e3"&amp;lt;/a&amp;gt;&amp;lt;button style="background-color: #1F77B5; color: white; font-size: 18px; padding: 18px; border:none;"&amp;gt;View Site Photos, Water Monitoring Data &amp;amp; Traditional Knowledge&amp;lt;/button&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;It works fine when I run it in the W3Schools validator, but when I paste it into a field in my map, I get an error. Interestingly enough, the errors vary with each attempt. Sometimes the error says the HTML is not valid, sometimes it says the operation is not supported.&lt;/P&gt;&lt;P&gt;I've used HTML in a field before (using an &amp;lt;a&amp;gt; element like the one in the code above, and that worked all right. But something is glitching with the &amp;lt;button&amp;gt; element or some aspect of the styling.&lt;/P&gt;&lt;P&gt;Can anyone help?&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Aug 2025 22:03:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/html-not-working-in-field/m-p/1640610#M65899</guid>
      <dc:creator>AndyKubrin</dc:creator>
      <dc:date>2025-08-08T22:03:21Z</dc:date>
    </item>
    <item>
      <title>Re: HTML not working in field</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/html-not-working-in-field/m-p/1640703#M65900</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not sure you have this constructed properly.&amp;nbsp; Are you trying to present the User with a Button to click that will launch the URL specified in the &amp;lt;a&amp;gt; tag ?&lt;/P&gt;&lt;P&gt;Either move the &amp;lt;/a&amp;gt; to the end of thline so that the &amp;lt;button&amp;gt; is inside the &amp;lt;a&amp;gt; tag,&lt;/P&gt;&lt;P&gt;Or you need to specify a Class in the &amp;lt;a&amp;gt; tag of type button.&amp;nbsp; Getting the CSS in place may be a little harder.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/8357058/how-to-make-an-html-anchor-tag-or-link-look-like-a-button" target="_blank" rel="noopener"&gt;https://stackoverflow.com/questions/8357058/how-to-make-an-html-anchor-tag-or-link-look-like-a-button&lt;/A&gt;&lt;/P&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>Sun, 10 Aug 2025 16:31:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/html-not-working-in-field/m-p/1640703#M65900</guid>
      <dc:creator>JeffSilberberg</dc:creator>
      <dc:date>2025-08-10T16:31:55Z</dc:date>
    </item>
    <item>
      <title>Re: HTML not working in field</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/html-not-working-in-field/m-p/1640965#M65904</link>
      <description>&lt;P&gt;button is not a supported HTML tag. See&amp;nbsp;&lt;A href="https://doc.arcgis.com/en/arcgis-online/reference/supported-html.htm" target="_blank"&gt;Supported HTML—ArcGIS Online Help | Documentation&lt;/A&gt;&amp;nbsp;for supported tags and attributes.&lt;/P&gt;&lt;P&gt;A workaround is use a div tag and style it like a button. Here is an example largely copied from &lt;A href="https://github.com/Esri/arcade-expressions/blob/master/popup/Display%20Chip.md" target="_blank"&gt;arcade-expressions/popup/Display Chip.md at master · Esri/arcade-expressions&lt;/A&gt;:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;div style="display:inline-block;height:8%;vertical-align:middle;background:blue;border-radius:25px;padding:5px 20px;text-align:center;margin: 2px;color:white;"&amp;gt;&amp;lt;a href="https://github.com/Esri/arcade-expressions/blob/master/popup/Display%20Chip.md" style="color:white;text-decoration:none;"&amp;gt;see example from esri&amp;lt;/a&amp;gt; &amp;lt;/div&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Aug 2025 17:10:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/html-not-working-in-field/m-p/1640965#M65904</guid>
      <dc:creator>f92k</dc:creator>
      <dc:date>2025-08-11T17:10:07Z</dc:date>
    </item>
    <item>
      <title>Re: HTML not working in field</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/html-not-working-in-field/m-p/1643495#M65994</link>
      <description>&lt;P&gt;Thanks,&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/140376"&gt;@JeffSilberberg&lt;/a&gt;&amp;nbsp;. Map Viewer accepted my code with the &amp;lt;/a&amp;gt; tag at the end of the line, but the HTML rendered incorrectly in my embedded map. But&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/713831"&gt;@f92k&lt;/a&gt;'s solution worked great, so I'm going with that.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Aug 2025 22:48:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/html-not-working-in-field/m-p/1643495#M65994</guid>
      <dc:creator>BrandonGauchier</dc:creator>
      <dc:date>2025-08-19T22:48:26Z</dc:date>
    </item>
    <item>
      <title>Re: HTML not working in field</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/html-not-working-in-field/m-p/1643496#M65995</link>
      <description>&lt;P&gt;Thanks,&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/713831"&gt;@f92k&lt;/a&gt;, that worked great. Sorry for not posting sooner, but I was offline last week.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Aug 2025 22:49:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/html-not-working-in-field/m-p/1643496#M65995</guid>
      <dc:creator>BrandonGauchier</dc:creator>
      <dc:date>2025-08-19T22:49:13Z</dc:date>
    </item>
  </channel>
</rss>

