Visualforce Lookup Field

I have seen that allot of people are struggling with creating lookup field in Salesforce. It is very easy by just referencing the child relationship id in an apex:Inputfield. See examples below: When using a standard controller in your page you can do the following: <apex:page standardcontroller=”Contact”> <apex:form> <apex:inputField value=”{!Contact.OwnerId}”/> <apex:inputField value=”{!Contact.AccountId}”/> </apex:form> </apex:page> <apex:page […]

Rate this:

Read More