XPages - Making an agree checkbox button

Hi,

I’m trying to make a checkbox which acts as an ‘do you agree to our terms of business’ button that will error on submission if it’s not checked, but I have no idea how to go about it. Anyone have any suggestions?

I thought making it a required field would work but that doesn’t work, I’m guessing because it has a checked/unchecked state that technically always has a value.

Thanks in advance as always

Subject: not elegant, but works

I ended up giving the checked state of 'IAGREETOTHETERMS" and the uncheck state of “DISAGREE”.I then added a length validator with a minimum of 11 (playing it a bit safe). Not the most ideal method but it works.