Hi
The data reads all appear to work well but I am having trouble saving the form data.
To troubleshoot this I have simplified the form to display just the first asset returned, and set the second data read to return only one record.
The fields on the from display data correctly, and asset_id is in the array before I hit the submit button:
[var] => Array
(
[asset] => Array
(
[dropcrate_id] => Spheros1
[user_id] => 0
[created] => 2018-08-17 17:11:30
[asset_owner] => Cleeve
[type_of_resource] => Spheros
[description] => A dropcrate of 12 Spheros
[state] => 1
[aid] => 0
[asset_id] => 69
)
[booking] => Array
(
[id] => 60
[user_id] => 225
[created] => 2018-08-17 17:11:30
[request_delivery] =>
[location] =>
[aid] => 0
[asset_id] => 69
)
)
When I click on submit, asset_id is in the form data, but not in the save data array:
Array
(
[option] => com_chronoforms6
[cont] => manager
[chronoform] => new-booking-v4
[event] => submit
[asset_id] => 69
[description] => A dropcrate of 12 Spheros
[Location_location] =>
[start_date] => 2018-08-20
[end_date] => 2018-08-22
[request_delivery] =>
[button78] =>
)
Array
(
[validate_fields2] => Array
(
[log] => Automatic validation enabled.
[var] => 1
)
[save_data12] => Array
(
[data] => Array
(
[created] => 2018-08-20 08:49:07
[user_id] => 225
[description] => A dropcrate of 12 Spheros
[location] =>
[start_date] => 2018-08-20
[end_date] => 2018-08-22
[dropcrate_id] =>
[asset_id] =>
[request_delivery] =>
[previous_location] =>
[available_from] =>
[dropbox_id] =>
)
[_success] => Data saved successfully
[log] => Array
(
[0] => INSERT INTO `k5jm3_tblbookings` (`created`, `user_id`, `location`, `start_date`, `end_date`, `asset_id`, `request_delivery`) values ('2018-08-20 08:49:07', '225', '', '2018-08-20', '2018-08-22', '', '');
)
[var] => Array
(
[created] => 2018-08-20 08:49:07
[user_id] => 225
[location] =>
[start_date] => 2018-08-20
[end_date] => 2018-08-22
[asset_id] =>
[request_delivery] =>
[id] => 129
)
)
)