please help me out by using the onLoad() cleint script i want to auto populate the user details

kranthi2
Tera Expert

Hi,

please help me out by using the onLoad() client script i want to auto populate the user details.

 

Please help me out with the script.

 

Thanks,

7 REPLIES 7

Satyapriya
Mega Sage

Hi Kranthi,

     Please share your script.From where you got stuck

   Regards Satyapriya

 

kranthi2_0-1705644707531.png

 

Hi there,

 

Consider using GlideAjax, this performs much better than getReference.

#best_practice

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn

DanielCordick
Mega Patron
Mega Patron

why do you need to script this?

 

set your defualt value on your requested for variable to: javascript: gs.getUserID() and the OOB auto populate will take care of the rest

__DC_0-1705642295020.png

 



__DC_0-1705641937383.png

 

 

Mark Correct if this solves your issue and also mark 👍Helpful if you find my response helped in any way