1

while creating stage picklist am getting this error..please help me to resolve ..

<apex:pageblockSectionitem>
  <apex:selectList size="1" value="{!Stage }"> 
   <apex:selectOptions value="{!Stage }">
   </apex:selectOptions>
  </apex:selectList>
</apex:pageblockSectionitem> 


  • 3
    Try {!Opportunity.Stage}. – Keith C Apr 5 '16 at 8:53
  • 2
    instead apex:selectlist use <apex:inputField value="{!Opportunity.Stage}" /> This will create picklist for you.. – Ratan Paul Apr 5 '16 at 9:07
  • added but am getting another error after added that line of code like Error: Could not resolve field 'Stage' from <apex:inputField> value binding '{!Opportunity.Stage}' in page MyOpportunities – lathish Apr 5 '16 at 9:52
2

API name for standard Stage field on Opportunity object is StageName

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.