NSOA.form.warning(message)
Use this function to print a warning message on the OpenAir form. The message that appears will look exactly like the OpenAir system-generated warning messages.
Note:
This function will only have an affect on the After save and After approval events, see Events.
Parameters
-
message {string} [required] — The warning message to display on the form.
Note:This message will be displayed instead of the system-generated warning message for the form.
Returns
-
True if the function was successful and false otherwise.
Units Limit
-
1 unit
For more information, see Scripting Governance.
Since
-
October 17, 2015
Example
-
This example displays the warning message 'A warning message' at the top of the form after the form is saved.
NSOA.form.warning("A warning message");
The message appears as a OpenAir system-generated warning.
See Code Samples for more examples.