How to get the requested for user name from a catalog form

juliochacon23
Tera Expert

Hi, I am working on a request catalog form with orchestration.  I need to find a way to pull the user name field from the requested for field instead of the logged-in user.  I am currently using a catalog client script with the code below to pull the user name but this gives me the logged in user name instead of the requested for.  Any advice on how to get the user name for requested for?

 

juliochacon23_0-1679073954341.png

 

juliochacon23_1-1679074013144.png

 

 

function onLoad() {

                                var userID = g_user.userName;

 

g_form.setValue('user_name',userID);

  

  

}

 

2 ACCEPTED SOLUTIONS

I got the mistake that you are doing @juliochacon23 In client script code of 7th line change sysparam_sys to sysparm_sys and also change script include 5th line sysparam_sys to sysparm_sys .Then it will definitely work please check onces 

If my solution helps you please mark my answer as accepted and helpful.

Thanks and Regards

Uday Kumar Valapudasu 

 

View solution in original post

Amazing support.  Thank!!!!

View solution in original post

14 REPLIES 14

I got the mistake that you are doing @juliochacon23 In client script code of 7th line change sysparam_sys to sysparm_sys and also change script include 5th line sysparam_sys to sysparm_sys .Then it will definitely work please check onces 

If my solution helps you please mark my answer as accepted and helpful.

Thanks and Regards

Uday Kumar Valapudasu 

 

I tested no luck, sorry.  Not sure what is still missing.  @Uday_Kumar  maybe we can do a quick zoom call?

Sure @juliochacon23  Let's connect Uday Kumar Valapudasu is my LinkedIn you can also connect with me in udaykumarvalapudasu@gmail.com

Amazing support.  Thank!!!!

Thank you, Uday, that worked.