Validation of empty phone field (mandatory phone input * )
Closed this issue · 1 comments
Cooluck commented
Steps to reproduce
- Open the demo https://intl-tel-input.com/examples/validation-practical.html or https://intl-tel-input.com/examples/validation.html
- Don't enter any digits in input
- Click “validate”
Expected behaviour
The available "flag/option" for mandatory field.
* in the end of gray phone example / suggest
Red border around input similar for “Too short” or any other error.
Error that user should enter the phone number if there is some flag of mandatory field and form is sent by external button.
Actual behaviour
Nothing happens. No errors in console, no message for user or change in input look.
Initialisation options
https://intl-tel-input.com/examples/validation.html
https://intl-tel-input.com/examples/validation-practical.html
jackocnr commented
Thanks for raising this. I've tweaked it to show "Required" in this case. If you clear your cache and refresh, you should see the new version.