How to remove Create Incident button

Alon Grod
Tera Expert

Hi,

 

if I go to kb_knowledge table and then i click on a published article, then i can on the View Article UI Action. Im being redirect to a new view and I see Create Incident on the right corner, how can I remove this button 

7 REPLIES 7

Ankur Bawiskar
Tera Patron
Tera Patron

@Alon Grod 

@GlideFather already shared the solution as 1st response.

Please mark his response as correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Community Alums
Not applicable

To remove the Create Incident button when viewing a KB article, you can edit the UI Action that adds this button. Go to System Definition > UI Actions, search for the one on the kb_knowledge table named something like “Create Incident,” and open it. Instead of deactivating it completely (which would remove it everywhere), you can update the Condition field so it doesn’t show in the specific view used to display articles (usually called kb_view). For example, you can add this condition:

gs.getViewName() != 'kb_view'

This way, the button will still appear in other views like the default form view, but it won’t show up when users click “View Article.” Make sure to double-check the actual view name by opening the article and looking at the URL (you’ll see something like &sysparm_view=kb_view); if it’s different, replace 'kb_view' with your real view name in the condition.

Hi @Community Alums,

 

but there is not any UI Action as per your suggestion:

KamilT_0-1752471990484.png

 

KamilT_1-1752471998997.png

 

 

KamilT_2-1752472006582.png

 

Perhaps I miss some features (PDI without the right plugins), but I checked in client's env and looked same.

 

I filtered UI Actions by the "Create incident", then for all the "kb_" tables as well as being form and list links.

 

Can you please verify whether it is applicable in this scenario? I think that in this case it is not standard UI Action but if I am wrong I would like to know.,

 

Please check from your end if it is doable, thank you

 

———
/* If my response wasn’t a total disaster ↙️ drop a Kudos or Accept as Solution ↘️ Cheers! */