Hello,
I'm a newbie to the silverstripe cms, but must say: What a great framework is this!!
I'm trying to add a checkboxgroup in the cms with some text as the keys, but I only get id's as the value.
In the documentation is told that you can have text as a key instead of an id in a checkboxgroup:
http://doc.silverstripe.com/doku.php?id=checkboxsetfield&s=checkboxsetfield
I've tried it with:
$fields->addFieldToTab('Root.Content.Main',new CheckboxSetField('Opleiding','Opleiding',array('VMBO','HAVO','VWO','MBO','HBO','WO'),array('VMBO','HAVO','VWO','MBO','HBO','WO')));
but still there are id's as keys.
Can somebody help me out?
Thanks.