How to get manager users in catalog item
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2023 04:08 AM
HI Team,
In catalog item I have variable called Manager. If I select my manager in that reference field(user table), below that I have another reference field(user table), in that reference field it needs to show only my name.
Can anyone help me with this?
2 REPLIES 2

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2023 04:18 AM
Hi @sriram7 ,
Try below method with some modifications.
function onChange(control, oldValue, newValue, isLoading) {
var managerObject = g_form.getReference('manager', doAlert); // doAlert is our callback function
}
function doAlert(managerObject) { //reference is passed into callback as first arguments
g_form.setValue('user', managerObject.manager);
}
Please hit like button if my suggestion has helped you in any way.
Please mark correct if my response has solved your query.
Cheers,
Mohammed Basheer Ahmed.
Please mark correct if my response has solved your query.
Cheers,
Mohammed Basheer Ahmed.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2023 05:14 AM
Hi @Basheer
I have tried above code, not working.
Below is my code
Can you tell me where I am doing wrong