- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-29-2018 11:31 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-29-2018 11:42 PM
Malay,
You doesnt require to use getReference just to fetch the sys_id of the reference field you can do it by using
var caller = g_form.getValue('caller_id'); // Gets the sys id of the caller
How ever if you want to know how to fetch using getReference here is the code:
var caller = g_form.getReference('caller_id'); // Gets the sys id of the caller
Note: Good to try on onChange Client Script on Field Caller in incident table
Mark Correct / Helpful based on the impact of the answer.
Abdul Azeez

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-29-2018 11:32 PM
You dont need getReference.
just use g_form.getValue('field_name');
Please mark this response as correct or helpful if it assisted you with your question.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-29-2018 11:42 PM
Malay,
You doesnt require to use getReference just to fetch the sys_id of the reference field you can do it by using
var caller = g_form.getValue('caller_id'); // Gets the sys id of the caller
How ever if you want to know how to fetch using getReference here is the code:
var caller = g_form.getReference('caller_id'); // Gets the sys id of the caller
Note: Good to try on onChange Client Script on Field Caller in incident table
Mark Correct / Helpful based on the impact of the answer.
Abdul Azeez
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-30-2018 12:30 AM
thanks bro