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
Deepak ChouhanDeepak Chouhan 

visualforce multi picklist

i have created two multi picklist. 1 st contain dates__c (1-30) and 2nd daysofmonth__c (sun - sat).
i want to controlling dayofmonth__c multipick list by dates__c. i want to select 1-10 and output will be Sun and Mon. 2nd case 11-20 then output will be Tue-Thu and 21-30 then output will be Fri-Sat.
pls help me out
Frédéric TrébuchetFrédéric Trébuchet
When you say "output will be" you want to say that only the specific days must be in the 2nd picklist?
If so, you have to do deal with picklist synchronization:
and so on.
This mean you shoud know how to determine the day of week (0, 1, 2, ..., 6) from a date (YYYY-MM-DD).
This can help you

Frédéric TrébuchetFrédéric Trébuchet

Did this answer helped you? If so, feel free to mark the question as Solved and kindly select the best answer of your choice!