How to display an Info message in ServiceNow Portal

Priya131
Kilo Contributor

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

20 REPLIES 20

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.

not possible to show alert on that page.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Upender Kumar
Mega Sage

You can use gs.addInfoMessage('You message') in all the places BR or UI or Custom button in widget.

Ankur Bawiskar
Tera Patron
Tera Patron

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

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

-O-
Kilo Patron
Kilo Patron

Do you mean if it happens while a user is viewing the form?