Skip to main content
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 respuestas
  1. 11 nov 2016, 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