-- Marcus Bointon <[EMAIL PROTECTED]> wrote (on Thursday, 17 April 2008, 04:15 PM +0100): > If I build a form with Zend_Form, then need to add to it dynamically > with ajax requests, how can Zend_Form help render the new elements > without rendering a whole form? If I add something in the middle of a > group that was originally created by Zend_Form, can I get it to match > generated ids and field names? I guess I'd need to keep an instance of > the original form around (in the session?) in order to do that, > especially if it's going to happen repeatedly for a single form. > > How else might I do this?
Sub forms. Your Ajax calls could return sub forms, and then you simply need to keep track of the subforms and their names in your session so you can evaluate the full form when done. -- Matthew Weier O'Phinney Software Architect | [EMAIL PROTECTED] Zend - The PHP Company | http://www.zend.com/
