+ Start a Discussion
Jeff_SFJeff_SF 

Display System Info

I would like to display the standard system info on a VF form.  What is the proper format to use for code that will show the created by name and time and last modified by name and time .  thank you
Best Answer chosen by Jeff_SF
pconpcon
That's my fault.  You need to use
 
<apex:outputField value="{!Inspection__c.CreatedById}" />

All Answers

pconpcon
Are you looking to output the CreatedBy and CreatedDate fields? I would just do
 
<apex:outputField value="{!object.CreatedBy}" />
<apex:outputField value="{!object.CreatedDate}" />

 
Jeff_SFJeff_SF
<apex:outputField value="{!Inspection__c.CreatedDate}" />
        <apex:outputField value="{!Inspection__c.CreatedBy}" />
                <apex:outputField value="{!Inspection__c.LastModifiedDate}" />

the created date and last modified date lines worked.  The "created by" line did not work.
pconpcon
That's my fault.  You need to use
 
<apex:outputField value="{!Inspection__c.CreatedById}" />
This was selected as the best answer
Jeff_SFJeff_SF
Bingo! thank you