I need to do both of these: The field is a short but the description has the text i need. For example
Poly Vinyl Chloride - PVC
I just need the 3 or 4 characters after the dash. I can't figure out the syntax in label properties to do both these things at once.
Bring up the feature material name, but only grab the last 3-4 characters. How do I do it in Arcade?
DomainName($feature, 'material')
right($feature.material, 4,)
Solved! Go to Solution.
Guess this should return the "PVC" you are looking for 😉
Trim(Split(DomainName($feature, 'material'), '-')[-1])
Guess this should return the "PVC" you are looking for 😉
Trim(Split(DomainName($feature, 'material'), '-')[-1])
Thank you!!! I was getting confused because the Right function doesn't work like other coding languages. Trim and Split and the location of the split and the number. Got it! Thank you, I copied and pasted and it validated!