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.
Hello,
I'm trying to create a module that displays a "please wait" modal when the form is validated, valid, and submitted. My jQuery seems to fire before this module has a chance to validate so it displays the modal regardless of validation state. Is there a JS hook or function I can use to insure that it only fires when the form is validated by this module?
UPDATE: Figured it out. When I checked form.valid(), I always got 'true' on my multipage form. I had to specify which form in my selector for it to check the right form.
Thanks.
Comments
Comment #1
ashopin CreditAttribution: ashopin commented