Hello Everyone,
So, I want to use Conditional Field Display with Arcade in my Pop-Ups. I have done all the reading and research I could find, but I can't seem to figure it out.
Here is the link to my current map, it is public, showing my current pop ups, as a custom attribute expression I created.
https://warrencountyny.maps.arcgis.com/apps/webappviewer/index.html?id=c29ab0ced8fe463e90cf22c7a20c01ca
You'll notice that in the pop ups, certain amounts are set to 0, this is the value if no value is inputted into the table. There are some locations that won't get certain types of fish, and that's where I would like to have certain things not show in my pop up.
For example:
Mill Creek, rte 28 bridge downstream 1 mi was stocked with 575 spring yearling Brook Trout on 4/9/2021, 1:57 PM and 58 2 year old Brook Trout on 4/9/2021, 1:57 PM. It was also stocked with 0 spring yearling Rainbow Trout on and 0 2 year old Rainbow Trout on . There were also 0 fall stock yearling Rainbow Trout stocked on .
This pop up should only read "Mill Creek, rte 28 bridge downstream 1 mi was stocked with 575 spring yearling Brook Trout on 4/9/2021 and 58 2 year old Brook Trout on 4/9/2021."
Here's a different location's pop up as is:
Clendon Brook was stocked with 100 spring yearling Brook Trout on 4/1/2021, 9:46 AM and 0 2 year old Brook Trout on . It was also stocked with 0 spring yearling Rainbow Trout on and 0 2 year old Rainbow Trout on . There were also 0 fall stock yearling Rainbow Trout stocked on .
This pop up should only read "Clendon Brook was stocked with 100 spring yearling Brook Trout on 4/1/2021."
I have tried the IIF() function in Arcade, and have learned how to enter it while configuring the pop up using HTML, but haven't had any luck with coming out with what I actually want people to be able to see in my map.
Is there someone out there that can help me?
Thanks so much in advance!