how to hide values of choice list using ACL for specific users

Kiran Kumar De1
Tera Contributor

Hello,

I have a requirement to hide values of choice list using ACL for specific users, is it possible?, if not is there any approach to achieve this?

Could you please someone help me on this.

Thanks

Kiran

 

8 REPLIES 8

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Kiran,

Using ACLs is not a valid approach

ACLs apply for table and field and not for drop down values within field

you can use onload client script and use g_form.removeOption('fieldName', 'choiceValue');

Mark Correct if this solves your issue and also mark 👍 Helpful if you find my response worthy based on the impact.
Thanks
Ankur

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

Brad Tilton
ServiceNow Employee
ServiceNow Employee

Generally, if you have some complex requirements around hiding choices in a choice list then it's time to explore using a reference field with a reference qualifier rather than a choice field. As others have said, the only way to hide individual choices is through a client side script, which generally isn't a great way to do security.

Ankur Bawiskar
Tera Patron
Tera Patron

Is this question resolved or you need some more assistance?

if my answer helped you, kindly mark it as Correct & 👍Helpful so that it does not appear in unanswered list & close the thread.

Regards
Ankur

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