I am encountering an issue with my PDF form that contains two checkboxes labeled as "Ja" and "Nei". When I attempt to retrieve the names of the checkboxes using const fields = form.getFields()
, I only get name===> PDFCheckBox: dodJaNei
.
My question is, how can I effectively work with both checkboxes?
const checkBoxxx = form.getCheckBox('dodJaNei')
checkBoxxx.check()
The code snippet provided above successfully checks the first checkbox but not the second one.
Could someone please guide me on how to implement the logic for working with these two checkboxes simultaneously?