function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
svadminsvadmin 

Possible to hide a Lead Conversion checkbox?

I'd like to hide the checkbox & wording for "Do not create a new opportunity upon conversion." Is this possible? Maybe with a custom lead convert button & associated javascript or S control?
Best Answer chosen by Admin (Salesforce Developers) 
MATTYBMEMATTYBME

As the Lead conversion page is not a page one can customize you will need to use Apex to do the Lead conversion, see p.178 http://www.salesforce.com/us/developer/docs/apexcode/salesforce_apex_language_reference.pdf and create a button that uses the Apex Lead conversion. Then you can override the existing Convert button with you new Custom Convert button that uses the Apex to do the conversion thus bypassing the standard converion process. 

 

Wish I could help you out with the code but not an much of a coder. Sorry.

 

You may want to check out this post as well: http://community.salesforce.com/sforce/board/message?board.id=apex&thread.id=771

Message Edited by MATTYBME on 06-25-2009 07:42 AM

All Answers

MATTYBMEMATTYBME
Are you desiring that an Opportunity is created automatically upon Lead conversion, thus removing the ability for a User to bypass the Opportunity creation?
svadminsvadmin
Yes that is exactly what I would like to do.
MATTYBMEMATTYBME

As the Lead conversion page is not a page one can customize you will need to use Apex to do the Lead conversion, see p.178 http://www.salesforce.com/us/developer/docs/apexcode/salesforce_apex_language_reference.pdf and create a button that uses the Apex Lead conversion. Then you can override the existing Convert button with you new Custom Convert button that uses the Apex to do the conversion thus bypassing the standard converion process. 

 

Wish I could help you out with the code but not an much of a coder. Sorry.

 

You may want to check out this post as well: http://community.salesforce.com/sforce/board/message?board.id=apex&thread.id=771

Message Edited by MATTYBME on 06-25-2009 07:42 AM
This was selected as the best answer