I'm using Visualforce page to make it an Export template so that when user press a button, it will export data from List View.
Everything is fine but I have a problem with multi-select picklist. Because API values are different from values display in UI so I have to typecast it.
What I tried:
<td>
<apex:outputText value="{!IF(acc.multi_select_picklist = '1', 'First Item', '')}" />
<apex:outputText value="{!IF(acc.multi_select_picklist = '2', 'Second Item', '')}" />
<apex:outputText value="{!IF(acc.multi_select_picklist = '3', 'Third Item', '')}" />
</td>
It works okay when user choose only 1 value. But when user choose up to 2 values, it displays empty. Is there any way I can work on this?
Best Regards,
Pam.