Agent Workspace - Hide Edit Button for the knowledge article.

Ramkumar Thanga
Mega Sage

Hello everyone.

 

I need to hide the "Edit" button available in the KB article. I have tried with de-activating the UI macro "kb_view_common_header_toolbar" and also tried with removing the following code. But I couldn't hide the button.

 

RamkumarThanga_0-1713963251697.png

 

 

 

 

 

	<j:if test="${showUpdateAction}">
						<button role="link" id="editArticle" style="margin-left:0.4em;" title="${gs.getMessage('Edit content')}" aria-label="${gs.getMessage('Edit content')}" class="btn btn-default navbar-btn snc-article-header-toolbar-button pull-right">${gs.getMessage("Edit")}</button>
					</j:if>

 

 

 

 

 

1 ACCEPTED SOLUTION

@Ramkumar Thanga

 

I tried to deactivate the "kb_view_common_header_toolbar" and found that its hiding the header in Native UI only. Exploring on this "Edit" option in Agent Workspace and found few observations and its bit challenging compared to other UI actions on the form. 

 

Please mark this as helpful and accept it as a solution if this resolves your query.

Thanks,

Sujatha V.M.

Please mark this as helpful and accept it as a solution if this resolves your query.
Sujatha V.M.

View solution in original post

7 REPLIES 7

Ramkumar Thanga
Mega Sage

Hi @Sid_Takali 

 

Yes I have already gone through the community thread. And the ui macro mentioned in the thread doesn't affects the Edit button.

Sujatha V M
Kilo Patron
Kilo Patron

@Ramkumar Thanga 

 

Have you set the visibility of the "Edit" button only to admin?

 

https://www.servicenow.com/community/now-platform-forum/i-got-a-requirement-to-adjust-the-visibility...

 

Please mark this as helpful and accept it as a solution if this resolves your query.

Thanks,

Sujatha V.M.

Please mark this as helpful and accept it as a solution if this resolves your query.
Sujatha V.M.

Hi Sujatha,

 

Thanks for the reply. I want to simply hide the button that means that it should allow users to edit the article when the users are in the normal platform (knowledge.do page).

 

Thanks!

Ramkumar