I'm trying to create an arcade expression based on the project user input value but I'm struggling to get it working.
I have a feature layer called Animals. The project user input allows the user to select one of the following:
Blue Dog, Red Dog, Green Dog, Blue Cat, Red Cat, Green Cat, Blue Frog, Red Frog, Green Frog. One of these values then populates the Project field.
I'm trying to create an arcade expresssion within the same Animals feature layer. The field containing the arcade expression is called Result.
If Project contains text 'Dog' then the Result value is Dog.
If Project contains text 'Cat' then the Result value is Cat.
If Project contains text 'Frog' then the Result value is Frog.
So far this what I've got but can't get it working:
Solved! Go to Solution.
With a bit of trial n error, I got it working using this:
Thanks Jonathan. My Project field is working as intended - populating with the project user input, but the arcade script isn't populating the Result field (where the script is located in QuickCapture)... It's Friday afternoon over here so i'm going to check this again on Monday morning with a fresh mind!! Thanks again for your time.
With a bit of trial n error, I got it working using this: