Show a Next button only when all checkboxes are ticked
I have a form which uses a "Button1" to create a certificate from a template when clicked. This all works well but I want the Button to only become visible when all of the checkboxes on the first page are checked.
To test the function I have just three checkboxes at the moment, "SHEFCB", "1LTCB" and "BWOCB", but ultimately there will be about 20 checkboxes. At the moment I'm using the following script which works-ish in that as soon as any of the checkboxes is clicked it unhides the button, but I need the button to show only when all checkboxes are ticked and hidden if any one of them is left unchecked:
var bReady = true;
if(this.getField("SHEFCB").value.length == 0) bReady = false;
else if(this.getField("1LTCB").value.length == 0) bReady = false;
else if(this.getField("BWOCB").value.length == 0) bReady = false;
if(bReady) this.getField("Button1").display = display.visible;
else this.getField("Button1").display = display.hidden;any ideas?

