Is there a way to stop standard Salesforce button being clicked? in the Lead page I have a standard button called "Convert" I want the user to stop clicking until the Lead is in certain stage, I'm thinking either we can Disabled or Hide or when the user clicked on the button some sort of message saying the "you cannot clicked until the stage has changed to whatever"

I have searched online and did not find anything close to what I'm trying to achieve finally thought to post here.

2 Answers 2


To hide the button

This can be done with record types and page layouts

Create two record types -

  • one for Leads with stages up to but not including the stage that allows conversion
  • one for Leads in stages that allow conversion

Create two page layouts (use page layout assignment)

  • one for the first record type,. Remove the Convert button on the page layout
  • one for the second record type. Leave the Convert button on the page layout

Use Workflow or Process Builder to assign the record type based on Lead 'stage' (presumably, Lead.Status

To leave the button but display an error message after the Conversion page is committed by user

Validation Rule ISPICKVAL(Status,'foo') && IsConverted 

To advise user that Convert is not avail until status is xx

Use 'soft alerts' - an IMAGE formula that appears at the top of the page layout with some colored flag (yellow). See this blog post for an idea

  • this looks little involved is that the only option avail?
    – Nick
    Commented Dec 22, 2016 at 2:31
  • @NickKahn - some other ideas
    – cropredy
    Commented Dec 22, 2016 at 2:48
  • i have created validation rule which states that AND(ISPICKVAL(Status,'Approved Lead')) && IsConverted and i have defined the error message but when i clicked on the convert button and my status was not approved and i did not get any error message, not sure if i'm following your post.
    – Nick
    Commented Dec 22, 2016 at 5:27
  • @NickKahn you want the VR to return true if the status is one you can't convert to a lead. Plus, the VR won't resolve to true until the user fills out the confirm lead form and clicks OK
    – cropredy
    Commented Dec 22, 2016 at 15:48

If you have multiple UI issues and you'd like to solve this issue declaratively the you should look at Skuid, this is exactly what it's designed to do. Skuid is a UX platform completely running in Salesforce. You can see more and download a trail via the app exchange.

  • I take it you work for the company that develops this product?
    – Adrian Larson
    Commented Dec 22, 2016 at 7:51

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .