Hi All
I have check box element in form and have written the custom decorator for
this form in that i have written one function as given in the documentation.
public function buildInput()
    {
        $element = $this->getElement();
        $helper  = $element->helper;
        return $element->getView()->$helper(
            $element->getName(),
            $element->getValue(),
            $element->getAttribs(),
            $element->options
        );
    }

Now  when i submit this form and if the error occurs on any element this
checkbox never retain its value,Will anybody suggest me the way,where i am
lagging behind because this happens only for checkboxes,(and if i never use
this custom decorator then it retains value even if error occur but i need
custom decorator).So please help me out
Regards 
Rohit
-- 
View this message in context: 
http://www.nabble.com/values-for-checkbox-and-populate-method-tp18359443p18359443.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to