Hi, I've been able to successfully embed forms, however, I have some cases in which I have what is essentially a "conditional" embedded form. I only need the embedded sub-form if the user selects a particular option.
Does anyone have solutions to this? The one that comes to mind would be: 1) Using inheritance - create two versions of the form - one with the embedded form, and one without. 2) Before binding, decide which subclass to instantiate when you instantiate the form to handle the request. The one thing I don't really like about this though is the logic ends up being in the action, rather than in the form itself. Has anyone else solved this kind of problem? Thanks Steve --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---