This post has been de-listed
It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.
Hi,
I am building forms to a UX spec and they have insisted that my angular material <mat-error> and associated input outline validation before doesn't happen until after submit is clicked, rather than as the user leaves the field. Can this be done.
I am building the form in the constructor......
this.form = this.fb.group({
bank_name: ['', [Validators.required, Validators.minLength(3)]],
address: ['', [Validators.required, Validators.minLength(15)]],
account_name: ['', [Validators.required, Validators.minLength(5)]],
account_number: ['', [Validators.required, Validators.pattern('^[0-9]*$'), Validators.minLength(8), Validators.maxLength(8)]],
sort_code: ['', [Validators.required, Validators.pattern('^[0-9]{2}[-][0-9]{2}[-][0-9]{2}$')]],
});
Thanks
Subreddit
Post Details
- Posted
- 4 years ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/Angular2/co...