I am having trouble with this. I have scoured the blogs concerning this issue and admittedly am very new to arcade and would appreciate any help. I may be trying to do too much.
I have a layer with several different permit inspections within it (43 to be exact with 5 fields each). I would hope to not have to do the same thing 215 times but if i need to, I shall. What I am trying to do is to only show the fields that have a value. This I can do, 215 times if needed. I would like to be able to group them and have a header if there is a value in a field and for there not to be blank space in between.
This is what I have currently (am currently only working with one inspection until i have it figured out).
My arcade:
IIF(isEmpty($feature.notes14), "", "Footer") This ideally would be an expression that returns the below set if status14 has any value (or anyone of the predfined values of inprogress, approved, or notapproved with a header of footer
IIF(isEmpty($feature.status14), "", "Status")
IIF(isEmpty($feature.assignedto14), "", "Inspector")
IIF(isEmpty($feature.other14), "", "Other Inspector")
IIF(isEmpty($feature.date_approved14), "", "Date Approved")
IIF(isEmpty($feature.notes14), "", "Notes")
The current attribute expressions:

And the current Pop-up: the red box are fields with no value: would like for there to be no break in between fields with values.

If I can do this in a single block of code for each different inspection, that would be fine. I can easily replace the number and the header.
Thank you in advance for any help!!!