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
kumar.fdc81.3902978579608325E12kumar.fdc81.3902978579608325E12 

based on Picklist need to display lookup field

Hi all,

when i select picklist value lookup field need to edit mode otherwise Grayout the lookup field using Visual force page.

Thanks
kumar.fdc81.3902978579608325E12kumar.fdc81.3902978579608325E12
HI all,

This is my Component

<apex:component allowDML="true">
<apex:attribute name="thisCon" type="NewCase" required="true" description="controller passed from parent" />
  <apex:pageBlockSection title="Contact Information" collapsible="false">
   <apex:pageBlockSectionItem rendered="{!thisCon.caseRTName == 'OD Change'}" >
    <apex:inputField value="{!thisCon.theCase.Risk_Assessment__c}" rendered="{!thisCon.caseRTName == 'OD Change'}" required="true"/> //Picklist Field
   <apex:inputField value="{!thisCon.theCase.Peer_Reviewer__c}" rendered="{!thisCon.caseRTName == 'OD Change'}"  id="pr"/>  // Lookup field
  <apex:pageblockSectionItem />
</apex:pageBlockSection>
</apex:component>

Thanks