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
StormConsultingStormConsulting 

How to create a lookup input field

How can I create a input lookup field on a VF page? I want to use the standard Salesforce lookup.

For example a field called 'Contact' whch looks up a contact.

Thanks
yogesh.rankawatyogesh.rankawat
Use <apex:inputField> .... it will automatically create lookup icon.

:smileyhappy:
StormConsultingStormConsulting
Can you explain this further?

Simply <apex:inputField/> does not seem to work.

Thanks
arundevarundev
try this.I hope it will work.
 
<apex:inputfield value="{!Standardcontrollername.contactId}" />