SuffolkLITLab / FormFyxer

A tool for learning about and pre-processing forms
MIT License
11 stars 1 forks source link

Getting duplicate field names in `parse_form()` #10

Closed nonprofittechy closed 1 year ago

nonprofittechy commented 2 years ago

When I run parse_form() on the attached PDF, it gives me some duplicate field names.

Complaint for Contempt (CJD 103)_02-10-2022_1522.pdf

Specifically, I get duplicates for:

BryceStevenWilley commented 1 year ago

Can't reproduce this anymore, the fields that show up now are at the bottom of this comment.

Additionally, we have a thing that adds __1 to the end of fields now, so I think this is resolved.

['*signature_date',
 '*users1_address_line_one',
 '*users1_address_state',
 '*users1_address_zip',
 'address__1',
 'address__2',
 'alimony',
 'apt_unit_etc__1',
 'apt_unit_etc__2',
 'apt_unit_etc__3',
 'arrears_support_payments',
 'bbo',
 'by',
 'children__1',
 'children__2',
 'city_town__1',
 'city_town__2',
 'city_town__3',
 'civil',
 'commonwealth_court_probate',
 'comply_court_ordered_parenting',
 'criminal',
 'defendant_ordered',
 'division__1',
 'division__2',
 'docket',
 'first_name__1',
 'first_name__2',
 'impose_restraint_liberty',
 'judgment',
 'last_name__1',
 'last_name__2',
 'm_i_2',
 'mi',
 'monthly',
 'order',
 'other',
 'pay',
 'pay_insurance_premiums',
 'plaintiff',
 'plaintiff_name',
 'plaintiff_parenting_time',
 'primary_phone',
 'print_name',
 'reasonable_medical_dental',
 'remains_due_unpaid_plaintiff',
 'signature_attorney_plaintiff_pro',
 'state__1',
 'state__2',
 'sum',
 'support_dependent_children',
 'undefined__1',
 'undefined__2',
 'undefined__3',
 'violated_order',
 'weekly',
 'zip__1',
 'zip__2']