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

Link VF page to Object


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:pageBlockSection title="Idea Details" columns="1">
<apex:inputField style="width:250px" value="{!idea.title}"/>
<apex:inputField required="true" style="width:600px" value="{!idea.body}"/>

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

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.

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.