Modal Alert

The Modal Alert control is an alert that can to be fired when a specified event has occurred.  When the Modal Alert appears on the screen, the user needs to handle this control or close it out before the user can return to the “main” screen

The Modal Alert control comes with easy to configure appearance options.

Like almost all SPARK controls, you can trigger events that are fired when the user interacts with the control (see the Event and Methods sections below and the Event Handling article for more information).

This control is most commonly used when needing to alert the user about something important and not allowing them to continue until they close the Modal Alert window.


Color Style

Button Label This is where you insert what the button inside of the Modal Alert will display


These are the configuration option settings for the Modal Alert...

These are the configuration option settings for the Button...

The Modal Alert text is set under the General properties...

When the button is clicked this is the result...

Visibility of the Modal Alert should be set to 'None', otherwise the Modal Alert will be visible as soon as the page loads.


With the Modal Alert control, there are 2 types of event handlers:

  • On Load When the page loads
  • On Close When the Modal Alert window is closed

You can use JavaScript logic to affect the effects of the control, depending on the event. More information on using these controls can be found in the Event Handling article.


For detailed information on the available methods for this control, access the JS Doc file.

Related Article(s)

Data Binding & Retrieval


  • Author: Dan Abresch
  • Date Created: June 8, 2015
  • Date Modified: August 31, 2015
Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request