You need to sign in to do that
Don't have an account?
SF_Gh0st
Add field from another object
Hi,
I have a visualforce page that is mainly related to the account object in the sense that all the fields on the page are from the account object. However there is one field on a custom object (address) that I want to add to this VF page. What is the best way to do that? I thought I could add a lookup field from account to address (address__c is the lookup field) but that doesnt seem to work, I tried something like this:
I have a visualforce page that is mainly related to the account object in the sense that all the fields on the page are from the account object. However there is one field on a custom object (address) that I want to add to this VF page. What is the best way to do that? I thought I could add a lookup field from account to address (address__c is the lookup field) but that doesnt seem to work, I tried something like this:
<apex:outPutText value="{!acct.address__r.customField__c"/>Is it possible to do something like this or do I need to do anything to the controller? Thanks.
Hi,
You can take references from the below code.
Please mark it as the Best Answer if it helps you
Thank You