Background of the issue:
I am trying to translate our website from Greek to English. We have a registration form created using WPForms, and we use SCF for custom fields. The English version is not live yet due to an issue with the form. Here is the link to the page where the issue can be seen: hidden link
Symptoms:
The checkboxes on the translated English version of the registration form do not pass their values to the custom fields. This issue does not occur in the default Greek version.
Questions:
Can you help with the issue of checkboxes not passing values in the translated version?
I ve added wpforms, as well as wpforms user registration addon and wpforms multilingual, which are both licensed addons. Then i ve created a registration page with a registration form that i translated to Spanish, added the corresponding scf fields and made a test in both languages. You can see that the user test tes1 has the checkbox marked but that doesnt work with the user test spanish.
Just a correction. Yesterday i updated all the plugins just in case that would solve the issue. During the update SCF was renamed to ACF. The issue still exists but just wanted to let you know.
Thank you so much for sharing the results. One more thing, while I take this to our devs.
I would like to request temporary access (wp-admin and FTP) to your site to take a better look at the issue. It would be better to a testing site where the issue is replicated.
You will find the needed fields for this below the comment area when you log in to leave your next reply. The information you will enter is private which means only you and I can see and have access to it.
Maybe I'll need to replicate your site locally. For this, I’ll need to temporarily install a plugin called “Duplicator” or "All in One WP Migration" on your site. This will allow me to create a copy of your site and your content. Once the problem is resolved I will delete the local site. Let me know if this is ok with you.
IMPORTANT
- Please make a backup of site files and database before providing us access.
- If you do not see the wp-admin/FTP fields this means your post & website login details will be made PUBLIC. DO NOT post your website details unless you see the required wp-admin/FTP fields. If you do not, please ask me to enable the private box. The private box looks like this:
Thank you for sharing the details. Unfortunately, I wasn't able to login with them, as I got a message "ERROR: The username or password you entered is incorrect. Lost your password?".
Can you please verify? I've enabled the private fields, for you to share the correct information. Thank you.
Thank you for waiting. I've received feedback from our devs.
WPForms will use the same string for the field label and value. So the value and the label "Notify me" are translated into "Notificarme" while in ACF, you will translate the label only.
Also, in that specific case, the client wants to use a True/False field type with ACF and that type of field doesn't exist in WPForms.
We found a snippet in WPForms' documentation that allows you to show/edit the value: hidden link
Please make a full website backup and follow the steps below:
1. Open your functions.php file and add the following snippet provided by WPForms:
/**
* Show values in Dropdown, checkboxes, and Multiple Choice.
*
* @link <em><u>hidden link</u></em>
*/
add_filter( 'wpforms_fields_show_options_setting', '__return_true' );
2. Set your ACF field to TRUE/FALSE (the value will then be 1 or 0
3. Edit your WPForm, select the checkbox field, click on "Advanced" and enable ("Show values") - Please refer to the documentation provided
4. Add the value 1 for the label Notify me
5. Save the form, resave the translation
6. Now the value saved (0 or 1) can match with the ACF field
Hello Lucas, i am testing the solution your provided. Sorry for the delay. I am just "reopening" the ticket just in case. So, far it seems to be working, but since the forms we are using have multiple fields that can be affected by this change, i would like 2 or 3 days to fully test this before closing the ticket. So, please, if you could just keep the ticket open and i will come back to you by the end of the week latest.