Re: [symfony-users] Re: subform update when other widget changes

2010-03-08 Thread Abraham Montilla
i found a way using ajax (observe_field)... As the author says, is not the best solution, but really works. this is the link: http://www.symfony-blog.co.uk/2008/04/using-observe_field-to-update-an-input/ thanks for your answers guys. 2010/3/8 Richtermeister > This is somewhat tricky, and I ha

[symfony-users] Re: subform update when other widget changes

2010-03-08 Thread Richtermeister
This is somewhat tricky, and I haven't quite figured out a good way either. Of course you'll need some form of ajax to get new widgets from the server, but you'll also need to tell the main form that you've just added new fields, otherwise it'll complain about unexpected values. For complex field

[symfony-users] Re: subform update when other widget changes

2010-03-08 Thread Tom Ptacnik
You can use ajax. Unfortunately I'm not good at ajax, so I can't help you with the exact code. Try to find more informations about ajax. On 6 bře, 04:37, Abraham wrote: > Hi all, is there a way to update a subform when the selected value in > a sfWidgetFormDoctrineChoice changes? > > I'm using

[symfony-users] Re: subform update when other widget changes

2010-03-07 Thread Abraham Montilla
somebody? 2010/3/5 Abraham > Hi all, is there a way to update a subform when the selected value in > a sfWidgetFormDoctrineChoice changes? > > I'm using javascript onChange, however, i need to create a doctrine > query with the selected value, and is not possible to pass javascript > vars to PHP