You need to sign in to do that
Don't have an account?
bc2000
If I try,
"INCLUDES" operator with "rendered" attribute
I'm trying to dynamically display one or more pageBlockSection's based on the values of a multi-select picklist, using the "rendered" attribute. I've been trying to use the INCLUDES operator, also TEXT and CONTAINS, but have had no luck so far!
rendered="{INCLUDES(!account.Business_Unit__c, 'Business1')}"
If 'Business1' is one of the values selected in the picklist "Business_Unit__c", then the section should be rendered, but it's not showing up, no matter what combination of picklist values and operators I try.
If I try,
rendered="{!account.Business_Unit__c = 'Business1'}"
and 'Business1' is the only picklist value selected, then of course the section is displayed.
Any help with this issue would greatly be appreciated.
Thank you,
BC
This works for me:-
...rendered="{!contains('|P|',policyType)}">
policyType is a list I've built that looks like '|a|b|c|' etc... You should be able to substitute your values.
R.
Hello Richie,
Thank you very much for the help, I'd definitely like to try your method.
Just one follow up question, do you need to build this list with Apex, or can it be done in VisualForce? I'm trying to avoid any custom controllers.
Thank you!
BC