set default value to current user on type lookup select Box field on non sys_user table.

Green2
Mega Contributor

I have a type Lookup select Box variable field  on a custom table . the field will show 2 values separated by , display_name_base,name  display_name_base is Account number name is Name. 

is there a way to  auto populate the users details in the requested for field on the form. when javascript:gs.getUserID(); is used in Default value of variable sys_id is auto populated.

pleas suggest if this can be achieved by scripting ? 

 

 

find_real_file.png

 

 

find_real_file.png

 

find_real_file.png

1 ACCEPTED SOLUTION

Musab Rasheed
Tera Sage

Hello @green : Please use gs.getUserDisplayName() instead of gs.getUserID(). It will display name of logged in user instead of sys_id. Please mark my answer as correct or hit like based on impact.

Please hit like and mark my response as correct if that helps
Regards,
Musab

View solution in original post

1 REPLY 1

Musab Rasheed
Tera Sage

Hello @green : Please use gs.getUserDisplayName() instead of gs.getUserID(). It will display name of logged in user instead of sys_id. Please mark my answer as correct or hit like based on impact.

Please hit like and mark my response as correct if that helps
Regards,
Musab