How to display an Info message in ServiceNow Portal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-01-2021 07:08 AM
Hi,
How to display an info message for the service Now Portal when the incident form resolved state changes to the closed state.
Regards,
Priya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-02-2021 04:38 AM
That is not an incident form, that is a ticket conversation form. It has nothing to do with any Client Scripts.
You need to either modify the summary or conversation widgets to watch the current record and if it is an incident and the state changes to show the message, or create a new widget that watches the current record and does the messaging if the current ticket is an incident and is being closed. You'd than add the new widget to the page.
Creating a new widget will be easier I would say.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-02-2021 04:45 AM
not possible to show alert on that page.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-01-2021 07:21 AM
You can use gs.addInfoMessage('You message') in all the places BR or UI or Custom button in widget.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-01-2021 07:56 AM
Hi Priya,
Are you sure that BR is running fine?
Please check BR conditions and also add some info statements to debug
Try removing the BR condition and keep only this
current.state == 7
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-01-2021 01:49 PM
Do you mean if it happens while a user is viewing the form?