The Toast Popup Control allows notifications or confirmations to be presented to the agent during a record.
It can be used to easily display a small amount of transient information, in contrast to a
Text Label which is better suited to displaying more information for a longer period, or a
Toolbar Label - Add which is better suited to displaying a small amount of persistent information on multiple Pages.
The triggering button can be visible to or hidden from the agent, and the Toast itself displays as a little window in the top-right corner of the view before minimising to a tab after a few seconds:
This Control is part of the Intermediate Control pack, and will only be available if your System has the appropriate licence.
Add a Toast Popup to the Page. The options and style can be configured in the
Options tab and
Styling tab of the Field Properties.
Toast Popup Fields can be styled in a Stylesheet by referencing the control-toast-popup class.
The Toast Popup Control has five unique options available in its Options tab:
Option
|
Description
|
Close Option
|
If enabled, the Toast will have a close button in the top-right corner, allowing the agent to dismiss it manually. If disabled, it will only be removable via JavaScript or the Toast - Timeout option. Note that if the Timeout is set to Infinite, then a close button will always be presented, regardless of other settings.
|
Toast - Heading
|
This is the heading at the top of the Toast.
|
Toast - Message
|
This is the body text within the Toast. This also allows Fields or Variables to be entered to create dynamic text.
|
Toast - Initial Duration
|
This defines how long (in seconds) a Toast will be maximised before it is automatically minimised.
|
Toast - Timeout
|
This defines how long (in seconds) after minimising a Toast should automatically close itself.
|
Toast - Type
|
This defines the styling of the created Toast, with the choice of Success, Error, Warning, Information, or Loading.
|
The different Toast - Type options are shown below:
Created Toast will persist through Page transitions, so can be used to display loading/waiting messages if passing through a number of automated Pages.
If the created Toast is to be closed via a
Toast Remove or JavaScript, then the
Field Name is used to identify the created Toast.
As with other button-type Fields, upon activation the button will then be temporarily disabled until the action has completed.
As with other button-type Fields, it is possible to trigger this by JavaScript or
Update Links. Please see the
.click() article for more information and an example regarding using JavaScript.