<?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 Feature Info widget colours don't match Popup when using HTML in ArcGIS Experience Builder Questions</title>
    <link>https://community.esri.com/t5/arcgis-experience-builder-questions/feature-info-widget-colours-don-t-match-popup-when/m-p/1328876#M8311</link>
    <description>&lt;P&gt;I'm using arcade expressions to populate a complex popup lots of HTML involved to create a tall and wide table, hence the fact I am using the feature info widget to display it, I am supposed to be matching corporate colours. when viewed in the popup it works grand I can have a white text on a dark background but when it populates in the feature info widget the colour changes. Screen grab below gives a good idea of what is happening.&amp;nbsp;&lt;/P&gt;&lt;P&gt;If anyone has any suggestions or has encountered this before I would be grateful if they could put me on the right track.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LarryMcEvoy70_0-1694722260058.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/80725i9868D5FE095A9D89/image-size/large?v=v2&amp;amp;px=999" role="button" title="LarryMcEvoy70_0-1694722260058.png" alt="LarryMcEvoy70_0-1694722260058.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 14 Sep 2023 20:16:41 GMT</pubDate>
    <dc:creator>LarryMcEvoy70</dc:creator>
    <dc:date>2023-09-14T20:16:41Z</dc:date>
    <item>
      <title>Feature Info widget colours don't match Popup when using HTML</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/feature-info-widget-colours-don-t-match-popup-when/m-p/1328876#M8311</link>
      <description>&lt;P&gt;I'm using arcade expressions to populate a complex popup lots of HTML involved to create a tall and wide table, hence the fact I am using the feature info widget to display it, I am supposed to be matching corporate colours. when viewed in the popup it works grand I can have a white text on a dark background but when it populates in the feature info widget the colour changes. Screen grab below gives a good idea of what is happening.&amp;nbsp;&lt;/P&gt;&lt;P&gt;If anyone has any suggestions or has encountered this before I would be grateful if they could put me on the right track.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LarryMcEvoy70_0-1694722260058.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/80725i9868D5FE095A9D89/image-size/large?v=v2&amp;amp;px=999" role="button" title="LarryMcEvoy70_0-1694722260058.png" alt="LarryMcEvoy70_0-1694722260058.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Sep 2023 20:16:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/feature-info-widget-colours-don-t-match-popup-when/m-p/1328876#M8311</guid>
      <dc:creator>LarryMcEvoy70</dc:creator>
      <dc:date>2023-09-14T20:16:41Z</dc:date>
    </item>
    <item>
      <title>Re: Feature Info widget colours don't match Popup when using HTML</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/feature-info-widget-colours-don-t-match-popup-when/m-p/1338089#M8727</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/437577"&gt;@LarryMcEvoy70&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thanks for your feedback. This is because ExB overwrite the theme I think, which is bug here for the cutom HTML styles. Would you be able to share the arcade expression so we can take a further look?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Wei&lt;/P&gt;</description>
      <pubDate>Mon, 16 Oct 2023 03:30:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/feature-info-widget-colours-don-t-match-popup-when/m-p/1338089#M8727</guid>
      <dc:creator>Wei_Ying</dc:creator>
      <dc:date>2023-10-16T03:30:50Z</dc:date>
    </item>
    <item>
      <title>Re: Feature Info widget colours don't match Popup when using HTML</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/feature-info-widget-colours-don-t-match-popup-when/m-p/1338148#M8734</link>
      <description>&lt;P&gt;Hi Wei,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the feedback, below is one of the expressions used hope it helps&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Larry&lt;/P&gt;&lt;LI-CODE lang="java"&gt;/* 
Open the Suggestions tab and choose a template to get started creating different content types for your pop-up. 
To learn more about using Arcade to create pop-up content visit: 
https://developers.arcgis.com/arcade/guide/profiles/#popup-element 
*/

function planninghistory () {
Var register=FeatureSetById($map, /* Planning_Register */ "Planning_Register_4480")
var history=Intersects($feature,register);
var ordered=Orderby(history, 'ref DESC');
var urlbase='&amp;lt;a href="https://planning.agileapplications.ie/southdublin/application-details/?ref='
var list=''
	for(var I in ordered){
  	list += `${urlbase}${I.REF}"&amp;gt; ${I.REF} &amp;lt;/a&amp;gt;&amp;amp;nbsp`
	}
	if (count(list)==0){
		return "No Planning History"
	}else return list
}

function units () {
var x=$feature["FIRST_FIRST_MaxDensity"]
var y=$feature["FIRST_FIRST_MinDensity"]
var ha =$feature.areaHA
var z=''

if (x &amp;gt;0){
   z= Floor(((x+y)/2*ha))
}
else {z='Not a Core Strategy Site'}
return z
}

function enforcementHist () {
//Enforcement History 7
Var register =FeatureSetById($map, /* Planning Enforcement */ "Planning_Enforcement_3452")
var history=Intersects($feature,register);
var list=''
for(var I in history){
    list += ` ${I.REF},`
}
if (count(list)&amp;gt;0){
return left(list, count(list)-1);}
else {
  console('Not Sure')
    return "No Enforcements mapped, note the enforcement mapping is incomplete"
}
	
}

function housecountinfo () {
var resdets=FeatureSetById($map, /* Residential Permissions */ "18330d672f7-layer-22")
var resact=Intersects($feature,resdets)
var stats = GroupBy(resact, 
    [ { name: "Status", expression: "Status" },
    ],
    [
        { name: 'Units', expression: 'units', statistic: 'Sum' }
        ]
  );
var list=''
 if (count(stats)&amp;gt;0){
     for (var x in stats){
         var decoded=decode (x.status, 1,'Not Commenced ',2,'Under Construction ',3,'Completed ','Expired/Superseeded/Quashed consents ')
         list += decoded + x.units + ' units' +TextFormatting.NewLine 

         
     }
 }
 else {
     list = 'No House Count Info'
 }
 return list	
}

var list=planninghistory()
var projunits=units()
var enforce=enforcementHist()
var resconst=housecountinfo()

var result=`
&amp;lt;div style="width: 100%"&amp;gt;
&amp;lt;figure class="table"&amp;gt;
  &amp;lt;table width="100%" cellpadding="0px" cellspacing="3px" &amp;gt;
    &amp;lt;tbody style="width: 100%"&amp;gt;
	  &amp;lt;tr valign="top"&amp;gt;
      &amp;lt;td style="background-color: #425a6c; padding: 5px; text-align:left" colspan="6"  &amp;gt;
        &amp;lt;strong style="color:white;"&amp;gt;&amp;lt;font color="#FFFBFB"&amp;gt;Site Details for Site ${$feature.PARCEL_ID}&amp;lt;/font&amp;gt;&amp;lt;/strong&amp;gt;
			&amp;lt;/td&amp;gt;
	  &amp;lt;/tr&amp;gt;	
    &amp;lt;tr valign="top"&amp;gt;
      &amp;lt;td width="25%" style="background-color: #CFD0CE; padding: 5px; text-align:left" colspan="1"  &amp;gt;
        &amp;lt;strong &amp;gt;Neighbourhood&amp;lt;/strong&amp;gt;
			&amp;lt;/td&amp;gt;
			&amp;lt;td width="25%" style="background-color: #EFEFEF; padding: 5px; text-align:left" colspan="1"  &amp;gt;
    	  ${DomainName($feature, "Neighbourhood")}
			&amp;lt;/td&amp;gt;
			&amp;lt;td width="25%" style="background-color: #CFD0CE; padding: 5px; text-align:left" colspan="1"  &amp;gt;
        &amp;lt;strong &amp;gt;Site Area&amp;lt;/strong&amp;gt;
			&amp;lt;/td&amp;gt;
			&amp;lt;td width="25%" style="background-color: #EFEFEF; padding: 5px; text-align:left" colspan="1"  &amp;gt;
        ${Round($feature.areaHA,3)}
			&amp;lt;/td&amp;gt;
		&amp;lt;/tr&amp;gt;
		&amp;lt;tr valign="top"&amp;gt;
			&amp;lt;td width="25%" style="background-color: #CFD0CE; padding: 5px; text-align:left" colspan="1"  &amp;gt;
          &amp;lt;strong &amp;gt;Zoning&amp;lt;/strong&amp;gt;
			&amp;lt;/td&amp;gt;
			&amp;lt;td width="25%" style="background-color: #EFEFEF; padding: 5px; text-align:left" colspan="1"  &amp;gt;
          ${$feature.ZONE_ORIG}
			&amp;lt;/td&amp;gt;
      &amp;lt;td width="25%" style="background-color: #CFD0CE; padding: 5px; text-align:left" colspan="1"  &amp;gt;
          &amp;lt;strong &amp;gt;Greenfield / Brownfield&amp;lt;/strong&amp;gt;
			&amp;lt;/td&amp;gt;
			&amp;lt;td width="25%" style="background-color: #EFEFEF; padding: 5px; text-align:left" colspan="1"  &amp;gt;
          ${DomainName($feature, "FIRST_classification")}
			&amp;lt;/td&amp;gt;
		&amp;lt;/tr&amp;gt;
		&amp;lt;tr valign="top"&amp;gt;
			&amp;lt;td width="25%" style="background-color: #CFD0CE; padding: 5px; text-align:left" colspan="1"  &amp;gt;
          &amp;lt;strong &amp;gt;Existing Residental Property&amp;lt;/strong&amp;gt;
			&amp;lt;/td&amp;gt;
			&amp;lt;td width="25%" style="background-color: #EFEFEF; padding: 5px; text-align:left" colspan="1"  &amp;gt;
          ${iif ($feature["sum_residential_delivery_points"]&amp;gt;0,'YES','NO') }
			&amp;lt;/td&amp;gt;
			&amp;lt;td width="25%" style="background-color: #CFD0CE; padding: 5px; text-align:left" colspan="1"  &amp;gt;
          &amp;lt;strong &amp;gt;Potential Units&amp;lt;/strong&amp;gt;
			&amp;lt;/td&amp;gt;
			&amp;lt;td width="25%" style="background-color: #EFEFEF; padding: 5px; text-align:left" colspan="1"  &amp;gt;
  	       ${projunits}
			&amp;lt;/td&amp;gt;
	  &amp;lt;/tr&amp;gt;
	  &amp;lt;tr valign="top"&amp;gt;
        &amp;lt;td width="25%" style="background-color: #CFD0CE; padding: 5px; text-align: left" &amp;gt;
          &amp;lt;strong&amp;gt;Planning History&amp;lt;/strong&amp;gt;
        &amp;lt;/td&amp;gt;
				&amp;lt;td td width="75%" style="background-color: #EFEFEF; padding: 5px; text-align: left" colspan="5" &amp;gt;
				${list}
		    &amp;lt;/td&amp;gt;
    &amp;lt;/tr&amp;gt;
		&amp;lt;tr valign="top"&amp;gt;
        &amp;lt;td width="25%" style="background-color: #CFD0CE; padding: 5px; text-align: left" &amp;gt;
          &amp;lt;strong&amp;gt;Enforcement History&amp;lt;/strong&amp;gt;
        &amp;lt;/td&amp;gt;
				&amp;lt;td td width="75%" style="background-color: #EFEFEF; padding: 5px; text-align: left" colspan="5" &amp;gt;
					${enforce}
	      &amp;lt;/td&amp;gt;
    &amp;lt;/tr&amp;gt;
		&amp;lt;tr valign="top"&amp;gt;
        &amp;lt;td width="25%" style="background-color: #CFD0CE; padding: 5px; text-align: left" &amp;gt;
          &amp;lt;strong&amp;gt;Residential Construction&amp;lt;/strong&amp;gt;
        &amp;lt;/td&amp;gt;
				&amp;lt;td td width="75%" style="background-color: #EFEFEF; padding: 5px; text-align: left" colspan="5" &amp;gt;
					${resconst}
	      &amp;lt;/td&amp;gt;
    &amp;lt;/tr&amp;gt;
		&amp;lt;/tbody&amp;gt;
	&amp;lt;/table&amp;gt;
&amp;lt;/figure&amp;gt;
&amp;lt;/div&amp;gt;`

return { 
	type : 'text', 
	text : result
}
&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Oct 2023 11:01:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/feature-info-widget-colours-don-t-match-popup-when/m-p/1338148#M8734</guid>
      <dc:creator>LarryMcEvoy70</dc:creator>
      <dc:date>2023-10-16T11:01:39Z</dc:date>
    </item>
    <item>
      <title>Re: Feature Info widget colours don't match Popup when using HTML</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/feature-info-widget-colours-don-t-match-popup-when/m-p/1338478#M8754</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/437577"&gt;@LarryMcEvoy70&lt;/a&gt;&amp;nbsp; could you confirm if you are choose "Respect the source" option in FeatureInfo setting?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="WeiYing1_0-1697501610635.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/83195iF4BCEF35ACC982D5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="WeiYing1_0-1697501610635.png" alt="WeiYing1_0-1697501610635.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Oct 2023 00:13:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/feature-info-widget-colours-don-t-match-popup-when/m-p/1338478#M8754</guid>
      <dc:creator>Wei_Ying</dc:creator>
      <dc:date>2023-10-17T00:13:53Z</dc:date>
    </item>
    <item>
      <title>Re: Feature Info widget colours don't match Popup when using HTML</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/feature-info-widget-colours-don-t-match-popup-when/m-p/1338518#M8759</link>
      <description>&lt;P&gt;Hi Wei,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have read about this setting but I don't appear to have this setting, I assume it should be in the style tab or the content tab neither appears to have it.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LarryMcEvoy70_0-1697533165369.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/83204i2DAD223CB84F1C75/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LarryMcEvoy70_0-1697533165369.png" alt="LarryMcEvoy70_0-1697533165369.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LarryMcEvoy70_1-1697533245819.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/83205i6CF2FDAE25F9230A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LarryMcEvoy70_1-1697533245819.png" alt="LarryMcEvoy70_1-1697533245819.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Oct 2023 09:00:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/feature-info-widget-colours-don-t-match-popup-when/m-p/1338518#M8759</guid>
      <dc:creator>LarryMcEvoy70</dc:creator>
      <dc:date>2023-10-17T09:00:58Z</dc:date>
    </item>
  </channel>
</rss>

