- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2025 07:30 PM
Hello Everyone,
Is there a way to hide the self-service view for Incident ?
I saw this Hide Incident self service view - ServiceNow Community - this work but unfortunately it will also hide all self-service other form section like request item demand etc.
Is there a way that I can hide self-service for Incident only ?
I am done hiding self-service for incident in application module.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2025 11:10 PM - edited 06-02-2025 11:13 PM
Hi @Jeck Manalo ,
try this onload client script
function onLoad() {
//Type appropriate comment here, and begin script below
if (g_form.getViewName() == 'ess')
switchView('', 'incident', '')
}
extend this script if required
example if you want to exclude admin users use g_user.hasRole() etc
function onLoad() {
//Type appropriate comment here, and begin script below
if (g_form.getViewName() == 'ess' && !g_user.hasRole('admin'))
switchView('', 'incident', '')
}
I have tried the view rule to route from ess view to default only when form is opened in ess view but it's not working as expected
Please mark my answer as helpful/correct if it resolves your query.
Regards,
Chaitanya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2025 09:42 PM
Hi @Jeck Manalo ,
1)Navigate to System UI -> views
2)Search for view name in the title column as show in below image
3)Open the record and you can hide the view for specific groups or roles or user by using fields which are shown in the image below
In your Case, for Self-Service, restrict using a Role :
Sandeep Dutta
Please mark the answer correct & Helpful, if i could help you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2025 10:12 PM
Could you re-paste the 2nd picture i want to see the field on it.
Its smaller so i can't able to view in directly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2025 09:52 PM
the self service view is used at multiple places OOTB, why to delete that?
If you still want to do then check approach shared by @Chaitanya ILCR
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
06-02-2025 10:11 PM
yes correct, instead of deleting, i would like to filter that only admin can view the self-service portal for incident.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2025 10:20 PM
if you delete then it's gone and if customer again wants you will have to re-create it again and the related components.
You can hide the entire view based on roles, hidden checkbox etc but that view will be gone from all the tables include incident, problem etc
Another workaround is to let them see and if they select that view then take them again to default view
OR
Create a view rule and take them always to Default view
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