Hi,
Getting this error when trying to use Listbox field with multiple selections.
[User Error] Uncaught InvalidArgumentException: No array values allowed with multiple=false
Tried using setMultiple(True) which doesn't seem to work. Hacking ListboxField.php and changing protected $multiple = false; to protected $multiple = true; fixes the issues but isn't a great solution.
This is my code:
$thelistboxfield = new ListBoxField("VehicleOptionalExtras", "Optional Extras", $this->getVehicleOptionalExtras(),unserialize(Session::get('Session_VehicleOptionalExtras')));
$thelistboxfield->setSize(10);
$thelistboxfield->setMultiple(true);
What am I missing?
Thanks
Regards
Scott