Only display network in the category field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2023 10:54 PM
Hola
I have a role called "network_configuration" within my instance, If I open a change request as, I need a way to only display "network" in the category field of change.
How can I achieve this?
Thank you all and please be kind as I am just now getting into ServiceNow development
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2023 10:30 PM - edited 09-27-2023 10:49 PM
Hi @Beth_Linda ,
Please try in that way. Create onload client script & add below code, whatever option display in category add removeoption() for same & add addoption() for network category.
Please let me know.
Please mark helpful & correct answer if its helpful for you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-28-2023 04:48 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-17-2023 08:30 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2023 10:43 PM
Hello @Beth_Linda ,
You can write onLoad client script on the change_request table as below
if(g_user.hasRoleExactly('network_configuration')){
g_form.clearOptions('category');
g_form.addOption('category','network','Network');
}
Please mark my answer correct & helpful, if it helps you
Thank you
Thank you
G Ramana Murthy
ServiceNow Developer