function readOnly(count){ }
Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
<apex:page standardController="Opportunity"> <apex:form > <apex:inputField value="{!opportunity.AccountId}"/> </apex:form> </apex:page>
<apex:page controller = "ContactLookUpDemo"> <apex:form> <apex:pageblock> <apex:pageblockSection> <apex:inputfiled value="{!con.AccountId}" /> </apex:pageblockSection> </apex:pageblock> </apex:form> </apex:page>
Suppose you are working on Contact. on Contact, Account lookup is available. To show lookup on VF page
public class ContactLookUpDemo
{
public contact con{get;set;}
public ContactLookUpDemo(){
con = new contact();
}
}
VF Page -
<apex:page controller = "ContactLookUpDemo">
<apex:form>
<apex:pageblock>
<apex:pageblockSection>
<apex:inputfiled value="{!con.AccountId}" />
</apex:pageblockSection>
</apex:pageblock>
</apex:form>
</apex:page>
You need to use inputfiled in pagebliock section.
Thanks,
-Raj
You can refer below code:
If this solves your problem, kindly mark it as the best answer.
Thanks,
Vatsal
here i pasted the sample code using standard controller
sample code:
<apex:page standardController="Case">
<apex:form>
<apex:outputlabel value="Account Name:"> </apex:outputlabel>
<apex:inputfield value="{!case.Accountid}" style="width:160px"/>
</apex:form>
</apex:page>