[Résolu] CRED checkbox validation fails after WP 5.6 update
This support ticket is created Il y a 3 années et 11 mois. There's a good chance that you are reading advice that it now obsolete.
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
Aucun de nos assistants n'est disponible aujourd'hui sur le forum Jeu d'outils. Veuillez créer un ticket, et nous nous le traiterons dès notre prochaine connexion. Merci de votre compréhension.
I was forced to turn off my GDPR compliance generic checkbox because users can no longer register on my website after the 5.6 update. It seems like it does not get the input from user no matter checked or not.
Here is my code:
<div class="gdpr-wrapper">[cred_generic_field type='checkbox' field='gdpr-agreed' class='agreed']
{
"required":1,
"default":"",
"label":"Съгласен съм"
}
[/cred_generic_field]с <a href="<em><u>lien caché</u></em>">политиката за поверителност и усовията за ползване</a>.</div>
Les langues: Anglais (English )Espagnol (Español )
Fuseau horaire: Europe/London (GMT+00:00)
I tested that on my own site and can confirm it is not working, although when I tested it with earlier plugin versions pre-5.6 it also was not working, so I'm not sure when the problem began.
In any case, it is confirmed, and I've escalated it to the developers so that it can be fixed.
I'll let you know when there is a solution to share.
Les langues: Anglais (English )Espagnol (Español )
Fuseau horaire: Europe/London (GMT+00:00)
Hi there
I have an update from the developer, who says it fails because there is no setting provided for the default value.
Add a value for the option—anything, e.g. 0—and then the field should work correctly.
They are going to make some changes to handle this correctly, but if you provide a value for the default this will work, and I think we can close here.