how to hide values of choice list using ACL for specific users
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2020 05:57 AM
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
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2020 06:03 AM
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
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2020 06:07 AM
Hi Kiran,
Please find below thread for same issue:-
Thanks
Santosh

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2020 06:07 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2020 10:38 PM
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
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader