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.
How can I get this hide submit module to work with the custom module I wrote? I have a form and I want hide submit to hide or disable the module
Comments
Comment #1
gregglesCan you clarify what your custom module is trying to do and how it's not integrating right now?
Comment #2
earwax CreditAttribution: earwax commentedIt's just using the Form API. Typical 'type' => 'submit' in hook_form. I hit submit and the button can still be clicked. It's just doing some SQL searches after the user hits submit.
Comment #3
gregglesSo, you have a form with a submit button and the hide_submit module isn't properly hiding the submit button for that form. Is that the essence of the situation? I'm not really sure why it wouldn't work. I have a few custom forms that it's working with.
Comment #4
earwax CreditAttribution: earwax commentedYou know, in a strange way it is working, but it is not dimming my submit button. So visually it looks like it is still active, but when I click on it, it is disabled. Is this a theming or CSS issue?
Comment #5
gregglesYes, that is a theming issue probably. I have the same "problem" on the form where I use this module. I've just accepted it since my main goal is taken care of (the button can't be submitted twice...).
Comment #5.0
gregglesadded more information