zend-form

Zend_Form: Uppercase in textfield.

I want to create a textfield element in Zend Form which always type in uppercase whether CapsLock is On or Off. Thanks ...

Are Zend Decorators rally helpfull? What problem it solves out except form validation

Hello, I have been using Zend decorators but it seems complex in case of page designs. If my designers want to make changes in any of the form and page they cant do that. It require some complex work if I want to use any third party library (like multi select check box) or a list of option with special effect. Can anybody knows wha...

zend_form: is it bad practice to load a form in init() of controller

I have a form which I need for some actions but not for others. In the actions that need it, I repeat the same code. $form = New BlaBla_Form(); I've seen an example which declared it in init(). This means the form gets initialized even for actions that don't need it. It does make the code cleaner, but is it resource intensive enough ...

Saving Zend Framework forms in a database.

Hi! I am building a form generator/builder for Zend Framework. It is for a client, and because the client wants to build forms without going into code, I need a drag&drop interface. The user has to be able to drag&drop predefined Form elements into a container to create a form. This is the easy part, which I've almost solved myself. The...

ZendFrame work - how to disable a text box

Hi, I am using zend_form in my project. In a form i want to disable a text box. Here is the code: $personal_information = new Zend_Form(array( 'method' => 'post', 'elements' => array( 'first_name' => array('text', array( 'required' => true, 'filters' => array('StringTrim'), 'validators' => array( array('Not...

Zend Multiselect Element is posting only one selected values.

I am creating multiple select element like this and it is showed successfully on form: $element = new Zend_Form_Element_Multiselect('clinics'); $element->setLabel("Clinics"); $element->setAttrib( 'style','width: 240px' ); $element->setMultiOptions( array( '1'=>'clinic1', '2'=>'clinic2' ) ); After rendering above element it shows the f...

How does one apply a class to a Zend Framework decorator on error?

Right now, I have Zend form elements wrapped in list-items. Form is validating or coughing up errors as it should. But I'd like to apply a class to the list-items of offending elements (but only to the list-items offending elements) on failed validation. Example: This field has valid input <li> <input type="text" name="address2" id...

Need Zend_Form element to be set as not required.

I've added a captcha field to my zend form, and want it not to be required as I'm using other methods on the page to check its validity, yet when I click submit, I'm warned about the missing captcha field, how can I stop this? $recaptcha = new My_Service_ReCaptcha('6LfD8L0SAAAAANog3CBouttFvT42SurnwK6u-UOA', '6LfD8L0SAAAAAAMQCSrw...