Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
rslaton1 opened this issue Oct 16, 2017 · 0 comments
Open

Comments

@rslaton1
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant