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

Hi, i have to write a trigger in which i need to hide/show table as per value selected in the multi-picklist. in VF page.

Example : i have a multi picklist with values A,B,C,D & have related table A1,B2,C3,D4 for each. if A & C are selected only its related A1 ,C3 table should be visible in visual force page. 
is it possible that "onSelect" of A & C from multi-picklist , table related (A1, C3) to it should be visible.
Why you need the trigger for this? It is a Visualforce page right?

Call action function on change of picklist, which will set some controller variable of picklist.

on thay basis you can rerender output panels.

<apex:outputpanel rendered ="{!Aselected}">
Table A1
Thanks ! Ashishk.