Hide edit article option for specific knowledge base

v-paulp
Tera Contributor

Hi 

We have a requirement to hide the Edit article option  on the portal for specific knowledge base.

vpaulp_0-1715866071152.png

 

Also want to add a new option to action drop down list.

How can I achieve this?

 

Thanks

 

1 ACCEPTED SOLUTION

Harish KM
Kilo Patron
Kilo Patron

Hi @v-paulp to do this you need to clone Knowledge Article content widget.

In Server side script look for below line which should give you knowledge base name

HarishKM_0-1715911202980.png

and in HTML add this to the condition which shows edit article button yellow color highlighted below. this should work.

 

HarishKM_1-1715911245283.png

 

Regards
Harish

View solution in original post

6 REPLIES 6

Hi @Harish KM 

I have tried your modified script ,but it is also not working. On the last alert message it is returning undefine.

vpaulp_0-1716178124435.png

 

SK Chand Basha
Giga Sage

HI @v-paulp 

 

can you go through this if might be helpful

https://www.servicenow.com/community/developer-forum/how-to-disable-the-edit-button-on-the-kb-view-a...

 

Mark it Helpful and Accept Solution!! If this helps you to understand.