Automattic / Automattic/jetpack

Forms: add country code dropdown select option to phone number field

Open
#25,021 1 comment 0 reactions 0 assignees View on GitHub
[Block] Form [Feature] Forms [Pri] Low Enhancement New Feature Triaged
Dominant language
PHP
Stars
1.8k
Forks
898
Avg merge
1d 18h
Merged PRs (30d)
774

Description

### What

I would like the form block to have the country code dropdown selector for the phone number field.

### Why

A user requested this.
Many users who fill in their phone numbers in the contact form do not add their country code.
For websites that are international, this would be an issue as the site owner is left guessing the country code.

### How

It could look something like this-
![d69f1200-a3e8-11e9-9edd-b65edba288cb](https://user-images.githubusercontent.com/40609190/152298244-413b0c7c-2e89-4a0f-a96f-c45558f350e7.png)

Contributor guide

Open the contributing guide

Research direction

Locate the form block and its phone-number field entry point; the issue names no file or test, so first map where field options and validation are handled. Use the linked screenshot to define the selector's intended presentation, and confirm done means international users can choose a country code in the contact form.

Written by the indexing model from the issue text.

Assessment

Tech stack
php, wordpress
Domain
frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.