Is there a way to hide or display "Not Recorded" / "No Data" for fields that may be null in a popupTemplate? I have a few fields that are not required, thus containing nulls. I want to return a specific set of attributes from a query but depending on the resulting feature, these fields may be empty and I'd prefer to have some "filler text" versus having those sections of the popupTemplate be blank. I'd also like to hide a few fields from the popup if they are null (chemicals #2 & #3) I've seen some information on using Arcade IIF statements to set default values if the field is null but I get the impression that these statements can't be placed in the expressionInfos section of the popupTemplate?
Picture attached
I'm researching the same thing today. Haven't figured it out yet but hopefully will post here if I do. Trying to work off:
Some of the comments after the AGOL blog are leading in me in good directions but not quite there. Have you figured it out yet?
Mike Dolbow No luck yet I have been working off the same 3 examples but have not had any success. If I do find something that works I will certainly post it here!
Does anyone have any updates for this? diving back into this and still no success on how to set a default text if the field is null. Would rather show something like "Not Reported" / "No Data" instead of having it blank
Hi, this worked for me:
Unfortunately it seems like Arcade expressions do not work in the standard popupTemplate which I was hoping to use versus creating an html table.
It looks like in API 4.20 Arcade expressions can now be rendered in the popupTemplate. I am not sure if it matters but I have the expressionInfos at the end of my popupTemplate (after the content section). DefaultValue expression works correctly now 👍