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
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Need help validating IBAN with reactive forms.

Thread ID:





141586 Dec 19,2018 01:34 PM UTC Dec 24,2018 05:39 AM UTC Angular - EJ 2 1
Tags: MaskedTextbox
Paul Kocher
Asked On December 19, 2018 01:34 PM UTC


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?

Christopher Issac Sunder K [Syncfusion]
Replied On December 24, 2018 05:39 AM UTC

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. 



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon