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

Confirm Password return object I just want string. #2255

Closed
kyawswarthwin opened this issue May 20, 2020 · 3 comments · Fixed by #2271
Closed

Confirm Password return object I just want string. #2255

kyawswarthwin opened this issue May 20, 2020 · 3 comments · Fixed by #2271

Comments

@kyawswarthwin
Copy link

What I want.
password: "123456"

What I got.
password: {
"password": "123456",
"passwordConfirm": "123456"
}

@LarryZhou
Copy link

This is what I tried to accomplish by getting rid of fieldGroup (and nesting object). However, the custom validator function appears to require a nesting setup.

See my question: #2253

@aitboudad
Copy link
Member

That's a feature (done in #1980) which was planned for v6, but I'll try to make it available in v5.7 instead

@aitboudad
Copy link
Member

This issue has been fixed and released as part of v5.7 release. Check our demo example https://formly.dev/examples/validation/matching-two-fields

Please let us know, in case you are still encountering a similar issue/problem.
Thank you!

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

Successfully merging a pull request may close this issue.

3 participants