Hi folks,
I'm trying to do something similar to a previous post with regard to the popup in Map Viewer the pop-up. I want to display a bit of text with the link to a report, where one exists, but leave it completely blank where there isn't one. I assumed I could do this with the add 'Arcade' element to the pop-up, but although I have written a bit of code which returns the correct value in the test area, it doesn't work when live. Have I misunderstood how this works? I should add that I'm new to Arcade, beyond the simple stuff in Pro.
I attach a sample subset of my data and below is the bit of arcade I wrote. I deleted the text bit, as I assume I can just add this within the brackets, once I get the report itself to work
if (isempty ($feature.ADS_Link_to_Recording_Report)){return null}
else {return ($feature.ADS_Link_to_Recording_Report)}
I suspect I'm doing something basic wrong, but I'm not sure what.
Ta
Simon