mardi 14 avril 2015

Symfony2 - Reconstructing dynamic form on validation failure

Symfomaniacs! :)


I have a pretty complex form formed by forms embedded on other forms, embedded on other forms and so on 4 layers deep. It all works great using prototypes and a bit of javaScript (variation from the examples in the cookbook) , yet I have a big problem:


When I submit the form, and it fails validation, it reloads the page, and it only renders the first (outer) layer form. Is there a simple (or any other) way to reconstruct everything to the state before submit? Some directions would be really appreciated.


Thanks for your attention.


Aucun commentaire:

Enregistrer un commentaire