You need to sign in to do that
Don't have an account?
Mhlangano Khumalo
How to render multiselect picklists as checkboxes on a visualforce page
I have a custom object (standardController="Benchmarking__c"), I created a multi select picklist with values London, Tokyo & LA. I would like these values to appear as checkboxes on the Visualforce page.
<apex:inputField value="{!Benchmarking_Result__c.Select_Cities__c}"/>
<apex:inputField value="{!Benchmarking_Result__c.Select_Cities__c}"/>
If you will use inputfield then it will come as multipicklist only as it's datatype is multipicklist not checkbox...in Vf page controller you can get the values from multipicklist and then you can show them as a checkbox in Vf page without inputfield..
P.S. If my answer helps you to solve your problem please mark it as best answer. It will help other to find best answer.
Thanks,
Sandeep
Salesforce Certified Developer
Here is a sample code which shows pliclist values of Language field on a custom object Employee as checkboxes on the VF page and then read back the selection in the controller.
You can modify this as per you need or design.
Regards,
Vivek Patel.
Please mark this as resolved if this answers your query, this will help others find the correct answers.