Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When configuring a telephone input with the checkbox "Enhance support for international phone numbers" there is an option to set the initial country to "Auto detect" but this actually does nothing.
To make it work a geoIpLookup
function must be specified in Drupal.webform.intlTelInput.options as per the documentation https://github.com/jackocnr/intl-tel-input#options.
Since no such function is described, this should be documented when configuring the telephone element so that people know the option won't do anything unless they specifically add their own custom geoIP function to drupalSettings.
Comment | File | Size | Author |
---|---|---|---|
#3 | 3069653-3.patch | 694 bytes | jrockowitz |
|
Comments
Comment #2
Rob230 CreditAttribution: Rob230 as a volunteer and at CTI Digital commentedComment #3
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedBecause the autodetect option requires custom JavaScript configuration. I think we should remove this option from the UI and assume any developer implementing this feature can do so using custom JavaScript.
Comment #5
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commented