You need to sign in to do that
Don't have an account?

visualforce multi picklist
Hi
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
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
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:
https://developer.salesforce.com/blogs/developer-relations/2008/12/using-the-metadata-api-to-retrieve-picklist-values.html
http://www.salesforcefast.com/2011/06/get-picklist-values.html
http://salesforce.stackexchange.com/questions/12109/default-value-radio-button
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 http://forceschool.blogspot.fr/2011/06/calculate-day-of-date-in-apex.html.
Regards,
Fred
Did this answer helped you? If so, feel free to mark the question as Solved and kindly select the best answer of your choice!
Thanks,
Fred