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
clabiancaclabianca 

Render section with mutiple values

I would like to render a section based on a users picklist selection.  We have 2 possiable values from the picklist which should render the section.  How do I do 2 values.  right now my code is

 

rendered="{!Proposal__c.Type_of_Proposal__c == 'Repond to RFP'}">

 

But i would like to add the value 'Pre-Proposal Idea' as well.

 

Any help would be appreciated.

SteveBowerSteveBower

Rendered="{!OR(ISPICKVAL(Proposal__c.Type_of_proposal__c,'Respond to RFP'), ISPICKVAL(Proposal__c.Type_of_proposal__c,'Pre-Proposal Idea'))}"

 

Use "OR", and ISPICKVAL is (in theory) the right thing picklist values.

 

Best, Steve.

clabiancaclabianca

This did not work   the error was "Save Error: incorrect parameter for function "ISPICKVAL()', Expected Picklist, recieved Text.