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
lnorrislnorris 

Changing field display name with inputField in BlockSection

I'm trying to give a field a custom display name value.  I've done this with standard tables before, but I'm using blocksection and am having some trouble.  I tried using outputLable, but it added another row and didn't change the name of the item I had given the ID to.

 

here's the code:

<apex:pageBlockSection columns="1" >
<apex:inputField value="{!Task.Activity_Type__c}"/>
<apex:inputField value="{!Task.WhoID}"/>
<apex:inputField value="{!Task.ActivityDate}" ID="Date"/>
<apex:inputField value="{!Task.Description}" style="width:50%;"/>
</apex:pageBlockSection>
Is it possible to give the "Date" field a new display value?

 

Thanks in advance!

Best Answer chosen by Admin (Salesforce Developers) 
jwetzlerjwetzler
Look at the doc for pageBlockSectionItem.