Hello. I am new to Arcade and my current task is to hide or show an attribute field and value if another field in the same table meets a condition. I am wondering if I can create an expression to do so. I have seen some examples in Field Maps, but not in AGOL or Portal.
For starters the layer I am using in my map is a hosted feature layer view with configured domain values.
Example. If the field ProblemType =’s the views domain value of ‘Dead animal’ then show Location on Road field and its value in pop up. If it does not = ‘Dead animal’ then hide.
A couple thoughts. I know I can create an expression to hide or show the field I want the condition for. Easy right.
IIF(ProbType == "Dead Animal", "inline", "None")
But how do I add another field, the one I want to actually hide/show ($feature.locroad) into this statement or another type of logic to accomplish my task?