Following on from this thread (https://toolset.com/forums/topic/what-is-the-best-approach-in-adding-a-i-confirm-checkbox-to-a-crud-form/) I only later realised that even when my confirmation checkbox is checked the form still won't submit.
So I simply need a checkbox which must be ticked in order for the form to be submitted and so added a generic field as per the support guidance, however even when the box is checked the form still won't submit and the errors says that this field is required? My code is:
[cred_generic_field type='checkbox' field='gdpr-confirmation']
{
"required":0,
"default":"",
"label":"I confirm I am happy for the details provided above to be shared with all broker members of the site."
}
[/cred_generic_field]
Am I missing something?
Hi, try adding a value to the generic checkbox field. Without a value, the system may not interpret it as being checked:
[cred_generic_field type='checkbox' field='gdpr-confirmation']
{
"required":0,
"value":1,
"default":"",
"label":"I confirm I am happy for the details provided above to be shared with all broker members of the site."
}
[/cred_generic_field]