Hi guys... is there a way to hide/destroy all the ...
# suitescript
e
Hi guys... is there a way to hide/destroy all the visible messages created with N/ui/message on a page? I'm using a client script that creates a message upon some user activity, but then, when a new activity happens, I need to hide/remove the previous messages... I don't want to give them a default duration.
e
I think I have my code backwards or something... I have a Suitelet that calls a button. The mesage code is inside that button script, so the next time the button is called, it has no concept of the previous instance of the message, so I can't use hide()
b
you need to store the message in a variable for later use