Displaying Toast Message Popups from Creatio Freedom UI Pages

A toast popup is an unobtrusive way to display a message to a user. It displays at the bottom of the page, out of the way from what the user is doing and goes away on it’s own after a short period. Creatio includes the ability to display a toast message to a user from Freedom UI pages as of 8.0.10. In order to display a toast popup, we’ll simply need to execute a crt.NotificationRequest request and include a message we want to display. The code is simple and easy.

Let’s take a look at how it works:

request.$context.executeRequest({
	type: "crt.NotificationRequest",
	message: "This is my toast message!"
});

The end result is the following:

This is a nice way to display information to the user without getting in their way. This request also includes some optional parameters you can also include:

  • duration – (integer) the number of milliseconds to display the toast message (I believe the default is 3000, or 3 seconds)
  • awaitResponse – (boolean) whether or not you want the request to await the response to the message
  • translate – (boolean) if a name of a localized string is used for the message, whether to translate the string
Want content like this delivered to your inbox? Sign up for our newsletter!
ABOUT THE AUTHOR

Ryan Farley

Ryan Farley is the Director of Development for Customer FX and creator of slxdeveloper.com. He's been blogging regularly about SalesLogix, now Infor CRM, since 2001 and believes in sharing with the community. His new passion for CRM is Creatio, formerly bpm'online. He loves C#, Javascript, web development, open source, and Linux. He also loves his hobby as an amateur filmmaker.

Submit a Comment

Your email address will not be published. Required fields are marked *