Discussions
- General Development
- Schema Development
- Apex Code Development
- Visualforce Development
- Formulas & Validation Rules
- Security
- Mobile
- Force.com Sites & Site.com
- Chatter Development
- Java Development
- .NET Development
- Perl, PHP, Python & Ruby
- Desktop Integration
- APIs and Integrations
- Visual Workflow
- Apple, Mac and OS X
- VB and Office Development
- AppExchange Directory & Packaging
- Salesforce Labs & Open Source Projects
- Other Salesforce Applications
- Jobs Board
- Force.com Discussion Boards
- :
- Developer Boards for Force.com and Database.com
- :
- Visualforce Development
- :
- Re: Want to override standard button on Lead objec...
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Want to override standard button on Lead object with VF page
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
03-21-2012 08:56 AM
Hi,
I'm really new to SFDC and I'm trying to override the ChangeStatus button on the Lead object with a visualforce page. But, I can't get the VF page to display as an option to override the standard page. The only option in the override of the button is for Custom S-Control; Visualforce page isn't even an option. What am I doing wrong?
Visualforce page markup:
<apex:page standardController="Lead" recordSetVar="leads" tabStyle="Lead">
<img src="../s.gif" alt="Lead" class="pageTitleIcon" title="Lead"/>
<br />
<h1 class="pageType noSecondHeader">Select New Status</h1>
<apex:form >
<apex:pageBlock title="Change Status">
<apex:pageBlockSection >
<apex:inputField value="{!lead.status}"/>
<apex:inputField value="{!lead.Disqualification_Reason__c}"/>
<apex:commandButton action="{!save}" value="Save"/>
<apex:commandButton action="{!cancel}" value="Cancel"/>
</apex:pageBlockSection>
</apex:pageBlock>
</apex:form>
</apex:page>
Re: Want to override standard button on Lead object with VF page
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
03-21-2012 12:00 PM
recordSetVar="leads"
take off this tag in your apex:page component and try again, it will work.
If it is the solution to your issue please mark it as a solution, so some body else can benefit.
Re: Want to override standard button on Lead object with VF page
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
03-21-2012 12:07 PM
Thanks for the response Tej. I removed the recordSetVar="leads" and it is still unavailable.
I'm beginning to think that it's not possible to override the ChangStatus button with a VF page since it's not even listed as an option.
Re: Want to override standard button on Lead object with VF page
[ Edited ]- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
03-21-2012 12:40 PM - edited 03-21-2012 12:44 PM
my bad, i thought u can't see the page in visualforce pages list.
i think the work around for this is , create a custom list button from the search layout -- -> Edit Leads List view----> Create Custom list button -- with the same name as change status and add it to the Leads List View and uncheck the change status list button from leads list view.
The only draw back is it will appear last in the row after standard buttons.
Let me know if you still run into any issues.
If it is the solution to your issue please mark it as a solution, so some body else can benefit.

