Service Portal Fail: Enable Delete Button for Record
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-11-2017 10:44 AM
Using the out of box Record (id=form) view of any record, I would like to expose a Delete button at the bottom next to the Save button. Save is there by default, and according to the code its listed as the Primary Action on a record. However, even though a record has a delete button exposed on itself in the backend, this button does not appear on the portal.
Portal Record:
Backend Same Record:
I see that the Delete UI Action is Client side and read somewhere that Client Side UI Actions are not portal supported. This seems very limiting not to have an option to expose this or any other button (like Update and Resolve) on the portal view of the record.
How can I expose this Delete button on the portal without having a duplicate Delete button on the backend??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-11-2017 12:01 PM
Michael,
You're right. This is very limiting. There are a number of issues like this with the ServicePortal. If i could figure out how to write a blog post, I'd write a list of the issues I've encountered and the workarounds I've instituted.
We had a very similar issue with completely essential UI actions being missing from the form. What I came up with was this:
I just made a widget with a dropdown that gives the user some options. The nice thing about this is you can use it to do things you couldn't easily do with a UI action, like save space with a dropdown instead of using 50,000 buttons. You also don't have to worry about anything you code appearing anywhere else in servicenow because it's just in that widget.
So when you click one of the menu items, it opens the modal window, which prompts you to enter a reason for reopening the ticket. Once this is done, several fields are set behind the scenes, programmatically setting the stage for the incident to be reopened.
This was a good learning project and gave me an opportunity to practice some angular skills.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-20-2018 09:18 AM
Hi abcadaret,
Can you please provide detailed explanation of how to add reopen button to form widget in Service Portal?
Thanks in advance

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-12-2017 06:14 AM
Hi Michael,
Since Service Portal was primarily introduced for end users, and you're generally not giving end users delete access for records, it seems like that's not a very wide use case. If you're using the form widget in Service Portal, you could pretty easily just add a non-client side delete button to your form so that it shows in SP.