The removeMessage() method removes the previously set message next to the button.
Syntax
ajax.removeMessage();
Arguments
No arguments.
Return value
No return value.
Example
Let's say you have added a Custom button that creates a PDF file and saves it in the output folder of the project. The file opens after it is downloaded, and you have displayed a message that says so.
Now you want to remove the message as the file has already been opened. Add the following code to the Client After event:
ajax.removeMessage();
See also:
•JavaScript API: AJAX helper object > setMessage()
•How to create a PDF file and save it to the output folder
•JavaScript API: AJAX helper object