-123, 'element4' => 123456789.50 ); protected function _doInsert() { $form = $this->_getNewForm(); if ($form->validate()) { $data = $form->getValues(); $form->getElement('dump')->setValue(nl2br(var_export($data, true))); } $this->_addFormItem($form); return $this; } protected function _getNewForm() { $form = new Qs_Form($this->_getFormOptions()); $form->addElement('hidden', 'action', array('value' => 'insert')); $this->_bindFormFields($form); return $form; } protected function _bindFormFields(Qs_Form $form) { $_required = false; $form->addElement('static', 'dump', array('label' => 'SUBMITTED VALUES')); $form->addElement( 'numeric', 'element1', array( 'label' => 'defaults', 'required' => $_required, ) ); $form->addElement( 'numeric', 'element2', array( 'label' => 'precision:0', 'required' => $_required, 'precision' => 0 ) ); $form->addElement( 'numeric', 'element3', array( 'label' => 'group:""', 'required' => $_required, 'group' => '' ) ); $form->addElement( 'numeric', 'element4', array( 'label' => 'group:"_"', 'required' => $_required, 'group' => '_' ) ); $form->addElement( 'numeric', 'element5', array( 'label' => 'group:. decimal:,', 'required' => $_required, 'group' => '.', 'decimal' => ',' ) ); $form->addElement( 'numeric', 'element6', array( 'label' => 'non negative', 'required' => $_required, 'negative' => false ) ); } }