Skip to content

Capture phone numbers from Jetpack form phone fields that use the country selector - #112

Open
tellyworth wants to merge 1 commit into
trunkfrom
fix/jetpack-form-phone-country-selector
Open

tellyworth wants to merge 1 commit into
trunkfrom
fix/jetpack-form-phone-country-selector

Conversation

@tellyworth

Copy link
Copy Markdown
Contributor

What

Jetpack Forms gives a phone field the type phone when its country selector is on, and telephone otherwise. The form capture only matched telephone, so a submission from a form with the country selector created the contact without its phone number. It now accepts both types.

Found while looking into this support thread; it is not the cause of that report.

Testing

New case in Jetpack_Form_Capture_Values_Test for a phone field. That test class passes locally (6 tests); the full suite was not run. Not re-checked with a real Jetpack form submission after the change.

🤖 Generated with Claude Code

…ntry selector

Jetpack Forms gives a phone field the type 'phone' when its country selector
is on, and 'telephone' otherwise. The form capture only matched 'telephone',
so the contact was created without its phone number.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant