hide user in dropdown

WeighedBrass95
Tera Contributor

WeighedBrass95_0-1783348924520.png

I want to hide a user that is in the "Assigned to" group. Since they are part of a group in "Assignment group", I am not able to hide them without removing them from the group all together. How do I go about changing this? 

1 REPLY 1

Ankur Bawiskar
Tera Patron

@WeighedBrass95 

the assigned to field must be having dependency on the Assignment group and hence not directly possible

2 approaches

1) remove that dependency and use advanced reference qualifier and in the script include get all members of that group excluding that user and return those sysids

OR

2) keep the dependency as it is, use onSubmit client script or onChange client script and check if the selected user is the one which you don't want to be selected, if yes then throw field message with error

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader