Open savanrajkotiya opened 3 years ago
Hi there @tehKapa, what would be the expected validation message? Something on the lines of "Must be valid 10 digit" or etc? I'm interested in this issue.
@dangnhon yes, it would be necessary to do a validation in terms of country code and max phone digits
Hi @tehKapa. So I found this https://github.com/jackocnr/intl-tel-input I think you can use this input field and maybe you can check if user input is equal to selectedCountryPlaceholder or not.
@reginz looks fine
hello @tehKapa can I work on this issue?
Before you submit an issue we recommend you drop into our Slack workspace and ask any questions you have or mention any problems you've had getting started with HospitalRun.
Please read this entire template before posting any issue. If you ignore these instructions and post an issue here that does not follow the instructions, your issue might be closed, locked, and assigned the
missing discussion
label.🐛 Bug Report
The validation messages of inputs are not appropriate ex. 'Must be a valid phone number.' but what's a valid phone number pattern.? PFA the Image
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and appropriate validation message should appear so that user will get to know what mistake that they made.
Your Environment