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
Richa_LearningRicha_Learning 

Link VF page to Object

Hi,

this is Class:

public with sharing class ideaExtension {
Private final Idea idea;
public ideaExtension(ApexPages.StandardController stdController) {
this.idea = (Idea)stdController.getRecord();
}

}


This is Page:

<apex:page standardController="idea">
<apex:form >
<apex:pageBlock title="New Idea">
<apex:pageBlockButtons >
<apex:commandButton action="{!save}" value="Save"/>
</apex:pageBlockButtons>
<apex:pageBlockSection title="Idea Details" columns="1">
<apex:inputField style="width:250px" value="{!idea.title}"/>
<apex:inputField required="true" style="width:600px" value="{!idea.body}"/>
</apex:pageBlockSection>
</apex:pageBlock>
</apex:form>
</apex:page>


When I click on Idea object,i still see the Old Idea Page layout. How do it enforce this page?

thanks,
Richa
PratikPratik (Salesforce Developers) 
Hi Richa,

If you want to link Vf page to your above code, create the Visualforce Tab.

Setup->Create->Tabs->Visualforce Tab , here you can attach your VF page to the tab.

Thanks,
Pratik
 
Richa_LearningRicha_Learning
This worked. We are using only  1 zone "Internal". Can I make this default so user don't have to choose everytime?
PratikPratik (Salesforce Developers) 
Hi Richa,

You can keep the zone active and can set where you want to show that zone (internal, portal or community). You can go to Zone, click on Edit besides Zone name and change the setting.
If you have only one zone, then only that zone will be reflected in ideas tab.

Hope this will help.

Thanks,
Pratik