How to get and automatically suggest the user's User ID and email address of the logged-in user

Mi1
Tera Contributor

Hi,

Hi, I need to get the User ID and email address of the logged-in user who is entering information in Record Producer and push it to a specific item item.

 

For example, we will prepare such a String item in Record producer variables and automatically propose it.

How can it be implemented?

Best Regards,

1 ACCEPTED SOLUTION

Aman Kumar S
Kilo Patron

Hey,

Use default values in the variable:

javascript: gs.getUserName() //for user id

javascript:gs.getUser().getEmail();/ for email

Best Regards
Aman Kumar

View solution in original post

4 REPLIES 4

Muralidharan BS
Mega Sage
Mega Sage

you can create a client script - on-load with below script

 

g_form.getValue('field name', g_user.userName);

 

this will populate the username of the logged-in user. 

Hi,

Thank you.

I worked it!

Regards,

Aman Kumar S
Kilo Patron

Hey,

Use default values in the variable:

javascript: gs.getUserName() //for user id

javascript:gs.getUser().getEmail();/ for email

Best Regards
Aman Kumar

Mi1
Tera Contributor

Hi,

Thank you.

I worked it!

Regards,