Skip Navigation

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 8:00 – 17:00 8:00 – 17:00 8:00 – 17:00 8:00 – 17:00 8:00 – 17:00 -
- - - - - - -

Supporter timezone: Europe/Madrid (GMT+01:00)

This topic contains 0 replies, has 0 voices.

Last updated by Paola Mendiburu 1 month ago.

Assisted by: Paola Mendiburu.

Author Posts
November 14, 2024 at 11:01 am

victorD-16

Background of the issue:
I use WPML and WPForms. I've created a form with a repeater field. When the visitor adds two or more repeater fields (by clicking the "Add" button in the form), it's not possible to submit the form. In the console, I see an Ajax error. This is urgent since the form is a crucial part of campaign that will launch in a couple of days.

Since this has worked before, I've deactivated all plugins and custom scripts to identify the conflict (that's why the design looks bad). I found that deactivating WPForms Multilingual 0.4.0 fixes the problem and it's possible to submit forms with multiple repeater fields again. However, I need to use this plugin since it's a multilingual site.

What should I do? Is it possible install an older version of WPML or WPForms Multilingual to see if that solves the problem (since this worked. before)?

Screenshot from Ajax error message when trying to submit form with multiple repeater fields when WPForms Multilingual 0.4.0 is activated: hidden link

I'm happy to share login credentials to wp-admin if needed.

Debug log:

November 14, 2024 at 11:12 am
November 14, 2024 at 11:17 am #16402020

Paola Mendiburu
Supporter

Languages: English (English ) Spanish (Español ) Italian (Italiano )

Timezone: Europe/Madrid (GMT+01:00)

Hi there!

I have converted into a ticket as you were disconnected from chat.

First of all please check file permission as you can see here:
hidden link

If the problem persists, please let me know how I can reproduce the issue.

November 14, 2024 at 11:24 am #16402078

victorD-16

Hi,

I checked the file permissions and it's not the issue.

November 14, 2024 at 11:31 am #16402196

victorD-16

Here's how to recreate the issue. The sounds seems to be missing but I hope you get it anyway. Important: it the issue only occurs when clicking "Lägg till" ("Add") and adding more than one (1) repeater fields in the end of the form.

Screen recording: hidden link

November 14, 2024 at 2:31 pm #16403409

victorD-16

I also wonder if it's possible to download an older version of WPML (and WPForms Multilingual) from about five weeks ago? Since everything worked fine back then, it could perhaps be a temporary fix for the campaign deadline?

November 14, 2024 at 3:28 pm #16403824

Paola Mendiburu
Supporter

Languages: English (English ) Spanish (Español ) Italian (Italiano )

Timezone: Europe/Madrid (GMT+01:00)

Hi there!

From here you can download previous version:
https://wpml.org/account/downloads/

Click on download manually and then on the info icon.

Please let me know if it the problem is solved with previous version and which one so I can reproduce it in order to escalate the problem.

November 15, 2024 at 10:15 am #16407087

victorD-16

Thanks! Yes, the bug goes away with an older version of WPML. See the attached screenshot.

Screenshot on 2024-11-14 at 11-56-18.png
November 15, 2024 at 11:00 am #16407631

victorD-16

No wait, that screenshot was from the WPForms support and it worked for them. But I use the same WPML versions an another site and multiple repeater fields does still not work. I'll try with even older versions and post and update.

November 15, 2024 at 11:28 am #16407788

victorD-16

Major breaktrough! I've identified what's causing the conflict between WPML and WPForms:

It's the dropdown field (heading "Tävlar i klassen") in the repeater field.

1. Here's the form with the dropdown: hidden link

2. And here is a duplicated form with the dropdown removed: hidden link

The duplicate can be submitted even when the user adds multiple repeater fields.

The dropdown has several characters that might cause the problem like (/*+ etc. in the code. I'll see if I can narrow down which field in the dropdown that causes the conflict.

The dropdown works if WPForms Multilingual is deactivated but not when it's activated.

18c605ff-b2a5-43a8-b74c-764a41381a55.jpeg
November 15, 2024 at 11:34 am #16407877

victorD-16

Update, the issue is having a dropdown field in the repeater field (at all). I just added a simple dropdown with three default options:

First choice
Second choice
Third choice

This made the bug come back.

So the conflict is between WPML and WPForms when using a dropdown in a repeater fields (and the user adds at least one (1) additional repeater field).

Screenshot 2024-11-15 at 12.32.00.jpg
November 15, 2024 at 11:48 am #16407991

victorD-16

Tested with radio buttons and that triggers the same bug.

November 17, 2024 at 10:54 am #16411593

Paola Mendiburu
Supporter

Languages: English (English ) Spanish (Español ) Italian (Italiano )

Timezone: Europe/Madrid (GMT+01:00)

Hi there!

I have tried to reproduce the issue with dropdown field but it is working properly:
hidden link

Could you please try to reproduce the issue on the following test site?
hidden link

That way we can transfer to the development team.

Thank you.

Please let me know if you are able to reproduce the issue.

The topic ‘[Feature Request] WPML causes Ajax error in WPForms’ is closed to new replies.