How to auto populate with current user

iquita2005
Giga Contributor

Hello community,

I will like help with a request I have been assigned to. I have created a catalog item request. One of the variables is "who is submitting this request"? I want it to auto populate with the current user. I don't know what script to use to make this possible. Any guidance will be appreciated.

Thanks

1 ACCEPTED SOLUTION

You can do this right in the variable declaration itself. No client script necessary.



find_real_file.png


View solution in original post

6 REPLIES 6

Chuck Tomasi
Tera Patron

Hi Emmanuel,



Use the default value for the variable:



javascript:gs.getUserID()


Hello Chuck,



Thanks for the quick update. Please should I create a new catalog client scripts for it? If yes, Is this the only script that I have to use? What type; onload or onsubmit? and I do I call it variable to it?



Thanks


You can do this right in the variable declaration itself. No client script necessary.



find_real_file.png


It works. Thanks