- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-25-2015 08:47 AM
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?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-25-2015 09:32 AM
You can do
var custFirm = g_form.getReference('caller').u_member_firm;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-25-2015 09:47 AM
There is also a better way to do it, with a callback:
http://wiki.servicenow.com/index.php?title=GlideForm_(g_form)#getReference
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-25-2015 11:10 AM
Excellent thank you!!