You need to sign in to do that
Don't have an account?
MissaTXREGN
Convert Picklist to Checkboxes
Okay, this is probably simple but for the life of me, I can't figure out how to do this.
I need to a picklist to display as checkboxes in my visualforce page. I need the box that is checked to save to the picklist value field. Does anyone have any sample code.
Thanks in advance.
Not an easy task to do.
You would have to create all the variable for the various values of the checkboxes, display them on the VF page. Then us the controller or extension to take the value of the checkbox and update the picklist filed which would not be shown anywhere on the page.
To my knowledge you cannot change the field type on the page from picklist to checkbox.
This is the code I found and modified for the controller and page. However I'm throwing a de reference a null object error. Can you see what I'm missing.
Visual force page section
Is ur task done?
I need to implement the same thing.plz help me out.
Here's a decent post:
http://sfdccontributor.blogspot.com.ar/2013/05/display-picklist-in-radio-button-and.html