- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-16-2020 12:21 PM
Hi,
I have 2 variables in a variable set that I am using on a form. The first variable is requested_for using the type Requested For:
I have another variable manager.
All I need to do is populate that variable (manager) with the manager of the user in Requested For. This should be easy, however it is taking all day and I still cannot get it to work. I'm about to go insane.
Thanks in advance for any assistance.
Diana
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-16-2020 01:18 PM
no... you need to create a catalog client script, not the regular client script. Instead of table, field you select variable set, variable. it should look more or less like this:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-16-2020 01:30 PM
Thank you for your help but I couldn't get it to work. I'm sure it is because I am new to this. I was able to use what tomaszsienkiewicz suggested.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-16-2020 12:34 PM
Is Manager a refrence field to sys_user?
If yes, then you can use a reference qualifer and in that select advanced and mention
//check the variable name
javascript:gs.getUser().getUserByID(current.variables.requested_for).getManagerID();
And under attributes, add
ref_qual_elements=requested_for
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-16-2020 12:41 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-16-2020 12:44 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-16-2020 12:47 PM
Ah okay.
Mention it like this.
javascript:'sys_id='+gs.getUser().getUserByID(current.variables.requested_for).getManagerID();