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

From BR you can do dot-walking.


Kalaiarasan Pus
Giga Sage

What are you trying to do?


jared_wentzel
Kilo Contributor

I just need the value of the u_member_firm field of the customer selected in an incident so I can pass it as a URL parameter to an external site.


Mike Allen
Mega Sage

You can do



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


Screen Shot 2015-09-25 at 12.34.08 PM.png


Mike Allen's g_form.getReference works. Nice to know you don't need to write a server side script for that data.