Needs review
Project:
Webform Phone Number
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
2 Nov 2015 at 15:51 UTC
Updated:
3 Nov 2015 at 08:30 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
idebr commentedAttached patch makes country validation optional for Webform Phone components.
Comment #3
RadioActiv commentedPatch only makes the option of "None" available, it doesn't address the validation or formatting code.
There is an option for "International Phone Number" in the country list, it's made for when the values could be for more than one country, that might give you the functionality you want...
Comment #4
idebr commentedI missed that the country was necessary for saving the webform component data. The attached patch includes saving the input value correctly.
I tried the "International Phone Number" formatter, but it updates the component value with additional formatting, eg. '020-1234567' becomes +20-1234567. My use case does not involve updating the submitted value.