Reply
Regular Contributor
mavs
Posts: 120
Accepted Solution

question on Lookup field

Can we display a lookup field without Account Name being populated in the textbox?

 

 

We are grabbing Accountid from Contact Object. Account Name is being populated in the lookup textBox when the component is rendered. Can we remove Account name being populated in the lookup field when the page is rendered?

 

 Please advise

 

<apex:inputField value="{!con.Accountid}"/>

 

lookup 

 

we just need the LookUp field with empty TextBox

Trusted Contributor
Anand@SAAS
Posts: 260

Re: question on Lookup field

Set the value of the "AccountId" to "null" in your controller.