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

validation on steps #226

Open
spadesM opened this issue Oct 13, 2020 · 0 comments
Open

validation on steps #226

spadesM opened this issue Oct 13, 2020 · 0 comments

Comments

@spadesM
Copy link

spadesM commented Oct 13, 2020

Hi

I have issue about validation on steps. How can I check validation on steps with next buttons?
When I was doing like below, I am getting required errors but when I fill one field it's not showing any mandatory messages.

next(cnt: number) {
this.form.controls.supplierId.markAsDirty(); this.form.controls.asnNo.markAsDirty(); this.form.controls.expectedDate.markAsDirty(); this.form.controls.documentNo.markAsDirty(); this.form.controls.carrierName.markAsDirty(); this.form.controls.carrierTrackNr.markAsDirty(); this.form.markAllAsTouched(); this.form.updateValueAndValidity(); return; }

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