+ Start a Discussion

What are the Visualforce variables for last modified date and user?

I want to include the following on a Visualforce page, in reference to the page itself: 'This page was last modified by xxxxname on xxxxdate.'
Please use below code to get all system information to display in visualforce page

<apex:outputField value="{!Contact.CreatedById}" />
<apex:outputField value="{!Contact.CreatedDate}" />
<apex:outputField value="{!Contact.LastModifiedById}"/>
 <apex:outputField value="{!Contact.LastModifiedDate}"/>
 <apex:outputField value="{!Contact.OwnerId}"/>
Thanks. I have the standard controller set to Contact and used the code above, but nothing shows (although I don't get an error message either).
Dushyant SonwarDushyant Sonwar
Hi Richard,
Check the the profile for that user has Field level Security is Visible Option is Checked or not for these Field.
Hi, thanks. Yes - the field level security is visible for that user profile.