You need to sign in to do that
Don't have an account?
Zoom_V
Lookup fields Visualforce
I'm trying to find the properly way to display a lookup field on a Visualforce for a custom object/field. All of the examples I keep seeing are for standard fields (AccountID ; UserID).
<apex:inputfield id="Vendor_Classification__c" value="{!Vendor_Classification__c.Vendor__c}" required="true"/>
What is the proper syntax to display the Vendor__c lookup field as a link ?
<apex:inputfield id="Vendor_Classification__c" value="{!Vendor_Classification__c.Vendor__c}" required="true"/>
What is the proper syntax to display the Vendor__c lookup field as a link ?
If you want to display that as a link you need to use <apex:outputfield> tag instead of <apex:inputfield> as shown below
Let me know if that help you.
Thanks,
Himanshu
If you want to show lookup link as readonly then try below code. let me know if this works for you.
Best Regards,
-Vivek
thx.