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.
Code Block language js linenumbers true 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:
- The popup occurs at the application level and halts execution of that thread which can cause problems in some browser environments
- 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
That action is not valid");var
parameters = [];
Forms_inMotion(
"alert"
,
"
Your alert text goes here"
,
""
, parameters);
As you can see it still calls intto 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 message.
Related articles
Filter by label (Content by label) | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Page Properties | ||||||
---|---|---|---|---|---|---|
| ||||||
|