Pop-up title colour change according to arcade

233
0
02-22-2024 06:38 AM
Labels (3)
PSGeo
by
Occasional Contributor

Hi,

I am using arcgis enterprise 10.9.1.

I want to change the title of the pop-up according to the arcade code. it works. I save it. and when I refresh the page the title is back to original set... with no arcade in it.

<div style="padding:5px;background-color:{expression/expr1}">
Headquarters name: {name}</div>

 

expr1:

var CD = $feature.country
when (CD== "USA", "#ed5151",
      CD== "UK", "#f086d4",
      CD== "Italy, "#c500ff",
      CD== "", "#fffff",
      null)

 

 

cheers

P

Tags (2)
0 Kudos
0 Replies