Topic: reactive formms - mark input as invalid on submit

Karol Suchecki free asked 6 years ago


hi.I use mdbInputDirective on input in form. On blur event when input is invalid then validation is displayed. I want to use same behaviour when I submit form and mark all inputs as touched:   Object.keys(this.beerForm.controls).forEach(field=> {constcontrol=this.beerForm.get(field);control.markAsTouched({ onlySelf:true });});   Unfortunately nothing happen

Karol Suchecki free commented 6 years ago

anybody?


Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Opened

Specification of the issue

  • ForumUser: Free
  • Premium support: No
  • Technology: MDB Angular
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: No
  • Provided link: No
Tags