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.
Since webform uses the webform-submit class, it seems that hide_submit does not attach itself to Webform elements properly. The JS can be modified to include those classes as well.
Comment | File | Size | Author |
---|---|---|---|
#2 | 2751191-webform.patch | 3.56 KB | Anonymous (not verified) |
Comments
Comment #1
Anonymous (not verified) CreditAttribution: Anonymous commentedvilepickle created an issue. See original summary.
Comment #2
Anonymous (not verified) CreditAttribution: Anonymous commentedComment #3
gregglesIt doesn't seem great to add classes that are specific to another module. I wonder if there's another way to go after this problem.
Comment #4
Anonymous (not verified) CreditAttribution: Anonymous commentedYeah, we've had conflicts with hide_submit being too heavy handed with the better_exposed_filters submit button for auto submit (from ctools) as well. The module seems pretty heavy handed in general and I wish it was a bit more granular on what inputs it replaces as buttons. Also it replaces things in our admin theme which styles the buttons differently.
Comment #5
sumthief CreditAttribution: sumthief as a volunteer and at DrupalJedi commented@vilepickle
Looks strange.
Because I've checked webform (7.x-4.14) + hide_submit (both 7.x-2.4 and 7.x-2.x-dev versions) interaction on clean Drupal installation (7.50) and it works perfect (for all blocking methods).
You can check inlcudes/form.inc for function theme_button:
Please check that your project`s codebase have no overrides of theme_button.
Comment #6
david.hughesShooting in the dark on an older issue but...
#3 Could the selectors not be based on a setting within the module, allowing developers to specify the class names of the buttons?
I'm dealing with this issue affecting my client and considering running this module but with a patch to this effect.