Hi!
I'm using the MaskedTextBox for IBAN. I got it working like this:
<ejs-maskedtextbox id='iban' #iban='' mask='>LL00 0000 0000 0000 0000 00' [formControlName]="'iban'" name='iban'
[showClearButton]='true'></ejs-maskedtextbox>
The problem is not all IBAN in our system follow this format. Some might have lower case characters or different spaces or no spaces at all.
Since I'm binding this to the iban formControl I'd like to save all IBAN's if edited in the format of the mask.
I tried following FormValidators:
FormValidators.required,
FormValidators.minLength(22),
FormValidators.maxLength(22)
It is only valid if I edit the value - e.g. remove the last number and add it again. It should be valid from the beginning though,
What would be the best approach here?