Why i am getting same alert and error message twice in workspace?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2023 09:43 PM
I have configured on change client script to clear the dob value and to show alert or error message if the selecting date is in future. I tried with alert and error message both are reflecting twice.
when i tried with field error box its clearing the value first time and showing error box but on same page second time also if i have choose future value its not clearing the value why?
Can i have any inputs on it?
Client script:

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-15-2023 03:17 AM
Hi @KM SN ,
that's strange, could you add "g_form.clearMessages()" before your alert messages and try
Thank you,
Hemanth
Certified Technical Architect (CTA), ServiceNow MVP 2024, 2025

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2023 09:14 PM
that worked, thanks.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2023 06:15 AM
Hi @INFJames ,
Accept the response if this helped you so that others can refer
Thank you,
Hemanth
Certified Technical Architect (CTA), ServiceNow MVP 2024, 2025

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2023 01:28 PM
Actually it didn't completely work. It stops a duplicate error banner from appearing in SOW but then it doesn't execute the proceeding code on second trigger