
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2017 09:16 AM
I'd like to add a UI Action which is only available from the normal ServiceNow view and not available if someone is using the Service Portal to view the form. I've had a look into seeing if I can determine the URL that someone is viewing the form with a URL starting '/SP/' but didn't get far. Anyone else got tips on how to do this?
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-23-2017 02:34 AM
Actually I found out that this is far more simple than scripting. It appears that there is now a related list of 'UI Action Visibility' that allows me to configure point-and-click not to show this button on my Service Portal view. Thanks for your help.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-23-2017 02:34 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2024 06:41 AM - edited 08-20-2024 01:40 AM
if (typeof g_aw != 'undefined') {
console.log('workspace');
} else {
console.log('not in a workspace');
}