Hello - I would like to create a dynamic pop-up that links out to an As-Built document related to a feature. However, some features do not have any As-Builts and have empty values in the data. If that is the case, I want the pop-up to read: There is no As-Built Plan for this project.
What I have so far is an attribute expression:
if (IsEmpty($feature.Orignal_Project_PDF)) {
return "There is no As-Built Plan for this project.";
} else {
return '<a href="' + $feature.Orignal_Project_PDF + '" target="_blank">Link</a>';
}
Pop-up HTML:
<p>
<strong>📄 As-Built Plans:</strong><br>
{expression/expr4}
</p>
How ever my pop-up looks like this: