I'm using itext 7.1.9 and I need to create a PDF document with two checkbox fields with the same names.
A have tried it the next way:
PdfFormField field = PdfFormField.createComboBox(pdf, rect, name, value, options);
PdfFormField parent;
if ( (parent = form.getField(name)) != null) {
parent.addKid(field);
parent.setValue(value);
}
but it doesn't work for me. The fields disappeared from the PDF.