Following on from https://toolset.com/forums/topic/generic-checkbox-for-confirmation-not-validating-even-when-checked/ I have tried what Christian suggested, adding a VALUE option to the generic field, however the form still won't submit even if the box is checked now. I've had to set it as not required which allows people to submit without it being checked however we need it to only allow the form to be submitted if it's been checked.
Am I missing something?
Hi Simon,
Thank you for contacting us and I'd be happy to assist.
I've tested the slightly updated code for the generic field from your last message and it works as expected:
[cred_generic_field type='checkbox' field='gdpr-confirmation']
{
"required":1,
"default":"1",
"label":"I confirm I am happy for the details provided above to be shared with all broker members of the site."
}
[/cred_generic_field]
Can you please test this and let me know how it goes?
regards,
Waqar
Thanks for the clarification, looks like I was needing to set the DEFAULT param rather than the VALUE one previously advised.