Suppress the message 'This article may be visible to unauthenticated users' when publishing a KB
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-19-2022 11:12 AM
Upon clicking the UI action Publish on a Knowledge Article record in Tokyo, there is a new confirmation box that pops up asking 'This article may be visible to unauthenticated users after it is published. Do you still want to proceed?' I want to suppress this as our Knowledge articles are all publicly visible. I do not find any reference to the dialogue in any of the scripting in the UI Action nor in the scripting it calls.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-03-2022 07:16 AM
Code for displaying this message is in the Publish UI Action with Action Name publish_knowledge. Removing the code related to displaying the message and processing the response allows the article to move to the next state without displaying the message. In the function shown below, the code related to the message has been commented out:
function onPublishActionClicked() {
// if (g_form.getTableName() == "kb_knowledge_block")
gsftSubmit(null, g_form.getFormElement(), 'publish_knowledge');
// else {
// var checkGuestAccess = new GlideAjax("KBAjax");
// checkGuestAccess.addParam("sysparm_type", "checkGuestUserHasAccess");
// checkGuestAccess.addParam("sysparm_id", g_form.getUniqueValue());
// checkGuestAccess.getXML(function(response) {
// var answer = '';
// if (response && response.responseXML && response.responseXML.documentElement)
// answer = response.responseXML.documentElement.getAttribute("answer") + '' == 'true' ? true : false;
// if (answer)
// renderModal();
// else
// gsftSubmit(null, g_form.getFormElement(), 'publish_knowledge');
// });
// }
}
//function renderModal() {
// var dialogClass = window.GlideModal ? GlideModal : GlideDialogWindow;
// dialog = new dialogClass('confirm_publish');
// dialog.setTitle('Confirmation');
// dialog.setWidth(450);
// dialog.render();
//}
if (typeof window == 'undefined') {
publish();
}
function closeDialogAndPublish() {
dialog.destroy();
gsftSubmit(null, g_form.getFormElement(), 'publish_knowledge');
}
function publish() {
new global.KnowledgeUIAction().publish(current);
}

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-28-2023 12:12 PM
What is the solution to this ?
And where is it coming from this message ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-01-2023 11:07 AM
I know your question is 6 months old at this point, but we just had the same request and I wanted to provide our findings. The pop-up in question is being called via "renderModal();" on line 13 of the "Publish" UI Action. You should be able to reach it by adding the following to your instance URL:
/nav_to.do?uri=sys_ui_action.do?sys_id=d0c86952eb8321007128a5fc5206fe64
Further, if you would rather modify the message than suppress it, the text can be found in the "confirm_publish" UI Page.
I imagine you've probably solved the issue by now, but for anyone else who comes looking I hope that helps.