And on to the next learning experience...
I have a form that used to work until I introduced a database relationship. When I launch the form, I can see with the debugger that the data is being retrieved and stored properly in the form array. For some reason however, when I render the HTML, the data no longer populates. I am suspecting that it has something to do with the fact that I have now have 2 arrays of different names, but I can't seem to get it to load the data anymore. I have a form with the following fields:
1) Record ID (cf_id) - HIDDEN FOR UPDATES WITH SUBMIT
2) Problem Title (problemTitle)
2) Problem Description (problemDescription)
3) Submit Button
Here is the output of my debugger:
I have a form that used to work until I introduced a database relationship. When I launch the form, I can see with the debugger that the data is being retrieved and stored properly in the form array. For some reason however, when I render the HTML, the data no longer populates. I am suspecting that it has something to do with the fact that I have now have 2 arrays of different names, but I can't seem to get it to load the data anymore. I have a form with the following fields:
1) Record ID (cf_id) - HIDDEN FOR UPDATES WITH SUBMIT
2) Problem Title (problemTitle)
2) Problem Description (problemDescription)
3) Submit Button
Here is the output of my debugger:
Array
(
[option] => com_chronoforms5
[chronoform] => ProblemReview
[cf_id] => 52
[f7517f7ac0d58b9e3078b9d6c7d98d45] => 1
[problem] => Array
(
[cf_id] => 52
[problemTitle] => Test problemss
[problemDescription] => <p>This is a test problem to be used in testing.</p>
[fileUpload] =>
)
[user] => Array
(
[email] => blah@blah.com
)
)
Array
(
[16] => Array
(
[DB Read] => Array
(
[Queries] => Array
(
[0] => SELECT `problem`.`cf_id` AS `problem.cf_id`, `problem`.`problemTitle` AS `problem.problemTitle`, `problem`.`problemDescription` AS `problem.problemDescription`, `problem`.`fileUpload` AS `problem.fileUpload`, `user`.`email` AS `user.email` FROM `jos_cf_Problem` AS `problem` LEFT JOIN `jos_users` AS `user` ON problem.user_id = user.id WHERE `problem`.`cf_id` = '52' GROUP BY `problem`.`cf_id`
)
)
)
)