Formatondisplay and formatasuoutype is not working
I have imported the utilsScript and marked formatOnDisplay as true when on wdit screen the flag is not getting updated based on the region for canada even with valid phone number. Tried saving number without formatting and country code and with country codes as well
Can someone pleas help me here
If you can find the minimal set of code that reproduces the problem and put that in a CodePen, then I'd be happy to take a look. Here is an example pen with the plugin up and running - feel free to fork this if it helps.
I am not able to figure out because it works on any key press while editing the phone number
Is there any config setting due to which formatOnDisplay is not working?
Is there any config setting due to which formatOnDisplay is not working?
I don't think so.
As I say, I'll need a codepen in order to help you further.
Will this work ?
How are you setting the number? Please provide clear steps to reproduce the issue.
Is the number in the input before you initialise the plugin? Or are you setting it afterwards somehow? (if so, how exactly? show me the line of code)
Closing due to inactivity and inability to provide clear steps to reproduce the issue.