Solved
Forum Discussion
koryknick
2 years agoEmployee
If that doesn't work for you, then try this:
$.get('/position/field_2354910', {}).get('value')
Since the Object.get() method allows you to provide a default if the field doesn't exist, this example returns an empty object, so calling the next get() on the empty object will also return null.
Hope this helps!
nickhumble
2 years agoNew Contributor II
Thanks - my problem was i couldn't get a non-null value using .get, no matter what i tried. I wondered whether the forward slashes were confusing it or something, but .hasPath worked ok so i'm a bit stumped.
Your earlier suggestion has worked well though - thank you.