zend-form-element Questions
4
Solved
I would like to be able to add a hidden form field using array notation to my form. I can do this with HTML like this:
<input type="hidden" name="contacts[]" value="123" />
<input type="h...
Lateral asked 8/9, 2010 at 23:30
4
Solved
I have a zend form in which I have many elements. I use form on many places. I have an element of file and that is:
$file= new Zend_Form_Element_File('merchantLogo');
$file->setDestination("ap...
Pyelonephritis asked 27/10, 2011 at 7:58
7
Solved
I'm trying to add a plain text node in a zend form - the purpose is to only dispay some static text.
The problem is - im not aware of any such way to do it.
I have used 'description' but that HA...
Gavette asked 4/3, 2010 at 17:4
1
Solved
I want to add multiple school locations in zend-form on click of anchor tag or button.
So that zend form validation can be applied to all dynamically created fields
Please see attached image.I want...
Trammel asked 25/9, 2018 at 4:11
4
I'm trying to add a CSS class to a Zend_Form_Element_Select option, but I just can't find a way to do it.
The desired output would be something like this:
<select name="hey" id="hey">
<...
Turbinal asked 7/2, 2010 at 18:3
1
Solved
Currently, I have article and tag tables. I am trying to auto populate the "Tag" form element as a select box on the article form. What is the best way to go about setting the Value Options of the ...
Tunicate asked 16/12, 2015 at 19:56
2
Solved
Is it possible to disable individual options in a Zend_Form_Element_Radio? That is, I'd like to add disabled="disabled" to certain input tags.
Does the Zend Framework include this functionality? O...
Methodism asked 8/2, 2010 at 12:43
3
Solved
How to edit the button content of a Button element (of a ZF2 form)?
I can set a label, but i would like to insert some html code inside it.
$this->add(array(
'type' => 'Button',
'name' =&...
Ilowell asked 14/2, 2014 at 10:32
6
Solved
I would like to add a simple check box to my form:
$element = new Zend_Form_Element_Checkbox('dont');
$element->setDescription('Check this box if you don\'t want to do this action.');
$form->...
Brag asked 22/12, 2009 at 0:14
2
Solved
I am brand new to Zend and I've been given a project to make adjustments on. I'd like to add html to the labels for my form elements but I can't seem to get it right.
Here's what I have:
$this-&g...
Lipcombe asked 7/12, 2013 at 23:39
3
Solved
With the newly released version of Zend Framework 2, two new form elements were added; DateSelect and MonthSelect. I want to use the former, which adds three selects; day, month and year. However, ...
Cigarette asked 3/2, 2013 at 1:36
2
Solved
I am trying to set my own custom error message onto my Captcha but for some reason it is echoing twice.
Here is my captcha code:
$captcha = new Zend_Form_Element_Captcha(
'captcha', // This is t...
Corncrib asked 22/2, 2011 at 9:13
4
Solved
If I have a form element that has multiple validators attached to it (3 in this example), how would I use addErrorMessage to create custom error messages when each unique validator fails. Is there ...
Ssm asked 2/10, 2010 at 7:44
4
Solved
I want to force the Zend form into Twitter Bootstrap style. I currently iterate through the form fields and write the form info into my bootstrap div construction.
I saw in Zend Framework 1(!) tha...
Closed asked 18/12, 2012 at 11:19
3
Solved
I just can't figure it out how to set custom validator messages in Zend_Form object. Here is an example code.
$this->addElement('password', 'password', array(
'label' => 'Password',
'decor...
Sharasharai asked 1/3, 2012 at 14:0
3
Solved
I'm using captcha in my zend_form.
$captcha_element = new Zend_Form_Element_Captcha(
'captcha',
array('label' => 'Write the chars to the field',
'captcha' => array(
'captcha' => 'Imag...
Haply asked 27/2, 2011 at 6:7
7
Solved
I am using this ViewScript for my standard form elements:
<div class="field" id="field_<?php echo $this->element->getId(); ?>">
<?php if (0 < strlen($this->element->...
Gantz asked 26/1, 2010 at 23:19
4
Solved
I am using zend_form (part of Zend Framwork) to create a form and found when I add a set of checkboxes using Zend_Form's multicheckbox element (Zend_Form_Element_MultiCheckbox) the code that is out...
Septillion asked 3/6, 2011 at 15:48
3
Solved
I needed to show some preexisting data from a table and but needed to disable them to prevent user from editing them. So i disabled them
$form -> getElement("elementname") -> setAttrib("disa...
Dot asked 24/10, 2011 at 12:24
4
Solved
I have two fields in my Zend Form, and i want to apply the validation rule that ensures the user enters either one of the these two fields.
$companyname = new Zend_Form_Element_Text('companyname'...
Dispensable asked 6/3, 2010 at 18:42
2
Solved
I have created one user_form class that extends zend form, it has 4 elements username, password, hash for csrf and at last submit button.
Creating object of user_form renders all those four elemen...
Queeniequeenly asked 22/2, 2012 at 14:25
5
Solved
I have the following code to generate an input field for user's email address
$email = new Zend_Form_Element_Text('email');
$email->setLabel('Email:')
->addFilters(array('StringTrim', 'St...
Display asked 17/12, 2010 at 10:47
2
Solved
For the purposes of styling I have the need to put an opening <div> at the beginning of one element, and a closing </div> tag at the end of another. Looking over the docs for HtmlDecora...
Natividad asked 3/10, 2010 at 1:29
1
© 2022 - 2024 — McMap. All rights reserved.