Awaken Scripting User Guide

Please email helpdesk@awaken.io for omissions or errors.
×
Menu

Removing Toast with JavaScript

 
JavaScript can be used to remove a created Toast at any time in a Workflow.
 

How To

Inside any JavaScript-manipulating Field (Calculate, JavaScript, JavaScript - Button), use the Script.Toast.Hide() function:
Script.Toast.Hide(name);
 
Name
Required / Optional
Explanation
name
Required
The identifier of the Toast to be removed. If the Toast was created by a Toast Popup then this will be the Field Name of the Toast Popup, if it was created via JavaScript then it will be the name.
 
 
Example:
Script.Toast.Hide("customerDetails");
 
 

Notes

If specifying a Field Name, the name shouldn't be wrapped in square brackets, but should be wrapped in quotes.