Discussion

73
Views
Close popover
Manikandan Krishnan (krism2)
PEGA
Senior Software Engineer-UI
Pegasystems Inc.
IN
krism2 Member since 2018 3 posts
PEGA
Posted: March 17, 2021
Last activity: March 17, 2021

Toast Notification in Theme-Cosmos

Toast notification can be shown on successful creation of case object. Once the work object is created successfully the toast notification will be shown on the bottom center of the screen. By default the toast notification message contains the link to work object and the success message. (i.e ) “WO-123 has been created”, however the user can change this. The toast notification will be shown for 5 seconds. By default toast will have close button to close it before it disappears.

Toast

 

Configure toast notification

To enable the toast notification navigate to the case type and Cosmos UI settings inside the settings. Under the General settings enable the option “Stay on current page and show toast notification”.

Settings

 

  • Once the toast notification is enabled, navigating to the case after creation option will be disabled.
  • Can also enable the toast by overriding the when rule pyCreateAndOpenNewCase and return false for the special usecase.

 

Modify the toast section

To modify the toast content, user can able to override the pyCaseConfirm section in the case class.

Modified Toast

***Edited by Moderator: Pooja Gadige to add Developer Knowledge Share tag***
Pega Platform User Experience Cross-Industry Front-End Developer Developer Knowledge Share