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

Trigger validation when a nested form changes #3868

Closed
zoltanhalasz opened this issue Feb 14, 2024 · 2 comments
Closed

Trigger validation when a nested form changes #3868

zoltanhalasz opened this issue Feb 14, 2024 · 2 comments
Labels

Comments

@zoltanhalasz
Copy link

Question
I have a formly form that uses a 2 date pickers and a 2 custom types ( FieldType). How can I trigger the validation on the outer form when the value of the custom type (which is a form itself) is changed?

I tried with hooks, onInit within the customtype, on field level, using valueChanges and it doesn't work...

@kenisteward
Copy link
Collaborator

kenisteward commented Feb 14, 2024 via email

@aitboudad
Copy link
Member

Better define validation in the parent control which will trigger validation when one of the field is changed.

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

No branches or pull requests

3 participants