I need to auto populate fields based on Requested for field?

Andre241
Tera Contributor

Hello I need to Auto populate these fields Manager, Email & Business Phone from the User table when anyone selects a user in the the Requested For field of this Catalog Item. find_real_file.png

They need to change every time a different user is selected in the "Who is this request for?" field which fall under the "requested for" type. I know I need a client script probably, but any OOB ideas would be great to. Please I need step by step guidance, scripts or photos. Not links. 

18 REPLIES 18

find_real_file.png

Hi Andre

Your target variable name is "u_requested_for"

 

In your script on line 5 change 'requested_for' to 'u_requested_for'

 

 

Regards

 

Thank you Scott. I'll try this out. Do I do the same steps for my other variable Business Phone?

Yes you can see the commented out line above is for the business phone

I forgot to mention the load one is only needed if you have a default value of gs.getUser() setting the requested for on create