How would I use arcade to label features, but only those that the domain = "X"
My feature name is SystmevalveMy column name is VALVEUSEThe domain I want Labeled has the CODE ZBV in the domain.ThanksI think I need to take a course on Arcade katy
Hello Katy,
I set up a similar layer to test this out.
In my webmap, you can use either of these expressions to only label those X/ZBV features. One just looks at the code value, and the other looks at the description value. In the IIF() expression, if the expression evaluates to false, I have the label set as '', which is an empty string so you don't see a label. If the expression evaluates to true, I have 'X' as the label value, but you can put anything there, like DomainName($feature,'valveuse') if you want the description or $feature.valveuse if you want the code.
IIF(DomainName($feature, 'valveuse')=='X','X','') OR IIF($feature.valveuse=='ZBV','X','')
Let me know if you have any further questions!
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.