How to remove the status choices for the project managers in the project workspaces.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2025 12:57 AM
I need to restrict the state choices for Project managers in Project workspaces.
Can anyone help me to provide the solution. i am new to project workspace.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2025 04:59 AM
Hi @PatnamNagendra ,
what you mean by "I need to restrict the state choices for Project managers in Project workspaces."? you need disable the state selection for Project manager if so then use ACL to do that.
or if you want to hide some option from the state choice only to 'Project manager ' then create a display business rule to check logger in user has project manager role then hide option using client script.
Thanks,
BK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2025 05:19 AM
Do you mean that you would like to make this field read-only for a specific role (Project managers) ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2025 05:41 AM
If this is a form opened in workspace then you can use onLoad client script on your table which applies to only workspace view
Then use this logic to remove that option
g_form.removeOption('status', 'choiceValue'); // give the exact field name and choice value to remove
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2025 08:06 AM
Huh, never considered using a client script as a solution to just hide items. 🤔
I was thinking of either disabling the option for everyone in the table definition or using an ACL to restrict the available options for certain roles.
Thanks for teaching me something new!