Skip to main content
Glenn Daly (Pod Point) 님이 #Visualforce에 질문했습니다
I want to display the a field label differently on a Product record. I have written the VF below. However, when I go to a Product record, it still displays as "Product Name" and not "Project Name". What am I doing wrong?

<apex:page standardController="Product2">

   <apex:form>

       <apex:pageBlockSection columns="2">

    <apex:inputField Value="{!Product2.Name}" label="Project Name" />

       </apex:pageBlockSection>    

   </apex:form>

</apex:page>
답변 3개
  1. 2016년 11월 11일 오전 11:22

    See if below change helps . i.e. PageBlockSection should be used within the PageBlock tag.

    <apex:page standardController="Product2">

    <apex:form >

    <apex:pageBlock>

    <apex:pageBlockSection columns="2">

    <apex:inputField Value="{!Product2.Name}" label="Project Name" />

    </apex:pageBlockSection>

    </apex:pageBlock>

    </apex:form>

    </apex:page>

     
0/9000