CLient side validate CAB approvers

Lucky1
Tera Guru

Hello all,

 

Good day!!

My requirement is Change request when moved to CAB state, then only CAB approvers needs to edit a field (u_xyz)

So, for this I have written a Script Include and on Change Client script.

So, the script include will be returning an array consists of all sys_ids of CAB approvers.

And at on Change client script the answer is giving all these sys_ids as expected.

 

Now, I want to check one by one sys_id with the logged in user of service-now.

So, can someone tell me how can we do this?

 

 

Regards,

Lucky

5 REPLIES 5

Here is my script include and on Change CS.

Note: Script include is returning values into the array.

But at on Change Client script, the alert itself is not coming up.

 

Can someone help me how to get the values stored in to an array at client side?

 

Lucky1_0-1742197190958.jpeg

 

 

Lucky1_1-1742197214068.jpeg

 

 

Please help

 

 

Regards,

Lucky