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 interaction I would look into ajax frameworks such as ExtJs, which should play rather nicely with symfony (request json data, etc.). However, ExtJs comes with its own form system on board, so using symfony forms is rather redundant in this case.. Tricky subject. Would like to hear more on this as well. Daniel On Mar 7, 3:52 pm, Abraham Montilla <amontil...@gmail.com> wrote: > somebody? > > 2010/3/5 Abraham <amontil...@gmail.com> > > > 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. > > > Any ideas to overcome this? Thanks. > > -- > Have a nice day. > Abraham Montilla. -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en