How to get value of dot walking field in client script?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-17-2020 04:01 AM
How to get value of dot walking field in client script?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-17-2020 04:34 AM
Hi Shivam,
You can use OnChange client script.
Try below script.
var caller=g_form.getReference('caller_id',test);
function test(caller)
{
g_form.setValue('u_email',caller.email);
}
Please mark it as helpful/correct based on impact.
--
Regards
Darshani Sambare

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-17-2020 04:45 AM
Hi,
In client script using getReference() you can do single dot walking, if you want multiple dot walking in client script use GlideAjax in client script.
Thanks,
Dhananjay.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-12-2024 03:03 AM
Upload one example plss.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-17-2020 04:58 AM
I wrote a Share App to do this with 1 LOC while adhering to Client Script Best Practice (which getReference() does not do, you can simply see by watching the console log)
SmartAjax - Write GlideAjax Data Lookups in 1 L.O.C.
ServiceNow Nerd
ServiceNow Developer MVP 2020-2022
ServiceNow Community MVP 2019-2022
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-19-2024 05:45 AM
To dot walk through client script use -
g_form.getReference(referenceFieldName).otherFieldValue; |
Example-
Please mark correct and helpful.
Regards,
Sitanshu Gautam