Clear checkboxes
Clears all checkboxes in the document.
(function() {
let doc = Api.GetDocument();
let forms = doc.GetAllForms();
// Loop through all form fields and uncheck the checkboxes if checked.
forms.forEach(function(form) {
if (form.GetFormType() === "checkBoxForm" && form.IsChecked()) {
form.SetChecked(false);
}
});
})();
Methods used: GetDocument, GetAllForms, GetFormType, IsChecked, SetChecked
Result