Keith, I've been following that series closely. I'm hoping to do this without writing a custom decorator for an element as I'd like the option to omit the the form field this non form element might be related to. For example, if a user were allowed three attachments per node/form, the actual file upload element might be omitted if a user were to edit a node that already had three attachments. In other places I have created a hidden element which is modified using javascript, but since this need keeps coming up I'm interested in finding a way to add a non form field element that doesn't involve me hacking around dummy fields.
James On Mon, Apr 6, 2009 at 10:41 AM, keith Pope <[email protected]>wrote: > You may want to look at Matthews Zend_Form series on his blog, heres the > latest: > > > http://weierophinney.net/matthew/archives/213-From-the-inside-out-How-to-layer-decorators.html > > 2009/4/6 James Stuart <[email protected]>: > > Hi, > > > > Has anyone ever tried to insert a non form field element into Zend Form? > > > > I have a form that includes file uploads and I need to cause the uploaded > > files to be listed inside the form after they have been added, much like > a > > webmail application. I can do that using Javascript by finding the parent > of > > a form field and inserting a new container element to which I can add > text, > > however I would like to be able to do this using Zend Form. > > > > Is there a way to add a <div> or some other element to a form, as one > would > > add a form element, without creating a new Zend Form Element? > > > > Thanks! > > James > > > > > > -- > ---------------------------------------------------------------------- > [MuTe] > ---------------------------------------------------------------------- >
