pop-up configuration
I’m configuring a ‘Custom Attribute Display’ pop-up that uses an expression to define part of the code. A snip of the code for the custom pop-up looks like this:
<tr><td>Application:</td><td>{expression/expr0}</td></tr>
And the expression looks like this:
var avail = $feature["GIS_DB.dbo.CharterPullComplete.SpaceAvail"];
var apply='<a href=https://schooloptions.mnps.org/>Apply Now</a>'
var sorry='<div style="color:red;">Not taking applications</div>'
When(avail=='Green', apply,avail=='Yellow', apply, sorry);
My intent was that my pop-up, depending on which condition was met would look like this:
Application: Apply Now
Or
Application: Not taking applications
But instead it looks like:
Application: <a href=https://schooloptions.mnps.org/>Apply Now</a>
Or
Application: <div style="color:red;">Not taking applications</div>
Is it possible to specify that the string that is returned by the expression is code?
Thanks...Nate