How to get manager users in catalog item

sriram7
Tera Contributor

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

Basheer
Mega Sage

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.

sriram7
Tera Contributor

Hi @Basheer 

 

I have tried above code, not working.

Below is my code

 

sriram7_0-1674479605625.png

 

Can you tell me where I am doing wrong