You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Inside a form I am loading a collectiontype=>'form' and inside this collectionForm, I am loading another dynamic childForm in order to bind a json field of the child model
//collection type=>'form'
public function buildForm()
{
$this->add($name, 'collection', [
'type' => 'form',
'data' => $values, //Collection,
'class' => 'DynamicProjectFieldForm',
]);
}
The result is Awesome All my childModel fields are created and binded like a charm. Except one major glitch. All The Checkboxes have wrong id and the labels can't trigger the inputs to change
As you can see on the following code snippet, the id didn't inherit the depth of the field like the name attribute
Hello @kristijanhusak ,
I am facing an issue with some checkboxes.
Details
Inside a form I am loading a collection
type=>'form'
and inside this collectionForm, I am loading another dynamic childForm in order to bind a json field of the child model//collection
type=>'form'
//inside DynamicProjectFieldForm
The Issue
The result is Awesome All my childModel fields are created and binded like a charm. Except one major glitch. All The Checkboxes have wrong id and the labels can't trigger the inputs to change
As you can see on the following code snippet, the id didn't inherit the depth of the field like the name attribute
Also as I found on CheckableType, the id is given on its initialization but I wasn't able to find where the field is processed, as it gains depth
The text was updated successfully, but these errors were encountered: