View Full Version : Repeatable form's render("el")/form as template

28 Jun 2007, 7:20 AM
I've some form need to be rendered in a div several times(content of div can be replaced),but render("el") works only first time but after that target div get only last added form's button and not rest fields.
Why render() behave this way?Is there something special about reinvoke or it's form issue?


28 Jun 2007, 7:34 AM
This isn't a bug. Calling Form.render checks all the fields to see if they have been rendered. If so, it doesn't try to re-render. You could try and reset the rendered flag on the Field objects, but you'll have to dig into the source to understand the implications of doing that - you could end up with duplicate DOM elements by re-rendering.