Skip to content
This repository was archived by the owner on May 4, 2019. It is now read-only.
This repository was archived by the owner on May 4, 2019. It is now read-only.

Checkboxes won't check #16

@dannymcpherson

Description

@dannymcpherson

To work around it, I commented out this if-block in fdf-generator:

        return fields.reduce((accum, field, index) => {
            let dataField = this.pdfData.find(x => x['FieldName'] === field.fieldname), writeValue = field.fieldvalue;
            // if (dataField.hasOwnProperty('FieldStateOption')) {
            //     writeValue = field.fieldvalue ? dataField['FieldStateOption'] : 0;
            //}
            return [{ fieldname: dataField['FieldName'], fieldvalue: writeValue }, ...accum];
        }, []);
    }

That being said, _extractFieldNames(pdf) and _assignments(fields) don't appear to do the right thing. There can be multiple FieldStateOption lines, and this code only deals with the first one.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions