Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gutenberg - Form block: restrict phone field to numeric data #11459

Open
sophiegyo opened this issue Mar 2, 2019 · 0 comments
Open

Gutenberg - Form block: restrict phone field to numeric data #11459

sophiegyo opened this issue Mar 2, 2019 · 0 comments
Labels
[Feature] Contact Form [Focus] Blocks Issues related to the block editor, aka Gutenberg, and its extensions developed in Jetpack [Pri] Low [Type] Enhancement Changes to an existing feature — removing, adding, or changing parts of it

Comments

@sophiegyo
Copy link

We received a request in #1846407-zen to be able to restrict the phone field in the Form block to accept numeric data only.

I did mention in my reply that this may be partly due to the way country codes are expressed, e.g. +1, +44 rather than 001 or 0044, but thought the request might be worth mentioning here.

Would something like an (optional) drop-down menu to select country code, then a numeric-only field for the number work?

@sophiegyo sophiegyo added [Type] Enhancement Changes to an existing feature — removing, adding, or changing parts of it [Feature] Contact Form [Focus] Blocks Issues related to the block editor, aka Gutenberg, and its extensions developed in Jetpack [Pri] Low labels Mar 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Contact Form [Focus] Blocks Issues related to the block editor, aka Gutenberg, and its extensions developed in Jetpack [Pri] Low [Type] Enhancement Changes to an existing feature — removing, adding, or changing parts of it
Projects
None yet
Development

No branches or pull requests

1 participant