The notification API allows you to show standardized application level Forms inMotion notifications without breaking out of the sandboxed security model of the iframe in which your custom HTML form will be shown.
Step-by-step guide
This is called using the same integration as the Query API (Using the Query API) the Forms_inMotion function. That function will be injected into your form at load time.
Forms_inMotion("alert","That action is not valid");
Related articles