JAVA Checklist MACRO Flashcards

1
Q

var fieldNames = [“CB1”, “CB2”, “CB3”]; // List of all checkboxes in the group
var clickedField = event.target.name; // Name of the checkbox that was clicked

// Deselect all checkboxes in the group
for (var i = 0; i < fieldNames.length; i++) {
this.getField(fieldNames[i]).value = “Off”;
}

// Select the clicked checkbox
event.target.value = “Yes”; // Use a value that marks the checkbox as selected

A

EXPLANATION = formula ensures you can only check one box per row and repeat checkmarks when you click on another box

How well did you know this?
1
Not at all
2
3
4
5
Perfectly