What I do is show/hide divs containing the form elements using javascript (as dardo said above, look at jquery if you're not familiar with js frameworks).
Then you can keep all of the form elements in the single view without having to load via ajax, etc. You may need to do some checks in the model to save only required data (as all form fields may be submitted, depending on the browser). Hope that helps. Adam On Jun 7, 6:02 pm, dandreta <[EMAIL PROTECTED]> wrote: > Hi, > > I am doing searchs in my cake application. I have a select with > options and a text field. I want that if in this select is chosen > option 1 or option 2, the text field is kept to introduce the text to > search, but if the selected option is 3, I want that the text field is > replaced by another new select with 2 options. > > Has anyone made something similar? How can I do that? > > Thanks and regards. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
