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
Cynthia Rodgers 12Cynthia Rodgers 12 

Visualforce Page is not showing on the IDEA's Object when I click Post Idea

I have created a vf page used when clicking the Post Idea button from Idea's.  I have assigned that page to all profiles and validated the field level security.  I am still unable to see the new page.  What am I missing?   
NagendraNagendra (Salesforce Developers) 
Hi Rodgers,

May I suggest you please try the sample code below and tweak it as per the requirement which should point you further in the right direction.
Apex Class:

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

}

Visual Force 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>
Please let us know if this helps.

Mark this as solved if it;s resolved.

Thanks,
Nagendra
 
Cynthia Rodgers 12Cynthia Rodgers 12
Thank you.  Im reveiwing now but have a question.  I apologize ahead of time for not being tech savy.   I already have a visualforce page that I want called, the code is below.  I have also assigned the page layout but I am unable to see the new page layout.  Will i need to modify my the apex class to call my vf page? Do i add the apex class code to my vf page?  Let me know.

My VF page code is this:
<!-- page named Idea Layout 2 -->
<apex:page standardController="Idea">
    <apex:form >
        <apex:pageBlock >
                    <apex:pageBlockSection title="Idea Description" columns="1">
           <apex:repeat value="{!$ObjectType.Idea.FieldSets.Idea_Description}" 
                    var="field">
              <apex:inputField value="{!Idea[field]}" />
                      </apex:repeat>
                       </apex:pageBlockSection>
     </apex:pageBlock>
     </apex:form>
            <apex:form >
        <apex:pageBlock >
                    <apex:pageBlockSection title="Idea Stages" columns="2">
           <apex:repeat value="{!$ObjectType.Idea.FieldSets.Idea_Stages}" 
                    var="field">
              <apex:inputField value="{!Idea[field]}" />
              </apex:repeat>
                       </apex:pageBlockSection>
     </apex:pageBlock>
     </apex:form>
     <apex:form >
             </apex:form>
     </apex:page>
Idea VF page