You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Datetime validation is working with Min and Max range but I want to add another validation which validates the date when no value for datetime is selected so It should show a regular message "Date of birth is required"
That would be great if somebody can suggest something on it. Thanks
The text was updated successfully, but these errors were encountered:
`ngOnInit(): void {
this.setFields();
}
private setFields() {
this.fields = [
{
key: "dateOfBirth",
type: "custom-date",
templateOptions: {
label: "FamilyPay.CreateHolidayClubOrder.EmployeeBirthDate",
type: "date",
minAge: this.model.dateOfBirth ? null : 18,
maxAge: this.model.dateOfBirth ? null : 80,
translate: true,
disabled: !!this.model.dateOfBirth,
required: true,
},
},
];
}
`
Datetime validation is working with Min and Max range but I want to add another validation which validates the date when no value for datetime is selected so It should show a regular message "Date of birth is required"
That would be great if somebody can suggest something on it. Thanks
The text was updated successfully, but these errors were encountered: