How to remove error message Invalid Insert on form while we are using current.setAbortAction() method in business rule

madhuri15
Tera Contributor

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

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

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

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

View solution in original post

5 REPLIES 5

Inactive_Us1474
Giga Guru

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. 

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.

 

 

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

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

Ankur Bawiskar
Tera Patron
Tera Patron

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

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