- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-24-2018 04:09 AM
Hi,
Can anyone please give me any suggestions to remove Invalid insert error message while using current.setAbortAction() .
Any help would be appreciated,
thanks in advance
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-24-2018 06:02 AM
Hi Madhuri,
That message comes from ServiceNow platform level and hence cannot be manipulated.
Mark Correct if this solves your issue and also hit Like and Helpful if you find my response worthy based on the impact.
Thanks
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-24-2018 04:27 AM
You can't remove that from the function since it is OOB function defined in class. So, what you can do is create an onload client script on the table as :
function onLoad() {
//Type appropriate comment here, and begin script below
g_form.clearMessages();
}
This should resolve your query.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-24-2018 06:28 AM
Actually I wrote business rule (before insert) . And i have given two gs.addErrorMessage() to display in the same business rule. If i use g_form.clearMessages() in onLoad() client script it will clear all the messages which i want to display on form. I want only gs.addErrormessage() without Invalid insert message.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-24-2018 06:54 AM
Hi Madhuri,
That is not possible the message comes from platform level in ServiceNow to which developers/admins don't have access to.
Mark Correct if this solves your issue and also hit Like and Helpful if you find my response worthy based on the impact.
Thanks
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-24-2018 06:02 AM
Hi Madhuri,
That message comes from ServiceNow platform level and hence cannot be manipulated.
Mark Correct if this solves your issue and also hit Like and Helpful if you find my response worthy based on the impact.
Thanks
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader