I need to store an IBAN number and I already have a custom varchar field to which I have also added a pattern to validate the number.
This works, but it would be nicer if I could enter the number and display it in a human readable form.
For example, I currently have to add the number like this, which is hard to read: DE07123412341234123412
It would be much nicer if I could enter the number in packs of 4 and 2.
DE07 1234 1234 1234 1234 12
Perhaps it would be possible to remove the spaces from the input and then validate and save the result.
But how to display the number again with spaces?
Is there also a way to override the pattern error mesaage? For non-technical persons a regex pattern error message is pretty confusing.
This works, but it would be nicer if I could enter the number and display it in a human readable form.
For example, I currently have to add the number like this, which is hard to read: DE07123412341234123412
It would be much nicer if I could enter the number in packs of 4 and 2.
DE07 1234 1234 1234 1234 12
Perhaps it would be possible to remove the spaces from the input and then validate and save the result.
But how to display the number again with spaces?
Is there also a way to override the pattern error mesaage? For non-technical persons a regex pattern error message is pretty confusing.
Comment