I have the following form setup:
this.form = new FormGroup({
...
year: new FormControl("", validateDateMethod(year, month, day)),
month: new FormControl("", validateDateMethod(year, month, day)),
day: new FormControl("", validateDateMethod(year, month, day))
});
I want to create a custom validator to validate the date based on the 3 fields.
Is it possible to create a validator based on multiple form values?
Normal customs validators just take in the current control and any parameter values.
Thanks