CareLuLu/react-native-web-jsonschema-form

[Dashboard] - Convert phone number with hyphens

Closed this issue · 0 comments

Expected Behavior

If Admin copies and pastes a phone number in a specific format, the system should recognize it and convert it to our own format. For instance, if admin plugs in “571-249- 5751” with hyphens, the system should know to auto-convert that to 571 249 5751 instead of “(571) 24-95”.

Current Behavior

Currently, if you input “571-249- 5751” with hyphens, the system recognizes it as “(571) 24-95”, so user is forced to manually type in the rest.

Steps to Reproduce (for bugs)

Note: The following steps are done in PROD

  1. Go to a Reviews tab of any provider dashboard https://www.carelulu.com/dashboard/563797/reviews/list
  2. Copy paste this number 571-249- 5751
  3. You will see that the system saved (571) 24-95
    image

Context

We should make the system as smooth and easy to navigate as possible. Copying and pasting is what most admins and website users would do instead of typing in a phone number from scratch, so our system should recognize the various formats and convert it into our own.

Your Environment

Using my PC, Chrome version Version 80.0.3987.87 (Official Build) (64-bit)