+ Start a Discussion
Karla Pliego 3Karla Pliego 3 

cannot add account field to visual force

I want to add the Account field to the visual force page for contacts. When I add it 

                    <apex:inputField value="{!contact.Account}" required="false"/>

Whenever you want to create a new contact, you get this error 

Expression value does not resolve to a field
Error is in expression '{!contact.Account}' in component <apex:inputField> in page quick_create_contact
Best Answer chosen by Karla Pliego 3
Paone RajuPaone Raju

As Account is a look up field use below tag

<apex:inputField value="{!contact.Accountid}" required="false"/>

Mark as best if this resolves the issue