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.

This topic contains 11 replies, has 3 voices.

Last updated by Alejandro 1 month, 3 weeks ago.

Assigned support staff: Alejandro.

Author Posts
April 13, 2021 at 12:10 pm #8525055

stephaneJ-8

Hello,
In my gravity forms, I have conditional required fields.
In the translated version the required doesn't work.
Thank you for your help

April 14, 2021 at 8:34 am #8532297

Mohamed Sayed
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi Stephane,
Thanks for contacting WPML support, I will be happy to help you today.

Please check the documentation here and let me know if these are the steps you are following to translate the form: https://wpml.org/documentation/related-projects/gravity-forms-multilingual/

Also, do you see any errors while trying to submit the form? Please send me a link to the page where I can check this issue.

April 14, 2021 at 11:53 am #8534735

stephaneJ-8

Dear Mohamed,
Thank you for your reply.
Yes, I followed the steps above.
Here is the URL: hidden link
When you start to fill the form you will see a hidden field (Terms and Conditions to be agreed).
It is a required field, working in English. But when you select the french language, you can submit the form even if the customer doesn't click on "I agree" (J'accepte).
Thank you for your help
JG

April 15, 2021 at 1:24 pm #8545637

Alejandro
Supporter

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

Timezone: Europe/Rome (GMT+02:00)

Hello there!

I'm going to continue here since Mohammed is not available at the moment.

Since this could be a compatibility problem, i'd kindly ask you to please upload gravity forms here: hidden link

then enable the languages that you have on your site and:

- Create a form
- Recreate the problem
- Try to translate the form using WPML > Translation Management
- Try to see if the problem is here as well.

If it is, please let us know the steps you take in order to configure the form so we can run a few compatibility tests and hopefully find a solution to your problem.

Regards.

April 19, 2021 at 9:46 am #8569963

stephaneJ-8

Dear Alejandro
I followed the step above and I reproduced the issue
Thank you for your help
Best regards

April 19, 2021 at 9:53 am #8570081

Alejandro
Supporter

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

Timezone: Europe/Rome (GMT+02:00)

Alright, can you please write here the steps taken so i can send them to our developers?

Thanks in advance.

April 19, 2021 at 10:11 am #8570517

stephaneJ-8

- Form creation in English with 2 required fields. The second one uses conditional logic
- I use String Translation to translate the form.

--> In English the required function works on the second field but not in French

April 19, 2021 at 1:07 pm #8572617

Alejandro
Supporter

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

Timezone: Europe/Rome (GMT+02:00)

I'm not entrely sure about this. i tested it and it seems to be working correctly: hidden link

Am i missing something here? the only thing i was aware of doing was to NOT translate the VALUES because if you translate a value, then you can't trigger the condition (Since the condition is intrinsically linked to the value and if it changes, it will be ignored).

Could it be that was your problem?

April 19, 2021 at 1:34 pm #8572825

stephaneJ-8

Dear Alejandro,
Thank you so much for the loom.
My concern is that when you are in French, you can submit the form even if you don't have choose Yes or No on the required field (the conditional one).
Sorry, I was not clear.
thank you again
JG

April 19, 2021 at 2:20 pm #8573387

Alejandro
Supporter

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

Timezone: Europe/Rome (GMT+02:00)

I tested the scenario you just mentioned and the problem is not there: hidden link

Am i missing something? again, it's key here the "value" element is not translated, since that one can basically render all these conditions invalid.

April 21, 2021 at 2:07 pm #8591695

stephaneJ-8

Dear Alejandro,
Thank you for your time. Indeed it is working on our example. From my side on my website it is not working even with value not translated. Anyway I found another solution. I added a conditional logic on the submit button.
This button do not appear till my customer choose to accept the disclaimer.
😉
Best regards

April 21, 2021 at 2:41 pm #8591953

Alejandro
Supporter

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

Timezone: Europe/Rome (GMT+02:00)

Oh i see. If that suits you then it's ok. However, it's weird that this new conditional, instead works 😮

I'll leave the ticket open in case the problem returns, but feel free to close it if you believe it's not necessary.