I want to display a confirmation pop-up when the knowledge deletion button is pressed.
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
昨日 - 最終編集 昨日
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.
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
昨日
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