Remove or edite the default error message
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2025 04:40 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2025 07:16 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2025 07:10 AM
It also has the issue
so i think the soluion that i provided is solving the problem partially
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2025 07:41 AM - edited 08-24-2025 08:13 AM
This is a integer field on some table. You should try this for now:
function onChange(control, oldValue, newValue, isLoading, isTemplate) {
if (isLoading || newValue === '') {
return;
}
if (!Number(newValue) || !Number(oldValue)) {
var msg = "Maximum waiting time should be Number " + newValue;
g_form.hideErrorBox('max_waiting_time');
g_form.showErrorBox('max_waiting_time', msg);
}
}
You can refer https://www.servicenow.com/community/developer-forum/how-to-use-getmessage-quot-message-key-quot-in-... for dynamic newValue.
Also, add the key of your getMessage in the "Message" field on your client script. If this field is not on form use list view on client script to update this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2025 10:07 PM
@kerolos samir Did this work?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-26-2025 12:22 AM
Sorry for late reply
it doesn't work , i don't know why and it's the same functionality as my code that flicker the massage
but the solution that i provided works partially as i said it hide the original massage and show the new one
and we took another direction with the business
Thanks for you help man