- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-08-2019 06:39 AM
Hello All, I am getting multiple error message on the screen on every user date invlaid click ...
Can someone please help me to remove the multiple error message .... thank you in advance 🙂
Error :
UI Policy :
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-08-2019 06:43 AM
Hi there,
Is the issue that you are getting multiple messages? Or are the messages incorrectly in your opinion?
If multiple messages, try clearing first:
g_form.clearMessages();
g_form.addErrorMessage("your error message");
If my answer helped you in any way, please then mark it as helpful.
Kind regards,
Mark
---
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-08-2019 06:43 AM
Hi there,
Is the issue that you are getting multiple messages? Or are the messages incorrectly in your opinion?
If multiple messages, try clearing first:
g_form.clearMessages();
g_form.addErrorMessage("your error message");
If my answer helped you in any way, please then mark it as helpful.
Kind regards,
Mark
---
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-08-2019 06:46 AM
Hi Bright,
To confirm, your logic is accurate and your expected behavior is only one error notification where as you are seeing it three times? Just making sure the question is specific to the number of pop ups versus the logic and code.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-08-2019 06:51 AM
UI Policy seems like correct here.
try to use "field watch" on the "DOB" field and see if any existing script has been used on DOB fields with same logic.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-08-2019 07:00 AM
Hey Thank you EveryOne for helping me ...