Feature Info widget not showing Arcade

1489
10
Jump to solution
03-17-2022 08:26 AM
dgiersz_cuyahoga
Occasional Contributor

The Feature Info widget in my AGOL ExB app is not showing any of my custom popups.

The popups that are just text and then a {field} only show the field.

The popups that return Arcade are completely blank.

Are there any outstanding issues with the Feature Info widget and custom popups or certain Arcade functions?

 

#CLE #sloth
0 Kudos
1 Solution

Accepted Solutions
dgiersz_cuyahoga
Occasional Contributor

Yes, seems to be a compatibility issue. Only the Arcade content elements are an issue, everything else is working fine.

#CLE #sloth

View solution in original post

0 Kudos
10 Replies
RaenaDeMaris
New Contributor III

Hi @dgiersz_cuyahogYes, that’s a known issue, I believe. I had the same problem, and found this thread from January of this year where it’s stated that complex arcade expressions don’t function in experience builder:

https://community.esri.com/t5/arcgis-experience-builder-ideas/configure-feature-info-widget-separate...

Hopefully that will be fixed soon!

rbd
0 Kudos
jcarlson
MVP Esteemed Contributor

How is your Arcade being used in the popup? When I reference Arcade expressions in a traditional Fields List, these come in just fine.

jcarlson_0-1647532303070.png

The fields shown above are all based on Arcade expressions, and appear in the Feature Info widget just fine.

- Josh Carlson
Kendall County GIS
0 Kudos
dgiersz_cuyahoga
Occasional Contributor

***Edit: this was caused by bad data. It works fine. Only the Arcade content elements fail to display in the Feature Info. 

 

The complex Arcade doesn't come over at all.

The base popup is a basic custom config of text and field parameters and only the text comes over.
Custom Popup Config:

Parcel Address:
{par_addr_all}
Current Tax Year: {cur_tax_year}
Current Market Total: {tax_market_total} 
Previous Market Total ({prev_tax_year}): {prev_market_total}
Year-over-year Change: {yoy_tax_val_change}
Percent Change: {per_change_tax_total} 
Current Assessed Value: {tax_assessed_total}
Previous Assessed Value ({prev_tax_year}): {prev_assessed_total}
Year-over-year Change: {yoy_assess_val_change}
Percent Change: {per_change_assess_total}
 
View Property Summary Sheet in MyPlace

 

Displayed in Feature Info:

dgiersz_cuyahoga_0-1647534539923.png

 

#CLE #sloth
0 Kudos
RaenaDeMaris
New Contributor III

@jcarlson for me, it was complex arcade expressions using variables along with HTML. They work in the map pop-up in new map viewer, but the popups don't translate to ExB feature info widget even though it's set to "respect the source".

Example: 

var expr1 = IIF(IsEmpty($feature.VictoryTitle), 'none', 'inline') // {expression/expr1}
var expr2 = IIF(IsEmpty($feature.VictDescrip), 'none', 'inline') // {expression/expr2}
var Cat_Descrip = $feature.CatDescrip
var expr8 = Decode(Cat_Descrip, "Agricultural Pollution", "61C4B1", "Climate Change", "005A92", "Energy Pollution", "93A8B5", "Industrial Pollution", "f18e62", "Lack of Enforcement", "009884", "Plastics Pollution", "767298", "Sewage", "CEAA98", "Stormwater Pollution", "83ca53", "Urban Growth/Development", "CC6255", "Wetlands Destruction", "dbcb13", "none")
var expr9 = Decode(Cat_Descrip, "Climate Change", "ffffff", "Lack of Enforcement", "ffffff", "Plastics Pollution", "ffffff", "000000")

var html = '<div style="padding:5px;">';
html += TextFormatting.NewLine + '<span style="display:' + expr2 + '"><br />' + $feature.VictDescrip + '<br /> </span>';
html += TextFormatting.NewLine + '<br />';

if (!IsEmpty($feature.Embeds)) {
html += TextFormatting.NewLine + '<span><a href="' + $feature.Embeds + '" target="_blank">Visit the Victory' + "'s Media Page</a></span>";
html += TextFormatting.NewLine + '<br />';
}

if (!IsEmpty($feature.Link1)) {
html += TextFormatting.NewLine + '<span><a href="' + $feature.Link1 + '" target="_blank">Learn More About the Victory</a></span>';
html += TextFormatting.NewLine + '<br />';
}

html += TextFormatting.NewLine + '<a href="' + $feature.Link2 + '" target="_blank">Go to Waterkeeper Website</a>';

return {'type': "text", 'text': html};

 

 

rbd
jcarlson
MVP Esteemed Contributor

Ah, yeah. The "Arcade" popup element doesn't seem to translate into ExB just yet. Probably only a matter of time, though!

- Josh Carlson
Kendall County GIS
0 Kudos
dgiersz_cuyahoga
Occasional Contributor

Yes, seems to be a compatibility issue. Only the Arcade content elements are an issue, everything else is working fine.

#CLE #sloth
0 Kudos
JennaWalz3
New Contributor III

Has this issue been resolved yet? Is there any workaround?

0 Kudos
Justin_Greco
Occasional Contributor II

This is due to the Popup Element Arcade profile not being supported by the Feature widget in the latest version of the 4.26 JavaScript SDK, currently its only supported in the Popup widget.  So its not something that would be available in Experience Builder until its added to the SDK.  

LaurenBoyd
Esri Contributor

The ArcGIS Maps SDK for JavaScript's Feature widget does support displaying arcade elements that are added to the popup. You can see this working with the JS Maps SDK Feature widget here:

@Justin_Greco are you seeing this issue with the JS Maps SDK specifically? This could be an issue only with ArcGIS Experience Builder's Feature widget if you're not seeing the same behavior in the JS Maps SDK.

 

Lauren
0 Kudos