Hi Chantell Krider ,
Let me first explain the sample dataset I created. I have 4 points and added the Com_Eligi and UP_Eligibl values:
The attribute table looks like this:
You can see that I have 4 "Eligibility" fields added, containing "block" or "none". Those are the results of the Arcade expressions listed below:
if (($feature["Comm_Eligi"]=="Eligible") && ($feature["UP_Eligibl"]=="Eligible")) {
return "block";
} else {
return "none";
}
if (($feature["Comm_Eligi"]=="Eligible") && ($feature["UP_Eligibl"]=="Not Eligible")) {
return "block";
} else {
return "none";
}
if (($feature["Comm_Eligi"]=="Not Eligible") && ($feature["UP_Eligibl"]=="Not Eligible")) {
return "block";
} else {
return "none";
}
if (($feature["Comm_Eligi"]=="Not Eligible") && ($feature["UP_Eligibl"]=="Eligible")) {
return "block";
} else {
return "none";
}
Those will appear numbered as 0 to 3 in the list of Arcade expressions in the pop-up configuration:
The next part is the configuration of the custom HTML pop-up:
Next hit the green "CONFIGURE" button and activate the "View HTML Source" in the Custom Attribute Display:
As HTML source you should copy and paste the following:
<span style="display:{expression/expr0}">Your jurisdiction is eligible under the <b>Communities in Need</b> criteria and the required minimum match is {Comm_Match} percent. <br />Your jurisdiction also is eligible under the <b>Underserved Populations</b> criteria: map your project to determine the required minimum match.</span>
<span style="display:{expression/expr1}">Your jurisdiction is eligible under the <b>Communities in Need</b> criteria and the required minimum match is {Comm_Match} percent.</span>
<span style="display:{expression/expr2}">Your jurisdiction is not eligible for a match reduction.</span>
<span style="display:{expression/expr3}">Your jurisdiction is eligible under the <b>Underserved Populations</b> criteria: map your project to determine the required minimum match.</span>
The result should be like this: