Skip to content

FormlyFieldController $scope.model not updating after multiple submits #114

Open
@rslaton1

Description

@rslaton1

We have some validation that occurs on the backend after form submit. When this validation fails, we return an error to the front end and let the user correct whatever issues there are and resubmit the form. This is primarily address info that uses multiple fields so doing a-sync validation field by field won't work.

The problem:
After changing values in the form and clicking submit the initial incorrect values are being sent up again. When I look at the contents of the form on submit, I see that all value fields on the form object reflect the updated values (modelValue, lastCommittedViewValue, and rawModelValue). However, when calling .value() on the individual fields, I'm instead getting the old initial values. Is there some way to get the fields model to be consistent with the other model values I'm seeing?

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