[Resolved] CRED checkbox validation fails after WP 5.6 update
This support ticket is created 3 years, 11 months ago. 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.
No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.
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>hidden link</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.