Hi, What do you mean " many ids with productid produces validation error "? It is left upto the coder to set a unique id for each element? What are you trying to do, may be it wil shed more light?
Also, if im not mistaken both the examples you refer to are the same? are you trying to dosomthing like this: .. id="producid_11" .. ? Thanks Dan 2009/12/18 Mike A <[email protected]> > Apologies - my previous post did not format correctly, so I repeat. > > When constructing a form element I use this... > > $this->addElement('hidden', 'productId', array( > 'decorators' => array(array('ViewHelper'), > array('HtmlTag', array('tag' => > 'p')), > ), > )); > > which formats as html (precisely) this way... > > <p> > <input type="hidden" name="productId" value="11" id="productId" /></p> > > > There are two problems with this. First, many input ids with "productId" > produces a validation > error. Second, mark-up format is wrong. What must I do to produce this > (with value added to > id)... > > <p> > <input type="hidden" name="productId" value="11" id="productId" /> > </p> > > TIA... > > Mike >
