Using the Notification (Alert) API

  1. In places where you may typically use javascript "alert()" to show a message to your user, you cannot do so from your custom forms inside Forms inMotion.  This is for 2 reasons:

    1. The popup occurs at the application level and halts execution of that thread which can cause problems in some browser environments
    2. The popup may appear to come from the application when it does not so it might be confusing to the user

    The solution to this is a built in function call that you can use in the same way that the query API is called above.  This is the alert call.


Alert API
var parameters = [];
Forms_inMotion("alert","Your alert text goes here","", parameters);


As you can see it still calls into the same function as the query so make sure to include the empty string and empty parameters array after your call to the alert function and your mes