+ Start a Discussion
kumar.fdc81.3902978579608325E12kumar.fdc81.3902978579608325E12 

Lable not displayed on Component page

Hi All,

When i click on picklist(Risk_Assessment__c) i need to display lookup field(Peer_Reviewer__c). i written below code working, but i need lookup lable name only after select the picklist lookup icon need to display otherwise grayout like that not working. i need "Picklist lable: Risk", "Lookup up lable:Peer".

<apex:actionRegion >
 <apex:inputField value="{!thisCon.theCase.Risk_Assessment__c}" required="true" rendered="{!thisCon.caseRTName == 'OD Change'}"> 
    <apex:actionSupport event="onchange" rerender="pr,rp" />     
  </apex:inputField>  
</apex:actionRegion>
  
<apex:pageBlockSectionItem >
 <apex:outputPanel id="rp" >
  <apex:outputText value="Peer Reviewer" rendered="{!if(thisCon.theCase.Risk_Assessment__c != null,true,false)}"/>
 </apex:outputPanel>

<apex:outputPanel id="pr">
  <apex:outputPanel rendered="{!if(thisCon.theCase.Risk_Assessment__c != null,true,false)}">
   <apex:inputField value="{!thisCon.theCase.Peer_Reviewer__c}" rendered="{!thisCon.caseRTName == 'OD Change'}" />
  </apex:outputPanel>
</apex:outputPanel> 
</apex:pageBlockSectionItem>
Grazitti TeamGrazitti Team
Hi,

You should use the dependent picklist to resolve this issue.

Please refer the link below  :

https://help.salesforce.com/HTViewHelpDoc?id=fields_defining_field_dependencies.htm&language=en_US

Let us know if you have any queries.

Please don't forget to Mark this as best answer if it works fine for you.

Regards,
Grazitti Team
Web: www.grazitti.com