Conditional Rendering Not Working for Multi Select Picklist Condition

  • 1
  • Problem
  • Updated 5 months ago
  • In Progress
I want to conditionally render a tab based on a value in a multi select picklist. It works if there is only one value in the picklist, but stops working if there are mutliple values.

So if I only want to render my tab when my picklist contains "foobar", it will render when it's only "foobar", but not when it is "helloworld;foobar". Does anyone have any suggestions for working around this?


Thanks!
Eulogio
Photo of Eulogio Gallo

Eulogio Gallo

  • 1,874 Points 1k badge 2x thumb
  • confused

Posted 5 months ago

  • 1
Photo of Mike Dwyer

Mike Dwyer, Champion

  • 3,482 Points 3k badge 2x thumb
Interesting test results with this: A render condition Multi_Picklist__c includes Multiple specified values 'helloworld' and 'foobar' is only true when both values are selected in the record!

My workaround would be to change the Render Conditions 'Render if...' value to ANY Conditions are met, and put an 'includes Single specified value helloworld' condition and an 'includes Single specified value foobar' condition.

If you have other render condition logic, you can use the Custom logic option. [Be sure to use capital letters for the AND and OR.]
Photo of Eulogio Gallo

Eulogio Gallo

  • 1,874 Points 1k badge 2x thumb
Thanks Mike! Your explanation makes sense, I was able to implement this and it works :-)