9

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!

top 3 comments
sorted by: hot top controversial new old
[-] Pyroglyph@lemmy.world 2 points 1 year ago* (last edited 1 year ago)

tl;dr - This is (mostly) intended functionality by the browser. Though the devs could have fixed it, it's way easier and faster to just leave it like that.

The HTML input element allows you to set the type of data you expect people to enter, which provides some basic validation. In this case, it's using the type of number, for obvious reasons. This disallows all letters except e, (for scientific notation) and all symbols except a single .. It also causes the number entry keyboard to appear on mobile devices, if supported.

There is no specific phone number data type, so the developers of that site used the more generic number type. The browser can't tell the difference, and so adds the individual up/down buttons as it would with any other standard number input.

[-] electric_nan@lemmy.ml 1 points 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!

[-] Pyroglyph@lemmy.world 2 points 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.

this post was submitted on 18 Jul 2023
9 points (100.0% liked)

Software Gore

4787 readers
4 users here now

Welcome to /c/SoftwareGore!


This is a community where you can poke fun at nasty software. This community is your go-to destination to look at the most cringe-worthy and facepalm-inducing moments of software gone wrong. Whether it's a user interface that defies all logic, a crash that leaves you in disbelief, silly bugs or glitches that make you go crazy, or an error message that feels like it was written by an unpaid intern, this is the place to see them all!

Remember to read the rules before you make a post or comment!


Community Rules - Click to expand


These rules are subject to change at any time with or without prior notice. (last updated: 7th December 2023 - Introduction of Rule 11 with one sub-rule prohibiting posting of AI content)


  1. This community is a part of the Lemmy.world instance. You must follow its Code of Conduct (https://mastodon.world/about).
  2. Please keep all discussions in English. This makes communication and moderation much easier.
  3. Only post content that's appropriate to this community. Inappropriate posts will be removed.
  4. NSFW content of any kind is not allowed in this community.
  5. Do not create duplicate posts or comments. Such duplicated content will be removed. This also includes spamming.
  6. Do not repost media that has already been posted in the last 30 days. Such reposts will be deleted. Non-original content and reposts from external websites are allowed.
  7. Absolutely no discussion regarding politics are allowed. There are plenty of other places to voice your opinions, but fights regarding your political opinion is the last thing needed in this community.
  8. Keep all discussions civil and lighthearted.
    • Do not promote harmful activities.
    • Don't be a bigot.
    • Hate speech, harassment or discrimination based on one's race, ethnicity, gender, sexuality, religion, beliefs or any other identity is strictly disallowed. Everyone is welcome and encouraged to discuss in this community.
  9. The moderators retain the right to remove any post or comment and ban users/bots that do not necessarily violate these rules if deemed necessary.
  10. At last, use common sense. If you think you shouldn't say something to a person in real life, then don't say it here.
  11. Community specific rules:
    • Posts that contain any AI-related content as the main focus (for example: AI “hallucinations”, repeated words or phrases, different than expected responses, etc.) will be removed. (polled)


You should also check out these awesome communities!


founded 1 year ago
MODERATORS