Skip to content

Polymorphic sub forms without form controls #302

@avivs100

Description

@avivs100

Hi, I created a form with the help of your library and it is amazing and very clear.
I ran into a small problem that you might be able to help me with because I couldn't find a solution.
The problem is this: There is a form, one of whose controls is polymorphic. The user has to select a type of product from a dropdown and according to the type, an appropriate sub form should be opened.
The sub forms that define form controls work fine, but the sub forms that do not define controls are not working properly (the purpose of such sub forms is only to build the appropriate dto for them by using toFormGroup and fromFormGroup).
Apparently there is a problem with the return value of those subforms (with no controls) because no translation is performed because it actually returns Null.
Are you familiar with the problem? Is there a solution you know about? Or maybe some workaround?
Thank you very much

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions