How to remove the info message that appears in the form/table?

ramkutva
Kilo Explorer

I have used g_form.addInfoMessage("some content").Its working fine.How to remove it?

4 REPLIES 4

T600
Giga Contributor

If I understand correctly...
you can comment out the line in the script.
Or you meant something else.May be a screenshot be helpful


ramkutva
Kilo Explorer

I want it to remove the info message through scripting.How to achieve it?What method to do so?


Mark Stanger
Giga Sage

I've created a cheat sheet at SNGuru that shows all of the info message methods (including how to hide a message added by 'addInfoMessage'). You can check it out here.

http://www.servicenowguru.com/scripting/ui-info-error-message-cheat-sheet/


As usual, Mark, awesome reference.  Thanks! 🙂