Remove or edite the default error message

kerolos samir
ServiceNow Employee
ServiceNow Employee

Hi team 
Is there any way to modify this error message in the screen 
Or remove it and show another one with a client script 

17 REPLIES 17

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @kerolos samir 

 

what are steps you follow to create this , you can change but you need to find out which script or BR where it has been mentioned 

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

i just added a form 
the message 

Could not parse wwewe10 as an integer

 is appear automatically if the value on the field is not the same type 

the other one is from client script 

function onChange(control, oldValue, newValue, isLoading, isTemplate) {
if (isLoading || newValue === '') {
return;
}
if (!Number(newValue)) {
getMessage('Maximum waiting time should be Number', function(msg) {
 
g_form.showErrorBox('max_waiting_time', msg);
});

}

//Type appropriate comment here, and begin script below

}

so i want to remove the default one 

RaghavSh
Kilo Patron

Is this OOB or custom?

1. if custom you can change Field message in client script itself.

2. If it is oob and you dont want to change the oob script, pls check if it has getMessage(“key”)

in that case create or update the sys_ui_message table to show the required message.  In sys_ui_message table search with key in getMessage and replace the corresponding message field.


Raghav
MVP 2023

it's normal form not custome 
and the error 

Could not parse wwewe10 as an integer appear if i add value that not the same as field type 
so i want to hide it and add the custome one