We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Need help validating IBAN with reactive forms.


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'

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:


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?

1 Reply

CI Christopher Issac Sunder K Syncfusion Team December 24, 2018 12:39 AM

Hi Paul, 

Thank you for contacting Syncfusion support. 

As per the reported scenario, we have prepared the sample for React Form Validation in MaskedTextBox component, please find the sample below. 

Please let us know if you need any further assistance. 


Live Chat Icon For mobile
Up arrow icon