Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[Form] [Feature] Add a option to override options in embedded forms #6350

Copy link
Copy link
Closed
@marcospassos

Description

@marcospassos
Issue body actions

Several times, I need to do tiny changes in the embedded forms in order to get a better look, but I don't would like to change it permanently. For instance, I have a form that have a embedded address form. In this case, I would like to remove the address label just in this context, because I need this in some others forms.

I think that an option to set options in the embedded forms would be very nice, allowing perform some changes according with the context that it is embedded.

An example how this might look:

$builder->add('address', 'address', array(
    'children' => array(
        'street' => array(
            'label' => false
        ),
        'country' => array(
            'attr' =>  array('class' => 'nice');
        )
    )
);

If you find it useful, I can work on that.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.