Checkbox mandatory on webform doesn't apply

I made a webform from a custom doctype.
The problem is the checkbox that has to be checked when save the webform doesn’t apply. The form can be saved regardless of the checkbox checked or not.
I have make the check field mandatory in doctype and in webform.
If this can’t be done built-in, how do I enable this by code?
Thank you.

Hi, did you find a solution to this problem? I’m having the same problem.

I forgot what solution I took. If I’m not mistaken, I made a script to validate and throw error if it is not checked.

same problem. can anyone provide script or any solution