Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

I want to display a confirmation pop-up when the knowledge deletion button is pressed.

M_Tomy
Tera Expert

Deaar Experts

 

I understand that this is probably not possible because ServiceNow is a SaaS service, but I've received requests from my company, so I'd like to know.

 

We've had several incidents where knowledge owners accidentally press the "Publish" instead of "Delete" button on the knowledge creation screen, accidentally deleting necessary knowledge.

So, a knowledge owner asked me if it's possible to display a confirmation pop-up asking, "Are you sure you want to delete?" even if they accidentally press the delete button.

Here are my questions:

 

Question
1. Is the above setup possible?
 If so, please tell me the specific steps.

 

2. Does step 1 constitute an OOTB change?
 I'd like to know if there's a possibility that this is not covered by support.

 

Thank you in advance.

1件の返信1

AnjalPDijo
Giga Guru

Hi @M_Tomy ,

 

Yes, it’s possible to show a confirmation pop-up before deleting a Knowledge article.

You can create a custom UI Action for the delete function. Inside that UI Action, you can call a UI Page that acts as the confirmation pop-up. In the UI Page script, you can add the logic or call a Script Include to perform the actual delete when the user clicks Confirm.

This way:

  • The user sees a confirmation dialog before deleting.
  • You keep the logic secure on the server side.
  • It’s upgrade-safe because you’re not modifying the OOTB Delete button.

 

If you create a new UI Action and do not modify the out-of-the-box Delete button, it’s considered a safe customization and is upgrade-friendly. Avoid editing the original Delete UI Action because that can be overwritten during upgrades.

 

Hope this helps!
Best Regards,
Anjal