It seems like there's no way to define a required checkbox field. This is useful for users to acknowledge terms of service or other things that require explicit opt-in.
I think the problem is that the required attribute defaults to False, which is quite different from Django in general. A solution would be to default to True, or to inherit from OptionalFormFieldBlock to make each checkbox configurable.
It seems like there's no way to define a required checkbox field. This is useful for users to acknowledge terms of service or other things that require explicit opt-in.
I think the problem is that the
requiredattribute defaults toFalse, which is quite different from Django in general. A solution would be to default toTrue, or to inherit fromOptionalFormFieldBlockto make each checkbox configurable.