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

jcote
Giga Expert

Jared Wentzel,



Is your UI Action Client side or Server side?


jared_wentzel
Kilo Contributor

Client side


Pradeep Sharma
ServiceNow Employee
ServiceNow Employee

Hi Jared,



You can do dot-walking on the server side. However at client side you have to use getReference() or GlideAjax to pull the values from the server side.


Please let me know if you have any questions.


Then I should be able to use a display business rule correct?