When loading a form for the first time, how to make sure the current logged in user is showing ?

SonbolM
Tera Contributor

SonbolM_0-1724952476688.png

When loading a form for the first time, how to make sure the current logged in user is showing ?

1 ACCEPTED SOLUTION

Sid_Takali
Kilo Patron
Kilo Patron

Hi @SonbolM add below code in Reference field default value field which will populate current logged in user javascript:gs.getUserID(); 

Sid_Takali_0-1724952900370.png

 

View solution in original post

7 REPLIES 7

@Sandeep Rajput please show a bit of etiquette by not begging for correct answers. That's poor behavior from MVPs and Rising Stars. And to be honest, others already gave a correct answer before you did.

 

Please don't behave like this.

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

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

LinkedIn

@Mark Roethof This one is a bit below the belt. I usually don't poke into someone else's business but this is not expected from an MVP like you.

 

The OP marked my response helpful and hence I requested him to mark it as an accepted solution, if it addressed his question. This in no way reflects me begging for the solution. 

 

Also, I am trying to help as many folks as possible on the community and at times don't check what others are responding (multiple tabs opened side by side) sometimes I do miss to check if similar answer was already posted by someone else. This in no way reflects that I am trying to steal answer from someone else. 

SonbolM
Tera Contributor

Thank you all for responding to my question. Honestly as all your answers are correct ,I marked them all helpful .