I need to auto populate fields based on Requested for field?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-27-2022 07:20 AM
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.
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.
- Labels:
-
Multiple Versions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-27-2022 08:39 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-28-2022 01:23 AM
Hi Andre
Your target variable name is "u_requested_for"
In your script on line 5 change 'requested_for' to 'u_requested_for'
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-27-2022 07:39 AM
Thank you Scott. I'll try this out. Do I do the same steps for my other variable Business Phone?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-27-2022 07:43 AM
Yes you can see the commented out line above is for the business phone
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-27-2022 07:45 AM
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