Home›Support›English Support›[Resolved] Gravity Forms - All the checkboxes not getting the correct value in french
[Resolved] Gravity Forms - All the checkboxes not getting the correct value in french
This thread is resolved. Here is a description of the problem and solution.
Problem: The values in a form are set to numbers, which cannot be translated, and the plugin retrieves the label as the value. In English, the values are 0 or 1, but in the translated form, it shows the label value. Solution: 1. Navigate to WPML -> Strings Translation. 2. Select the domain gravity_from-6. 3. Locate the strings named radio-30-choice-1-No---$0 and radio-30-choice-0-Yes---$800-value. Change the translation of 1 and 0 to match the original strings. This issue has been resolved in the latest version of Gravity Forms Multilingual, version 1.8.0. So, there is no need to apply the above-suggested workaround. If you are still experiencing issues, we recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins.
If the problem persists, please do not hesitate to open a new support ticket at WPML support forum.
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.
Hey Itamar,
Thanks for consulting with your team about our issue.
I will punctually respond to your questions:
A. Tired all the Troubleshooting suggestions in the documentation. Problem still persists.
B. I tried to add a new form and translate it and it works as expected. But I couldn't do anything for the old forms; we cannot recreate all the form from scratch because we have a lot of logic in them.
I did delete the translation for the existing form multiple times, and reset it as your colleague suggested, but this didn't solve the issue.
You can try resetting the translation for the current form if you want but on my end the translated values are not changing.
Our second-tier supporter says it is an interesting and probably an edge case. Of course, we want to investigate this case further. Our second-tier supporter brings up the following doubts.
A. He wonders if you put something other than "Yes and No" if the value would change for the original form.
Can you please try it and relate to this?
B. In addition, he recalled that there was the possibility of setting a custom value in addition to the label. Perhaps you set that first and then un-set the option.
Could this be the case?
The best thing would be replicating the issue on a clean WordPress installation with WPML and Gravity Forms. If you can help us with this, that would be great. For this, I created a test website with a clean WordPress install. You can access it through this link:
hidden link
With this link, you'll be directly logged in.
I've installed GF on this site and configured WPML to have English as the default language and French as the second language.
Can you create a test form with similar settings to your site and replicate the problem?
Do not import your site into the sandbox site. This is not its purpose.
Otherwise, there might be something corrupted on your site that we will need to check.
If you cannot replicate this issue on the sandbox site, we will need your permission to install a plugin like Duplicator or All In One Migration and take a copy of your site. Please let us know if you agree to this.
A. I tried changing the values and the labels, they changed in the original language but not in the translated form.
B. In addition, he recalled that there was the possibility of setting a custom value in addition to the label. Perhaps you set that first and then un-set the option.
The label is not the same for all the forms, the values are set to numbers on all of them, and not one of them is translated.
The form works perfectly in the original language, when I update the fields, the translation update is not working.
C:
There is no point of recreating the whole form, I already did that on our website and it works well. For new forms, the translation is working as expected, the radio values are there in the translation as well. hidden link
It seems that the problem is that the wpml keeps the old radio field value even though you translate the label.
This is the best description of the issue.
I want to explicitly ask for your permission to install a plugin like Duplicator or All In One Migration and take a copy of your site. Please let us know if you agree to this.
I installed the All-in-One WP Migration plugin on your site and took a copy of it. I escalated the issue to our second-tier supporters. They will check it, and when I have any news from them, I'll update you here.
Our second-tier supporter has provided a workaround for this issue. Please proceed with the following.
1. Go to WPML -> Strings Translation.
2. Select the domain gravity_from-6.
3. Find the strings with 0 and 1 under the name radio-30-choice-1-No---$0 and radio-30-choice-0-Yes---$800-value and change the translation of 1 and 0 to the same strings.
Please see the attached screenshot.
Our developers have already fixed the issue, and the fix will be included in future versions of Gravity Forms Multilingual.