[Resuelto] CRED checkbox validation fails after WP 5.6 update
This support ticket is created hace 3 años, 11 meses. 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.
Hoy no hay técnicos de soporte disponibles en el foro Juego de herramientas. Siéntase libre de enviar sus tiques y les daremos trámite tan pronto como estemos disponibles en línea. Gracias por su comprensión.
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>enlace oculto</u></em>">политиката за поверителност и усовията за ползване</a>.</div>
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.
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.