TL:DR Is there anyway to check if a string/field contains letters vs just numbers?
Hello everyone. I am working on an app that includes forms for contact information. These include fields like Phone Number, street number, and Zip Code which should only allow numbers, not letters. I used the number entry field which blocks users from entering letter characters on my laptop and I believe on android. But when testing the app on IOS, users can input letters. The good part is that they’re not allowed to submit the form with letters in those fields. The bad part is that it does not give them feedback or indication as to why they can not submit. So I was wondering if there was a way to check if the field contained letters and display a red rich text warning message when letters are present.
PS I tried setting the minimum value to 0 and the maximum to some arbitrary number, but it would not display an error message when text is entered