Checkbox query! Javascript to prevent unchecking...
Hi,
I'm new to adobe acrobat interactive PDFs but there are so many helpful posts here that have got me a long way! I currently have a number of checkboxes for different courses (eg. Course1, Course2) which check proficiencies in a list:
- Course1 checkbox: ticks proficiencies M1.1, M1.2, M1.4
- Course2 checkbox: ticks proficiencies M1.1, M1.6, M1.7
Currently if someone unchecks Course1, this will uncheck box 1.1 even if Course2 is still checked. Is there a way to prevent this?
I'm just using this code in Course1 checkbox on MouseUp:
this.getField("M1.1").value = event.target.value;
this.getField("M1.2").value = event.target.value;
this.getField("M1.4").value = event.target.value;
And this code in Course2 checkbox on MouseUp:
this.getField("M1.1").value = event.target.value;
this.getField("M1.6").value = event.target.value;
this.getField("M1.7").value = event.target.value;
Thanks in advance!
Lucy
