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

Parent Value is Null on Init #447

Open
Arpit1496 opened this issue Mar 23, 2024 · 0 comments
Open

Parent Value is Null on Init #447

Arpit1496 opened this issue Mar 23, 2024 · 0 comments

Comments

@Arpit1496
Copy link

Arpit1496 commented Mar 23, 2024

I want a custom Validator which based on presense of some key in group, affects the "enabled" flag of other keys of the same group.
For that I want to use control.parent value but it is NULL when the form is initialised and validators are run for the first time.

Once some field is clicked or tapped, the parent is initialised for the subsequent vlidator calls.

But I want first time parent to be initialized as well. How can I do that ?

This is my sample:

In the below: if "isNull" flag is true, I want the form to be disabled from init.

image

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