- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2020 12:34 PM
Solved! Go to Solution.
- Labels:
-
User Experience and Design
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2020 01:27 PM
Create an Onload client script. Make sure Isolate script is set to false.
Use this code:
function onLoad() {
document.getElementById('template-toggle-button').parentElement.hide();
}
The result:
Before
After
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2021 08:03 AM
Willem,
I'm trying to implement this in a scoped application in the Madrid release, and having no luck. Do you know of any special that might be required to work with this solution?
Best,
Rick
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2021 12:29 PM
Hi Rick,
Scoped apps do not have the same API's available (especially when DOM-manipulating as described here).
This article gives a good description and also talks about an option to re-enable:
Most of the inaccessible APIs can be re-enabled on a per-application basis. To do so, you need to ship a True/False system property in your application named glide.script.block.client.globals with the value false. As with all system properties in a Scoped Application, the name of the property will automatically have your application's scope name prefixed to it- you don't need to do that yourself.
Reference: https://community.servicenow.com/community?id=community_blog&sys_id=788c66e1dbd0dbc01dcaf3231f961969
Currently not able to try this, but give the article a go and let us know. Hope this helps! 🙂