Domain Description From Another Layer

324
2
09-14-2023 07:47 AM
JoshBillings
Occasional Contributor II

I am trying to return the domain description from another layer using an Arcade expression. I've tried the below, but it returns blank. Any tips? 

 

var basinPoly = FeatureSetByName($map,'Modeling_Basins')

var d = DomainName(basinPoly, 'BasinID')

return d

 

Thanks!

 

Tags (2)
2 Replies
KenBuja
MVP Esteemed Contributor

Unlike the DomainName function for a Feature, you'll have to provide the code to get back anything for FeatureSets

0 Kudos
HMarcks
New Contributor III

I am trying to solve the same problem.  Did you figure anything out?

https://community.esri.com/t5/arcgis-field-maps-questions/smart-forms-field-calculator-domain-from-n... 

 

I can get it to return the domain code and am thinking I might have to set up a series of if statements to change the code to the description.  It wouldn't be pretty but I am not getting any more ideas on it.