Please enable JavaScript to view this site.

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

JavaScript API: AJAX helper object > setMessage()

Scroll Prev Next More


The setMessage() method displays a message next to the button.


ajax.setMessage( text );



message to display

Return value

No return value.


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 want to display a message that says so.


Add the following code to the Client Before event:


ajax.setMessage("The PDF file will open automatically after it is downloaded");

See also:

JavaScript API: AJAX helper object >removeMessage()

Tri-part events

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

Dialog API


JavaScript API: AJAX helper object

About JavaScript API