- πͺπΈSpain Peacog
Thanks @Luke.Leber for the patch. I would like to see this being a configurable option. I think it makes sense to have a setting on the Elements configuration page that is off by default but that can be switched on to enable nationalMode. I've created a patch for 6.1.x that does that.
- Status changed to Closed: won't fix
over 1 year ago 1:45pm 13 April 2023 - πΊπΈUnited States jrockowitz Brooklyn, NY
I think it is getting very challenging to support every configuration setting available for advanced elements.
The options for the international telephone element are easily customized via JavaScript.'
The below JavaScript can be added globally or to an individual form (see attached).
// @see https://github.com/jackocnr/intl-tel-input#options Drupal.webform = Drupal.webform || {}; Drupal.webform.intlTelInput = Drupal.webform.intlTelInput || {}; Drupal.webform.intlTelInput.options = Drupal.webform.intlTelInput.options || {}; Drupal.webform.intlTelInput.options.nationalMode = true;
- Status changed to Needs review
over 1 year ago 3:59pm 13 April 2023 - Status changed to Closed: won't fix
over 1 year ago 4:55pm 13 April 2023 - πΊπΈUnited States luke.leber Pennsylvania
I ran into a hard blocker with the
hiddenInput
option that's needed to preserve backwards compatibility with data collection.I'm fine with maintaining https://www.drupal.org/project/webform_intl_tel_national_mode β for the foreseeable future if this isn't going to be an option in Webform proper.
@Peacog -- feel free to add an issue to https://www.drupal.org/project/webform_intl_tel_national_mode β for turning this on / off -- we can do it with third party settings :)