Banging my head about this - been struggling for hours feel like this should be easier.
I have a db save in the onSubmitEvent in the ServerValidation success event.
This is what gets saved
You can see this is only a few of the fields.
Notice nothing in the arrays UserData or cbUserData are being saved.
I tried to use custom code to add data to the top array to be saved.
Notice there is email that is populated but its not being saved.
I created the table using the table creator. I renamed the ID although its not embedded in an article.
This is the debug on the form
I have a db save in the onSubmitEvent in the ServerValidation success event.
This is what gets saved
INSERT INTO `jm3tb_chronoengine_chronoforms_datatable_myTable` (`isRequiredForWork`, `yourSearchTopicOrQuestion`, `specificSearchTerms`, `dateRequired`, `typeOfInformationRequired`, `keyPapersAuthorsOrSources`, `user_id`, `uniq_id`, `created`) values ('1', 'fdfgd', '', '30/10/2014', '', '', '373', 'faf96d539d61439d5fe65f423d4c4f01c6b0b910', '2014-10-28 15:00:51');
You can see this is only a few of the fields.
Notice nothing in the arrays UserData or cbUserData are being saved.
I tried to use custom code to add data to the top array to be saved.
Notice there is email that is populated but its not being saved.
I created the table using the table creator. I renamed the ID although its not embedded in an article.
This is the debug on the form
Array
(
[chronoform] => myTable
[event] => submit
[tvout] => ajax
[users] => Array
(
[id] =>
)
[UserData] => Array
(
[name] => My Name
[email] => Matt@myemail.co.uk
)
[cbUserData] => Array
(
[cb_organisationdrop] => Other - please specify below
[cb_organisation] => mycompany
[cb_phone] =>
)
[isRequiredForWork] => 1
[yourSearchTopicOrQuestion] => fdfgd
[specificSearchTerms] =>
[dateRequired] => 30/10/2014
[typeOfInformationRequired] =>
[keyPapersAuthorsOrSources] =>
[submitButton] => Send Request
[email] => Matt@myemail.co.uk
[id] => 14
[ip_address] => 146.66.61.80
)