Return the Current User logged in

asher14
Tera Contributor

I created a new table and new form layout. One of the fields is for Technician and I need it to autopopulate the current user logged in. 

 

I went to configure table and when to the column label. Inside the reference specification I reference the user table and under Default Value I currently have gs.getUser(); and its not working. I also tried javascript:gs.getUser(); and that is also not working.

 

Any ideas on how I can get the current user to auto fill in the field label for technician?

1 ACCEPTED SOLUTION

Manmohan K
Tera Sage

Hi @asher14 

 

Please use below code in default value

javascript: gs.getUserID();

 

 

View solution in original post

2 REPLIES 2

Manmohan K
Tera Sage

Hi @asher14 

 

Please use below code in default value

javascript: gs.getUserID();

 

 

Sweet! That did it 🙂