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
Nishant Dubey 7Nishant Dubey 7 

Access a Child record from Parent account on visualforce using lookup field.

Access a Child record from Parent account on visualforce using lookup field. For Example
Parent Account : ABC, child Account : 123 ,1A2 ,2B1
My VF page :
<apex:page standardController="Account">
   <apex:pageBlock>
                   <apex:pageBlockSection collapsible="true" title="Filters" columns="1" >
                                     <apex:inputField value="{!Account.name}" />  
<!-- Display only Parent Account Name but i want display lookup icon with all child record related to parent account .-->
                   </apex:pageBlockSection>
   </apex:pageBlock>
</apex:page>

mohdAnasmohdAnas

hi,

For this you have to write a controller or an extension from where you can use any object that have a field contact as contact lookup 

then override the lookup functionality creating your own custom lookup 

Take help from this :http://blog.jeffdouglas.com/2011/08/12/roll-your-own-salesforce-lookup-popup-window/

if any help needed feel free to ping me 

good day !