How to add a required checkbox on the submission form?

What specifically did you try that didn’t work? If you can share your code on GitHub or similar, we can take a look to try to offer advice.