+ Start a Discussion
lil_rangerlil_ranger 

Display Name in the Lookup field in VF page instead of ID.

 I'm trying to display the contract owner field which is a lookup field under the contract standard field.  All that appears is the ID instead of the name.  How do I fix this?

Prepared by: {!Contract.Owner}<br />

 

Then I tried this code and received the error: "Expression Values does not resolve to a field."

 

Prepared by: <apex:outputField value="{!Contract.Owner}"/>

 

Any help would be greatly appreciated.  Thank you.

Best Answer chosen by Admin (Salesforce Developers) 
sai.sfsai.sf

I think this should help u .

                           {!Contract.Owner.Name}

All Answers

sai.sfsai.sf

I think this should help u .

                           {!Contract.Owner.Name}

This was selected as the best answer
lil_rangerlil_ranger

thank you!  I should have figured it was something easy.