Detailed description of issue
When viewing forms created with Acrobat Pro DC containing signature fields marked as required, how can I check to see that the required signatures were created in PDF.js Express Plus?
Code snippet
fieldManager.forEachField(field => {
const is_required = field.flags.get('Required')
if (!is_required) {
return
}
const field_type = field.getFieldType()
// text boxes
if (field_type == 'TextFormField' && (field.value === null || field.value.trim() == '')) {
// ...
// checkboxes
} else if (field_type == 'CheckBoxFormField' && field.value == 'Off') {
// ...
// radio buttons
} else if (field_type == 'RadioButtonFormField' && field.value == 'Off') {
// ...
}
// signature fields aren't form fields, or they were replaced with annotations,
// so I cannot check if a required signature field still needs to be signed or not
})
After a bit of investigation, this seems to be on issue on our end. The code you came up with should work, however for some reason we are not setting the Required flag on our end.
We look look into this and have it fixed up right away.