Skip to content

[Form] Make dynamic modification of children possible *after* other children have been bound #3767

@webmozart

Description

@webmozart

It should be possible to write an event listener that adds or removes children depending on the normalized/application data of other children.

Example:

The form allows to select a country. Only if a country is selected that has provinces/states, the drop-down for the provinces/states should be added to the form and processed by it.

The current problem here is that after binding the country field (in order to retrieve the states from the reverse-transformed Country object), fields added by the BIND_NORM_DATA transformer won't be bound anymore. Some kind of loop is needed that binds dynamically added children as long as they are added and only then proceeds with the binding process.

See #3764 and #3514.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions