Hello,
I have the same need.
In my case I want to check what fields are not empty in order to show only those. I want to use only one arcade expression, where I evaluate all fields and return a table to draw.
But the only thing I obtain is the html code written in the popup window.
My arcade code is something like this:
Concatenate([
IIf(IsEmpty($feature["name0"]), "", Concatenate(["<tr><td>name0:</td><tr> ",$feature["name0"],"</tr>"],""))
,IIf(IsEmpty($feature["name1"]), "", Concatenate(["<tr><td>name1:</td><tr>",$feature["name1"],"</tr>"],""))
,IIf(IsEmpty($feature["name2"]), "", Concatenate(["<tr><td>name2:</td><tr>",$feature["name2"],"</tr>"],""))
,IIf(IsEmpty($feature["name3"]), "", Concatenate(["<tr><td>name3:</td><tr>",$feature["name3"],"</tr>"],""))
......
.....
.....
......
],"")
The alternative is to customize popup window programmaticaly, but I'd prefer to store this behaviour on the webmap.
Hope this will be available soon....