The phone number field on the Verizon website has increment/decrement by 1 buttons, so you can select your phone number the long way, I guess!

  • electric_nan@lemmy.mlOP
    link
    fedilink
    arrow-up
    5
    ·
    1 year ago

    Thanks for the info. I am rather pointedly not a programmer, but I’ve entered my phone number into a lot of web forms, and never seen one like this!

    • Pyro@lemmy.world
      link
      fedilink
      arrow-up
      6
      ·
      1 year ago

      It’s possible to remove by using a more generic input type of text and adding in validation manually to limit entry to only digits, but it seems like a reasonable shortcut to take.

      Also, I just found out that there is in fact an input type called tel for phone numbers but it doesn’t include any validation (apparently because of how varied the formatting of phone numbers can be throughout the world). So it only does the numeric keyboard on mobile devices. This, plus some validation, would have been the best choice I think.