Tanushree Doiph
Mega Guru

Hey Shivam,

Let's understand below scenario,

If you want to set a caller's mobile number through dot walking then you can do this,

g_form.setValue('u_user_manager', caller.mobile_number);

 

Please mark correct and helpful.

Thanks

Tanushree

asifnoor
Kilo Patron

Hello Shivam,

In general, dot walking is not available in client script, unless you used g_form.getReference. Even in this case, you can do dot walking only till level1.

So best is to use Script Include and GlideAjax.

So what exactly is your requirement here?

Kindly mark the comment as a correct answer and helpful if it helps to solve your problem.

Regards,
Asif
2020 ServiceNow Community MVP

Darshani Sambar
Giga Contributor

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

Dhananjay Pawar
Kilo Sage

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.

適用対象外

Upload one example plss.