I am trying to add custom visualforce page in standard contact page layout. For that I have created one VF page that has standardController
set to Contact
in order view it in contact's page layout.
<apex:page standardController="Contact">
</apex:page>
Now, the problem that I am facing is, I have a custom object name Call History Settings
and I want to access the fields of Call_History_Setting__c
object into the VF page that I have created with standardController
<apex:page standardController="Contact">
//access Call_History_Setting__c
</apex:page>
I tried to add Call_History_Setting__c
as lookup field in Contact
object but could not access fields of Call_History_Setting__c
in VF Page , for example Checked_Phone_Number_Fields__c
is one of the fields of Call_History_Setting__c
<apex:page standardController="Contact">
{! Contact.Call_History_Setting__c.Checked_Phone_Number_Fields__c}
//Error unknown field Checked_Phone_Number_Fields__c
</apex:page>