- ๐ง๐ทBrazil adrianopulz Florianรณpolis
I'm facing the same issue after updating to Drupal 10.0.9. No special step to reproduce, I've updated all modules and core to the latest D9 version. After that, I upgraded to Drupal 10. I executed the drush cache rebuild and updb.
Now I have this same message "ajax.$form.ajaxSubmit is not a function".
Had same issue after updating to Drupal 10.1.1.
Got a custom route that returns AjaxResponse, but for some reason it started to throw the ajax.$form.ajaxSubmit is not a function alert.
After searching it appears that core/jquery.form is being removed at Drupal 10. After digging into the core files, found core/internal.jquery.form is being used instead. After replacing it in the .libraries.yml file of the current theme, it started to work.
Hope that will help someone.
- ๐ป๐ณVietnam phthlaap
Thank Engerrs,
#16 fixed this issue.
I'm using Drupal 10.1.4
- Create a custom theme with base stable9
- Add webform module
- Add new webform, attach to a node
- Enable Ajax for the webformThe issue will happen. Add dependency to the theme will resolve this issue.
dependencies: - core/internal.jquery.form
- ๐ฎ๐ณIndia heni_deepak Jaipur, Rajasthan, India
@Engerrs, thank you for reproducing this issue and also thank you to @phthlaap for testing. Perhaps we can find a solution to this bug without making any changes to Drupal 11.
I had same issue after upgrading to Drupal 10 from 9 with my ajax forms in which I was using
use-ajax-submit
class in submit buttons.
#17 fixed the issue. Just added dependency to my library.dependencies: - core/internal.jquery.form
Hi All,
I have a multistep webform, and using AJAX submit.
I am having a upload field to attach a document, which has size restriction of 16mb.
If user uploads a small size file below 16mb, its successfully attached and form getting submitted.
But If User tries to upload a bigger size file beyond 16mb, getting error as
An unrecoverable error occurred. The uploaded file likely exceeded the maximum file size (16 MB) that this server supports.
After the error validation , if user submits the form with smaller doc or without any document. unable to submit as getting the below error.An error occurred while attempting to process /diversity-scholarship?ajax_form=1&_wrapper_format=html&_wrapper_format=drupal_ajax: blockSubmit is not defined
Can somebody please suggest on this,
Thanks in advance,
Pashupathi Nath