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.
The custom ctools popup form submit, If i click on a submit button client_side validation is works & then trigger the form submit just calls the serverside validation.
ajax form submit bypassing clientside validation & form submitted..
how to solve this issue?.. it error show's only ctools modal popup form (ajaxform)..
thanks in advance.
Comments
Comment #1
Jelle_SThis is strange. As far as I can tell ctools modal uses the drupal ajax framework, which works fine with clientside validation. But for some reason the ajax callback isn't cancelled when the beforesubmit callback returns false on a ctools modal form. We'll have to consult with the maintainers of ctools on how we can cancel the ajax callback when there are errors on the form.
Comment #2
web-mayak CreditAttribution: web-mayak commentedsubscribe
Comment #3
J0keR CreditAttribution: J0keR commentedsubscribe
Comment #4
Manu75013 CreditAttribution: Manu75013 commentedsubscribe
Comment #5
chiddicks CreditAttribution: chiddicks commentedCan confirm that this is an issue in 6 as well, specifically Clientside Validation 6.x-1.32 and Ctools 6.x-1.9. Going to try and look at it soon. I'm using FAPI Validation.
Comment #6
Jelle_SThis is fixed in the latest dev version of 7.x. Setting to 6.x now.
Comment #7
Jelle_SFixed in latest dev version of 6.x