Questions tagged [zend-form-fieldset]
20 questions
6
votes
0 answers
How to make a Field injected multiple times to the Form unique in ZF2?
I have a pretty complex form with several nested Fieldsets and Collections. Some parts of the form are constant, other parts are variable:
BasicSettings
EndpointBasicSource (constant part)
EndpointBasicTarget (constant…

automatix
- 14,018
- 26
- 105
- 230
1
vote
1 answer
zf add inputfilter for a new fieldset element in the form class
In zend framework, how do I add an inputfilter for a new form element in a fieldset with the code in the form? In the following case, I've defined a set of common form elements and an inputfilter for those elements in a fieldset class, and add the…

jcropp
- 1,236
- 2
- 10
- 29
1
vote
3 answers
zend framework 2/3 collection set custom attributes
Judging by these questions:
Zend framework 2 loop through elements of element collection
How to pass an argument to a Zend Form Collection instance & How to set custom Fieldset labels in ZF2?
I suppose there isn't a good way to customize the…

Gwen Hufschmid
- 197
- 1
- 12
1
vote
2 answers
ZF2/Doctrine2 - Fieldsets not validated, data is always valid
I've set up a structure using Abstract classes for Forms, Fieldsets and InputFilters. Forms and Fieldsets have Factories while InputFilters are created and set on the Fieldsets by the FieldsetFactory (uses the MutableCreationOptionsInterface to pass…

rkeet
- 3,406
- 2
- 23
- 49
1
vote
2 answers
zf2/zf3 Hydrate Multiple Fieldsets with Objects
Issue: multiple fieldsets in form are not populated/hydrated when using $form->bind($object). How do you populate 2 different fieldsets in a form vai 2 different entity objects?
I have 2 fieldsets: FieldsetA, FieldsetB
A form RegisterFrom calls…

JI-Web
- 481
- 6
- 27
1
vote
0 answers
fieldset with multiple elements for recurrent code in forms using ZF2 and Doctrine2
I am new to ZF2 and Doctrine2.
I am wondering, can I use Fieldsets for simillar elements repeating in Forms. There are might be several simillar elements in the same form, and there are many simillar forms.
These elements are mapped to regular…

vlr
- 780
- 4
- 16
- 33
0
votes
1 answer
Laminas / Zf3 - getting parameters from Fieldset but it return null values
I was following the instructions of @crash and I get the value of my parameter passed in my fieldset. But sometimes it returns a null value. Here are my complete code
My RapportEffetForm :

Samuel N.
- 13
- 5
0
votes
1 answer
Laminas / Zf3 - Accessing form parameters from Fieldset
I'm facing to a problem in my Laminas project.
In my controller I called my form with parameters. My form contains a add function for fieldset and I would like to read the parameters in my fieldset. How Can I do that ?
Here is the function in the my…

Samuel N.
- 13
- 5
0
votes
0 answers
How can I use one form fieldset in nested collection?
I am creating page to insert data like a book. Where I'm using zend form fieldset and collection. Fieldset have only two fields heading field and content field. Heading and sub-heading have same content(fields).
Ex:
1: Heading Content
1.1: Sub…

Vaishnavesh
- 154
- 1
- 2
- 13
0
votes
2 answers
Zend 2 Annotations ComposedObject doesn't adopt fieldset attributes
I'm trying to create a zend form that references separate fieldsets entirely using annotations. I'm doing this using the ComposedObject annotation. But no annotations (like \type or \attributes) inside the fieldset classes seem to be…

HelloWorld
- 418
- 3
- 15
0
votes
2 answers
How to apply InputFilter validators to fieldset elements in ZF3
I had a form that had two fields. An InputFilter with validators was applied to it. It was working fine. Then I moved the fields to a fieldset and added the fieldset to the form. Now the assignment validators to the fields is not present. The…

trzczy
- 1,325
- 2
- 18
- 43
0
votes
1 answer
zend framework 3 async validation and fieldsets (array format incompatibility)
I have a zend form submitted by ajax:
$.ajax({
data:{'async':$('#form').serializeArray()},
type:"POST",
async: true,
success: function(data) {
$("#container").html(data);
},
failure:…

Gwen Hufschmid
- 197
- 1
- 12
0
votes
1 answer
How to inherit getInputFilterSpecification method for nested fieldsets in ZF3
I am developing input filters in the fieldset classes for a ZF3 module using a class-table inheritance pattern. The ZF3 documentation says that the fieldset class must implement Zend\InputFilter\InputFilterProviderInterface, which defines a…

jcropp
- 1,236
- 2
- 10
- 29
0
votes
1 answer
ZF2 nested data validation
I'm trying make to work my validation. I have data posted to controller in the format like this:
[
'property' => 'value',
'nested_property' => [
'property' => 'value',
// ...
]
]
I have divided fields/filters and form…

pandomic
- 607
- 1
- 6
- 17
0
votes
1 answer
How to get the selected option of a radion button element in Zend Framework 2?
In a Fieldset I have an Element\Radio foo and Element\Text bar.
public function init()
{
$this->add(
[
'type' => 'radio',
'name' => 'foo',
'options' => [
'label' => _('foo'),
…

automatix
- 14,018
- 26
- 105
- 230