You need to sign in to do that
Don't have an account?

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
when i select picklist value lookup field need to edit mode otherwise Grayout the lookup field using Visual force page.
Thanks
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