Meta Box
Support Forum
Support › Meta Box Builder › How to make checkbox field mandatoryResolved
Hi,
I want to include a sort of acceptance checkbox that must be checked to be able to submit the form in the frontend. But the checkbox field seems not to have this option. How to enforce that?
In the Meta Box Builder, we can add the custom attribute for the checkbox field to make it required. See https://share.getcloudapp.com/X6ud6g8G.
For more information, please follow the documentation. https://docs.metabox.io/custom-attributes/ https://docs.metabox.io/extensions/meta-box-builder/#custom-attributes
Thanks, that works great!