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
atallatall 

Rendered for Multi-Picklist

Hi

 

I'm using a Multi-Picklist with name "Address Proof" whose values are 'Electricity Bill', 'Passport', 'Ration Card'

 

My requirement is that I want to display the fields based on the values that are considered in this multi-Picklist field.

 

I'm able to display the fields individually but I'm not able to see the 2 fields at a time

 

Here is my code:

 

<apex:page standardController="Voter_Information__c">
<apex:form >
<apex:pageBlock title="Voter Information">
<apex:pageBlockSection title="Address Proof Section" >
<apex:inputField value="{!Voter_Information__c.Address_Proof__c}">
<apex:actionSupport event="onchange"/>
</apex:inputfield>
</apex:pageBlockSection>
<apex:pageBlockSection >
<apex:inputfield value="{!Voter_Information__c.Adhaar_Card__c}" rendered="{!Voter_Information__c.Address_Proof__c=='Adhaar Card'}"/>
<apex:inputfield value="{!Voter_Information__c.Electricity_Bill__c}" rendered="{!Voter_Information__c.Address_Proof__c=='Electricity Bill'}"/>
</apex:pageBlockSection>
</apex:pageBlock>
</apex:form>
</apex:page>

 

Please suggest me in this regard.