Can standard template be hidden in a KB without impacting other KBs?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2023 01:07 AM
Hi,
I want to hide the standard template in a specific knowledge base, so that users are only allowed to use a customized template in that KB. At the same time, want to keep the standard template available for other KBs.
Other articles mention this is not possible (see links below).
Has anyone found a solution yet?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2024 09:23 PM
The solution in the community posting below is the only hints I could find to hide the Standard Template.
For your needs, in the commented out IF ELSE code you need to add further condition checking the name of the current knowledge base, and hide only for the affected KB.
var gr = new GlideRecord('kb_template_m2m_knowledge_base');
gr.addQuery('kb_knowledge_base',kbId);
gr.query();
var templates = {};
// if(addNames)
// templates['kb_knowledge'] = gs.getMessage('Standard');
// else
//templates['kb_knowledge'] = true;
Hope that helps.