Hi I'm a newbie to Silverstripe and have limited php knowledge
I've taken over a clients website from a previous developer who had set up a custom userform with a payment facility to accept payment for event registration. This works fine with the default settings but if the client want to add a checkbox of options (e.g. how did you find out about us etc) I get a server error.
The following code I'm assuming refers to the default fields that work.
static $defaultFields = array(
array('Type'=>'Text','Title'=>'Title'),
array('Type'=>'Text','Title'=>'First Name'),
array('Type'=>'Text','Title'=>'Last Name'),
array('Type'=>'Text','Title'=>'Address1'),
array('Type'=>'Text','Title'=>'Address2'),
array('Type'=>'Text','Title'=>'City'),
array('Type'=>'Text','Title'=>'County'),
array('Type'=>'Text','Title'=>'Postcode'),
array('Type'=>'Text','Title'=>'Daytime Telephone'),
array('Type'=>'Text','Title'=>'Mobile Telephone'),
array('Type'=>'Email','Title'=>'Email Address')
);
I'm thinking if I add a Checkbox array to this it would work?
Problem is I don't know the correct syntax to add - any help would be gratefully received.
Thanks