Problem/Motivation

After installing 4.x-dev, when trying to use a file field ajax upload button, you get an alert error message saying that "ajax.form.ajaxSubmit is not a function". This is because the jquery.form library is not being included on page load.

This has been reported previously on the 3.x branch with no resolution: #2874776: ajax.form.ajaxSubmit is not a function

Steps to reproduce

Set up a content type with a file field.
Install jquery_update-7.x-4.x
Set jquery version to 1.12.
Try to upload a file using the Upload button so it happens over ajax.

Proposed resolution

Patch attached that fixes the issue.

Remaining tasks

Review patch.

User interface changes

None.

API changes

None.

Data model changes

None.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

zengenuity created an issue. See original summary.

zengenuity’s picture

Status: Active » Needs review
FileSize
1.1 KB
rkdesantos’s picture

This patch solved the problem for me.

butterwise’s picture

Patch in #2 alleviated my woes.

  • mcdruid committed 07b1092 on 7.x-4.x authored by zengenuity
    Issue #3260020 by zengenuity: ajax.form.ajaxSubmit is not a function
    
mcdruid’s picture

Status: Needs review » Fixed

Looks like I missed this in b74731f8d.

Thank you!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

MLZR’s picture

After install "Imagefield Slideshow" and edit the Imagefield in the Layout Builder: first time seem to save. Bud the settings are not saved. So I go back to LayoutBuilder and tje Image Slideshow settings. When save I have this error (ajax.form.ajaxSubmit is not a function).
After the patching with this patch the error dissapeared.

Thanks for the good work!
Marcel

mcdruid’s picture

@MLZR this patch was committed to 7.x-4.x over a year ago and is included in all the stable releases (7.x-4.1 being the latest at the moment).

I'm not sure what you needed to patch to fix your problem?

MLZR’s picture

Hello @mcdruid,
You are totally right! This post was not mended for this thread. I did something wrong, sorry!
I can't remove it, can you?
MLZR

mcdruid’s picture

Okay, thanks for confirming we don't need to do anything here!