Dot Walking - UI Action

jared_wentzel
Kilo Contributor

I am trying to pull a field value from the User table from a UI Action that is being run from the Incident form and I know this is simple but I am not able to get it to work..

The field is u_member_firm. I am pulling it from a client Script easily like this.. "var custFirm = caller.u_member_firm"

But on the UI action I guess I have to use something like "document.getElementById('incident.caller.u_member_firm').value" or something to that extent, but the field isn't on the incident form so I don't think I'm using the getElementById correctly. It is just not working and I cannot figure out why! Any thoughts?

1 ACCEPTED SOLUTION

Mike Allen
Mega Sage

You can do



var custFirm = g_form.getReference('caller').u_member_firm;


View solution in original post

11 REPLIES 11

There is also a better way to do it, with a callback:



http://wiki.servicenow.com/index.php?title=GlideForm_(g_form)#getReference


jared_wentzel
Kilo Contributor

Excellent thank you!!