I tried what you said with unbinding then bind as hasMany but all I get is the skills they selected. I have my $list = find list which returns all the skills then my data find has the selected skills. But cant get the selected skills to be pre-checked and cant get the full list to appear although I can get a full empty list.
I am going with the idea of using the $list as a foreach in the view and create form checkboxes for each of the list items and add my additional field that way but just not having any luck. Has anyone added an additional field to what normally would have been all checkboxes? Label, Checkbox, Additional field Label, additional field Label, Checkbox, Additional field Label, additional field And so on is the goal Thanks, Dave -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of John Andersen Sent: December-16-09 6:49 AM To: CakePHP Subject: Re: HABTM Additional Field / Checkbox As far as I remember, then you have to use not the HABTM relationship when retrieving the data, but the hasMany relationship to the model for your HABTM table. Thus you should make a find that includes (contain) the model for your HABTM table. Hope this helps you on the way, John On Dec 16, 3:47 am, "Dave" <[email protected]> wrote: > I have my HABTM table and was thinking of adding an additional field > to the table for "years" to go with the selectable options. > > i have in the form: > > <?php echo $form->input('Skills', array('multiple'=>'checkbox','label' > => 'Select your Skills', 'div' => 'options_select'));?> > > If I added my years field added to the HABTM how would I get the input > field for each of the checkbox items? Any ideas? > > Thanks > > Dave Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group cake-php+at http://groups.google.com/group/cake-php?hl=en No virus found in this incoming message. Checked by AVG - www.avg.com Version: 9.0.716 / Virus Database: 270.14.102/2556 - Release Date: 12/15/09 04:22:00 Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
