My custom HTML popup keeps changing the code. How do I fix this?

316
1
11-12-2019 07:11 PM
ChadHenry
New Contributor

I have the following code as my popup

<table style= "background-color:#E1E1E1">
<tbody>
<tr><td colspan="2" style= "background-color:#3C4859"> <b> <font color = "#FFFFFF">{counties_NAME}</font></b></td></tr>
<tr><td colspan="2"> <b> Income spent on Housing &amp; Transportation...</b> </td></tr>
<tr>
<td>
<table>
<tbody>
<tr> <td style= "background-color:#FFFFFF" height="15" width="15"> </td></tr>
<tr> <td style= "background-color:#FFC171" height="15" width="15"> </td></tr>
<tr> <td style= "background-color:#FD7155" height="15" width="15"> </td></tr>
<tr> <td style= "background-color:#E94749" height="15" width="15"> </td></tr>
<tr> <td style= "background-color:#C03351" height="15" width="15"> </td></tr>
</tbody></table>
</td>
<td width="250"><font color="{expression/expr0}" size="9">{ht_index_data_v3_csv_ht_ami}%</font></td>
</tr>
</tbody></table>

It works fine for a while, but then all the background colors will disappear. The code then looks like this without me changing anything. 

<table>
<tbody>
<tr><td colspan="2"> <b> <font>{counties_NAME}</font></b></td></tr>
<tr><td colspan="2"> <b> Income spent on Housing &amp; Transportation...</b> </td></tr>
<tr>
<td>
<table>
<tbody>
<tr> <td height="15" width="15"> </td></tr>
<tr> <td height="15" width="15"> </td></tr>
<tr> <td height="15" width="15"> </td></tr>
<tr> <td height="15" width="15"> </td></tr>
<tr> <td height="15" width="15"> </td></tr>
</tbody></table>
</td>
<td width="250"><font color="{expression/expr0}" size="9">{ht_index_data_v3_csv_ht_ami}%</font></td>
</tr>
</tbody></table>

Any help with the issue would be greatly appreciated!

Tags (4)
0 Kudos
1 Reply
by Anonymous User
Not applicable

Hi Chad Henry‌,

How long does the pop-up work before the colors are stripped?

All the HTML Tags used look to be supported, and if they weren't they would be filtered upon saving the pop-up: Supported HTML—ArcGIS Online Help | Documentation 

I have your HTML set up in a pop-up right now and it is currently working - I will keep an eye on it and see if anything changes. If you haven't contacted Esri Support yet, they can take a closer look at the issue. Let me know if you want me to help out getting a Support case created. 

Thanks,

-Peter

0 Kudos