Hello there! Yes, you certainly can do what you want in Cake... but it requires the use of AJAX. It took me many hours to get this working in my application and a little frustration. So don't give up.
There are many posts on this group on this topic. Distilling all that has been written, for my project it boiled down to these two articles: 1) http://www.croyantdebridiers.com/?p=52 This article has a demo link that works and kept me focused that I could do it too. I could not get the code to work for my adaptation. (Instead of country->region I was working to do distributor->dealer. Same difference, just different tables...) 2) http://www.endyourif.com/ajax-select-box-in-cakephp/#codesyntax2 This code worked for me, but you must read the text of the article VERY carefully. The paragraph that begins "Next up..." had the key with how CakePHP converts a field name. I was having trouble retrieving the data from the secondary table until I finally understood what I had been reading a little past midnight. I hope some of this helps. Just let me know if I can answer any questions. I'm new to CakePHP but am willing to do what I can to be of assistance. On Aug 17, 4:21 pm, albe <[email protected]> wrote: > Hello everybody! > I have to realize a form with two drop-down lists related. > Let me explain: the first d.d.l. takes its data directly from the > database and the data on the second d.d.l. change depending on the > choice that the user performs on the first d.d.l. > I'd like to do this without make any loading after the first choice > (without pressing any button... when the user chooses something from > the first d.d.l the contents of the second changes "automagically"). > Is it possible in cake? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
