
8 respuestas

Hi, I have implemented following code for both standard as well as custom controller
Standard controller
<apex:page standardController="Account">
<apex:outputField value="{!Account.Prior_Email__c}"/><br/>
</apex:page>
To run this pass id in url e.g /apex/TestAcc?id=0019000001oBT31
Please let me know if any of this works for you.Thanks,SukanyaCustom Controller
<apex:page action="{!load}" Controller="AccPrevious">
<apex:outputText value="{!objAcc.Prior_Email__c}"/><br/>
</apex:page>
public class AccPrevious{
public Account objAcc{get;set;}
public void load(){
objAcc=[select Prior_Email__c from Account where Name=:'test' limit 1];
}
}