Hi!
Is there a way to set an custom title on the CheckboxSetField items in SS3? eg. I have a Product with an title and a group title and I would like to display both titles in the CheckboxSetField, like "[x] Product title, (Group Title)".
class Deal extends DataObject {
public static $db = array(
'Title' => 'Varchar(255)'
);
public static $has_one = array(
"HomePage" => "HomePage"
);
public static $many_many = array(
"Products" => "Product"
);
public function getCMSFields()
{
return new FieldList(
new TextField("Title", _t("Deal.Title", "Tittel")),
new CheckboxSetField('Products', _t("Deal.MaltProduct", "Produkter"), DataObject::get('Product'))
);
}
}