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
kalyforminkalyformin 

Displaying lookup fields

How do we get lookup fields to be displayed on a visualforce page? For example if I need the

oppurtunity's owner and account name is there a way we can get this displayed as an output field?

Mehmet_ErgunMehmet_Ergun

Reference the related fields using dot notation - like for example -

 

<apex:outputText value="{!account.Owner.Name}" />

 

Owner is the lookup field.