wiki/knowledge/salesforce/core-of-stone-lead-conversion-lightning-fix.md Layer 2 article 375 words Updated: 2026-03-17
↓ MD ↓ PDF
salesforce core-of-stone lightning-component lead-conversion bug-fix

Core of Stone – Salesforce Lead Conversion Lightning Fix

Overview

A persistent bug in the Core of Stone Salesforce org caused lead conversions to fail silently: users were bypassing the custom "Convert Lead" button and clicking the standard Salesforce "Convert" button instead. The standard button did not prompt for a project name, resulting in leads being converted without that required field populated. This article documents the root cause, the fix, and the validation approach.

Problem

The custom "Convert Lead" button was built to trigger a workflow that prompts the user to enter a project name before completing the conversion. However, the standard Salesforce "Convert" button remained visible — particularly in the Sales Console app — and users were clicking it instead.

Multiple attempts were made to hide the standard button through conventional configuration, but it kept reappearing. The standard button is a native Salesforce element and proved resistant to simple UI suppression.

An alternative approach — making project name a required field on the lead record itself — was considered but rejected. There were approximately 160–180 existing leads without a project name, meaning every time a user opened one of those records, they would be forced to fill in the field. This was deemed too disruptive.

Solution

A Lightning component was created to intercept and hide the standard "Convert" button, forcing users to interact only with the custom "Convert Lead" button and its associated workflow.

This approach works at the component level rather than trying to suppress a native button through page layout or profile settings, which had proven unreliable.

Validation

The fix was tested across multiple Salesforce app contexts:

In each context, the test cycle was: create a lead → attempt conversion → confirm only the custom button is available → confirm project name prompt appears → complete conversion. The fix held across all tested scenarios.

Next Steps

Sources

  1. Index