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
richard1.3903050990828992E12richard1.3903050990828992E12 

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.'
PandeiswariPandeiswari
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}"/>
richard1.3903050990828992E12richard1.3903050990828992E12
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.
richard1.3903050990828992E12richard1.3903050990828992E12
Hi, thanks. Yes - the field level security is visible for that user profile.