Please enable JavaScript to view this site.

Navigation: Advanced topics > Programming topics > JavaScript API > AJAX helper object > Methods

JavaScript API: AJAX helper object > removeMessage()

Scroll Prev Next More

 

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()

Tri-part events

How to create a PDF file and save it to the output folder

Dialog API

PDF API

JavaScript API: AJAX helper object

About JavaScript API