back to top

Displaying Information, Confirmation, and Error Dialogs in Creatio (formerly bpm’online)

If you need to interact with the user from your form code in bpm’online, to display information, prompt for a choice, or show an error, there are several built-in dialog options you can use.

Displaying Information

This is a simple dialog, used to provide some message to the user. The code to display this is as follows:

Terrasoft.showInformation("Welcome to the information message dialog");

If for some reason you need to know when the user clicks OK to dismiss the dialog, you can provide a callback function and context parameter as well:

Terrasoft.showInformation("Welcome to the information message dialog", function(result) { 
    this.console.log(result); // result will be "ok"
}, this);

 

Displaying Errors

When something has gone wrong, you can use an error dialog, rather than the information dialog. This makes it clear that something unexpected or incorrect has happened, indicated by the red color of the dialog.

Terrasoft.showErrorMessage("An error has occurred doing something");

Note, this also can optionally take a callback, and context parameter so you’ll know when the user clicked the OK button to close the dialog.

Terrasoft.showErrorMessage("An error has occurred doing something", function(result) {
    // user closed the dialog
    this.console.log(result); // result will be "ok"
}, this);

 

Prompting for Choices

If you’d like to prompt the user for a choice, you can use the confirmation dialog. This has a callback for when the user makes a choice and clicks one of the options. The parameter for the callback will provide the text of the button clicked.

Terrasoft.showConfirmation("Would you like to do the thing?", function(result) { 
    this.console.log("The user selected " + result); // result will be "yes" or "no" 

    // or we could use the constants, like this:
    if (result === Terrasoft.MessageBoxButtons.YES.returnCode) {
        // do something
    }
}, ["yes", "no"], this);

Note, you can also define custom buttons, however, you can’t just provide a string for the caption, you need to provide the config for the button itself, like this:

Terrasoft.showConfirmation("Would you like to do the thing?", function(result) { console.log(result); }, ["yes", "no", {
 	className: "Terrasoft.Button",
 	returnCode: "somethingElse",
 	style: "green",
 	caption: "Something else"
  }], this);

This will produce the following dialog:

We specified “somethingElse” for our return code for that button, so that is what we’ll be passed if the user clicks that option.

 

Contact Customer FX for your CRM project
We let our expertise speak for itself - let us know how our all-star team can help on your CRM project
About the Author
Ryan Farley
Ryan Farleyhttps://customerfx.com/article/author/ryanfarley/
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.

LEAVE A REPLY

Please enter your comment!
Please enter your name here

AI Readiness Checklist for CRM Teams: Is Your CRM System Ready for AI?

Before using AI in Creatio, make sure your CRM data, users, processes, and automation foundation are ready. Use this practical AI readiness checklist for CRM teams.

Build Your Creatio AI Skills with the 2026 AI Summer Program

Join Creatio’s free 2026 AI Summer Program to learn how to identify, build, deploy, and manage AI agents.

Creatio 10x Is Coming: Join the Webinar to Explore the Future of AI-Native CRM

Learn what's new in Creatio 10x and how AI-native CRM, agentic AI, and no-code automation are shaping the future of customer relationship management. Join the upcoming webinar and discover what's next.

Creatio Unlimited Pricing Explained: AI Packages, Costs, Pros & Cons

Learn what Creatio’s new Unlimited pricing model includes, what it doesn’t include, how AI Action packages work, and the pros and cons for businesses evaluating Creatio.

Using the AI Prompt to Create Dynamic Folders in Creatio

Using Creatio's AI prompt to create the filter for a dynamic folder works best if you specifically ask for that, and if you are as clear and direct as possible about the filtering, conditions.

Related Articles

AI Readiness Checklist for CRM Teams: Is Your CRM System Ready for AI?

Before using AI in Creatio, make sure your CRM data, users, processes, and automation foundation are ready. Use this practical AI readiness checklist for CRM teams.

Build Your Creatio AI Skills with the 2026 AI Summer Program

Join Creatio’s free 2026 AI Summer Program to learn how to identify, build, deploy, and manage AI agents.

Creatio 10x Is Coming: Join the Webinar to Explore the Future of AI-Native CRM

Learn what's new in Creatio 10x and how AI-native CRM, agentic AI, and no-code automation are shaping the future of customer relationship management. Join the upcoming webinar and discover what's next.

Creatio Unlimited Pricing Explained: AI Packages, Costs, Pros & Cons

Learn what Creatio’s new Unlimited pricing model includes, what it doesn’t include, how AI Action packages work, and the pros and cons for businesses evaluating Creatio.

Related Videos