back to top

Showing or Hiding the Lead Qualify Button in Creatio (formerly bpm’online)

In the Lead section of bpm’online, there’s a “Qualify” button that can be used when you qualify a lead. This button triggers a process to do things such as link to an existing contact/account or create a new one, create an opportunity, create some tasks, etc. However, what if you only want this button to show when certain conditions are met? Maybe the current user being in a role, or some conditions in the lead data itself to be met?

These are the buttons I’m referring to:

It’s a pretty easy task to customize this. We’ll be adding this to the LeadSection itself. The LeadSectionV2 has a mixin called LeadManagementUtilities where most of this is implemented. However, a mixin becomes a part of the thing it’s mixed into, meaning we can just customize this in the LeadSectionV2 rather than extend the LeadManagementUtilities module. The code we care about for this task is in the initLeadManagementButtonVisibility function. We’ll override that, call the original function, then perform our own logic to change what the initLeadManagementButtonVisibility did, if needed.

First, we’ll need a replacing schema for LeadSectionV2. The easiest way to do that is to open the section wizard for the Lead section, then click Save (no other changes are needed). Then, we’ll see our LeadSectionV2 in our configuration. Open it and add the following code:

define("LeadSectionV2", [], function() {
    return {
        entitySchemaName: "Lead",
        methods: {
            initLeadManagementButtonVisibility: function(entity) {
                this.callParent(arguments);
                
                // we can set this to true/false based on whatever our conditions are
                var showQualifyButton = false;
                
                // now show or hide the button
                this.set("LeadManagementButtonVisible", showQualifyButton);

                // you can do the same with the disqualify action menu items
                this.set("DisqalificationButtonVisible", showQualifyButton);
            }
        }
    };
});

Note, you’ll need to add the same code to the LeadPageV2 as well so it can properly show/hide the button when in edit mode.

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