- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-16-2020 11:17 PM
hi,
I am facing a phenomenon where a message remains when I approve it on a portal page(id=hrm_todos_page).
The message can be displayed, but how can I clear the message?
Regards,
Solved! Go to Solution.
- Labels:
-
Service Portal

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-16-2020 11:57 PM
Hi,
If this is on the page and not on the form, then in any of the widget that is shown on the form, run this code.
- this.g_form.clearMessages();
- $scope.page.g_form.clearMessages();
If there is any form in this page, then simply use
g_form.clearMessages() in the onload client script and it will work
Kindly mark the comment as a correct answer and helpful if it helps to solve your problem.
Regards,
Asif
2020 ServiceNow Community MVP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-17-2020 06:02 AM
Hi,
Is it suitable for the script here? Should I write here?
ApprovalUserFeedback

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-17-2020 06:38 AM
Hi,
You can write that message that i gave in the client controller.
Kindly mark the comment as a correct answer and helpful if it helps to solve your problem.
Regards,
Asif
2020 ServiceNow Community MVP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-17-2020 07:43 AM