How to check if input is in the corect format?

I have textfield that takes polish IBAN. How can I check formet of given input?
image

You can use property called “Maska” found in textfield properties “Jakość danych”.
This field accepts a regular expression (regex). In this situation, we need to create regex that allows to insert 2 letters and 26 digits.
Example [a-zA-Z]{2}[0-9]{26}
We also need to set the validation message for the mask. The content of the validation is entered in the field called “Komunikat błędu dopasowania do maski”
image

Result on form:

  • proper IBAN
    image

  • invalid IBAN
    image

1 Like

If you want to learn more about regex or test your solution I recommend this site: https://regex101.com/

1 Like