Error message when clicking save for checkbox in module

Error message when clicking save for checkbox in module

I'd like to add a checkbox that says "I Agree" and lock the other modules if they do not click this. I set up the I agree page checkbox and set to lock others if not checked. However, when I test it as another user, I get an error message.