Reading the checkbox state
Hello! I have this code that creates a checkbox in the dialog box:
var initialsCheckbox = checkboxControls.add({ staticLabel: "Initials" });Then this code checks the status of this checkbox:
if (initialsCheckbox == true)But, for some reason, the function is always executed with the condition that the checkbox is not checked. What am I doing wrong?
