You need to sign in to do that
Don't have an account?
Richa_Learning
VF page for Ideas
Hi,
I am geting an error that zone is missing. but i am defaulting that in Class but still error
I am geting an error that zone is missing. but i am defaulting that in Class but still error
Page: <apex:page standardController="idea"> <apex:form > <apex:pageBlock title="New Idea"> <apex:pageBlockButtons > <apex:commandButton action="{!Save}" value="Save"/> <apex:commandButton value="Cancel" action="{!Cancel}" /> </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> Class: public with sharing class ideaExtension { Private final Idea idea; public ideaExtension(ApexPages.StandardController stdController) { this.idea = (Idea)stdController.getRecord(); } public String getCommunityId() { return idea.CommunityId ='012G0000000nJvqINO'; } }
The below changes should work..
#1. VF Page: #2. Apex class: