Active
Project:
Webform
Version:
6.3.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
13 Dec 2024 at 14:21 UTC
Updated:
3 Mar 2026 at 15:09 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #4
colanResolved merge conflict. Problem was that we're hacking on the file
modules/webform_toggles/js/webform_toggles.element.jsthat's no longer there due to #3489932: Move deprecated modules into webform_deprecated. I simply removed the file. If folks are interested in making this change in Webform Deprecated, they can dig it out of the commit.Comment #5
colanHere's a Composer-friendly patch that assumes #3452986-18: Update jquery.intl-tel-input to v23.0.10 and add option for i18n has already been applied.
Comment #6
jrockowitz commentedPeople should weigh-in if this enhancement is useful.
Comment #7
luke.leberI think the concept is useful, but sometimes the customization can't be hard-coded as data attributes, but rather rely on runtime information.
One example is for the international telephone element. See https://git.drupalcode.org/project/webform_intl_tel_national_mode/-/blob... for a somewhat heavy handed fix for how most UX problems were resolved.
Were there a client side event to tap into, it'd make things a lot easier to tweak. I would LOVE to take a holistic pass on the telephone input given how many quirks there are, and if there was more robust options handling, that'd be even easier.
Comment #8
jrockowitz commentedI would be very open to adding a simple alter options event below all instances of
I am not sure of the right syntax, maybe this could be a later enhancement.
I am leaning toward merging this AS-IS.
Comment #9
liam morlandComment #10
divyansh.gupta commentedWorking on the rebase.
Comment #11
divyansh.gupta commentedRerolled the MR,
Please review!!
Comment #12
jrockowitz commentedRTBC if tests pass
Comment #14
jrockowitz commentedI couldn't merge the MR so I applied the patch without any problems
Comment #18
liam morlandThis has lead to #3567475: Impossible to add custom options to Select2 due to undefined variable.
Comment #19
liam morlandComment #20
liam morlandThis lead to #3567475: Impossible to add custom options to Select2 due to undefined variable which has now been fixed. This should have tests.