Skip to content

Add the birth certificate amendment form for MA#656

Open
deammer wants to merge 11 commits into
namesakefyi:mainfrom
deammer:add-ma-r116-form
Open

Add the birth certificate amendment form for MA#656
deammer wants to merge 11 commits into
namesakefyi:mainfrom
deammer:add-ma-r116-form

Conversation

@deammer

@deammer deammer commented Jun 23, 2026

Copy link
Copy Markdown

Changes:

  • uploaded and implemented the R-116 form
  • added support for filling out PDFRadioGroups in the PDF exports
  • added e2e and schema tests

Notes:

I ran into a few weird things, please let me know how you'd like to proceed:

Situation Screenshot
the form has a weird field called "Contact information" that doesn't really make sense so I ignored it Contact information field in the margin
can we make middle names optional? I didn't see a canonical way to do that but maybe I missed it. An empty middle name marked as missing
in the exported PDF, the 2 checkboxes are misalinged (I'm using Waterfox 6.6.15). It's misaligned in a way that makes it look like the wrong box is checked... Misaligned checkbox

Implements #647. No genAI was used in the process 💅

@deammer deammer marked this pull request as ready for review June 23, 2026 21:08
@deammer

deammer commented Jun 23, 2026

Copy link
Copy Markdown
Author

@kydecker this is ready for review! I also added 3 questions/notes to the PR description. Would love to hear your thoughts 🙏

By the way the PDF uploading tool is reaaaally fucking cool, great work to everyone who contributed to that. The only issue I ran into is that it flagged a radio group as a textfield but that was easy to fix in the schema.

@kydecker

Copy link
Copy Markdown
Member

@deammer Thank you for the contribution!! I'm busy tonight but I will take some time to review this and answer your questions tomorrow.

@kydecker kydecker left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you so much for kicking this off!

I suggested a handful of copy edits below.

In response to your questions:

the form has a weird field called "Contact information" that doesn't really make sense so I ignored it

Yup, totally fine to just exclude this. There are weird elements in some of these PDF forms.

can we make middle names optional? I didn't see a canonical way to do that but maybe I missed it.

The "missing!" highlights are a little rough around the edges right now for things like this (where a field is displayed but intentionally left blank). Don't worry about it for now.

in the exported PDF, the 2 checkboxes are misalinged (I'm using Waterfox 6.6.15). It's misaligned in a way that makes it look like the wrong box is checked...

Oh, bummer, We need to manually move those fields into the correct position. It's possible to do this with pdf-lib, and probably a feature we could build into the PDF Manager... in the meantime, you could try uploading the PDF to the BentoPDF Form Creator, repositioning the fields, and saving the updated PDF.

Finally, I filed an issue to fix the RadioGroup detection in the PDF Manager: #659

It should be a pretty easy fix if you want to bundle it with this PR, otherwise we can tackle it separately!

Thanks again!

Comment thread web/src/content/forms/birth-certificate-affidavit-ma/index.ts Outdated
Comment thread web/src/content/forms/birth-certificate-affidavit-ma/index.ts Outdated
Comment thread web/src/content/forms/birth-certificate-affidavit-ma/index.ts Outdated
Comment thread web/src/content/forms/birth-certificate-affidavit-ma/index.ts Outdated
Comment thread web/src/content/forms/birth-certificate-affidavit-ma/index.ts Outdated
Comment thread web/src/content/guides/ma/birth-certificate.mdx Outdated
Comment thread web/src/content/guides/ma/birth-certificate.mdx Outdated
@deammer

deammer commented Jun 24, 2026

Copy link
Copy Markdown
Author

@kydecker thank you for the review! I've made all the updates you requested + updated deriveCurrentAge to default to 0 instead of undefined.

Gonna try to fix up the placement of the checkboxes on the form now.

@deammer

deammer commented Jun 24, 2026

Copy link
Copy Markdown
Author

Fun fact: BentoPDF only works in Chromium browsers. Thanks, Vivaldi 🙏

I fixed the checkboxes:
Checkboxes aligned on the form

@kydecker kydecker left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, looking good! I tested the flow and things are working well.

I have a few more content edits, and one thought about potentially removing the supporting documents step. Curious to hear your thoughts!

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This step feels kind of odd to me. As a user, it's confusing to understand. I'm tempted to say we should see if we can a) relocate the checkboxes elsewhere, or b) get rid of this step entirely and infer responses.

The court order/name change decree is required if the applicant is updating their name in addition to the gender marker. So as long as there is a new name different from the old name, this box can be checked, and we can display a notice (in the instructions, and in the guide itself) instructing them to bring their name change decree with them when filing for the updated birth certificate.

Additionally, we should probably have some sort of check to verify that the birth gender and updated gender are different. If they are the same, Massachusetts doesn't allow users to amend their birth certificate—we could display a banner informing the user about this.

For the "I am including a check or money order"... I'm not really sure why the user needs to check this manually. I guess the only reason you would not check it is if you were filing the Affidavit of Indigency along with this form? In which case, it would be more user-friendly to simply ask, "Do you need to waive fees?" If yes, we can include the Affidavit of Indigency, and if no, we let them know the costs and accepted payment methods, and automatically check the checkbox on the form.

Comment on lines +22 to +35
birthNameStep,
birthGenderStep,
dateOfBirthStep,
birthTownStep,
parentNamesStep,
// Section: Name and Sex to appear on amended birth certificate
newNameStep,
newGenderStep,
mailingAddressStep,
contactInfoStep,
// Section: Applicant affidavit
supportingDocumentsStep,
// Section: For subjects under 18 years of age
guardianAuthorizationStep,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
birthNameStep,
birthGenderStep,
dateOfBirthStep,
birthTownStep,
parentNamesStep,
// Section: Name and Sex to appear on amended birth certificate
newNameStep,
newGenderStep,
mailingAddressStep,
contactInfoStep,
// Section: Applicant affidavit
supportingDocumentsStep,
// Section: For subjects under 18 years of age
guardianAuthorizationStep,
birthGenderStep,
newGenderStep,
birthNameStep,
newNameStep,
dateOfBirthStep,
birthTownStep,
parentNamesStep,
mailingAddressStep,
contactInfoStep,
// Section: Applicant affidavit
supportingDocumentsStep,
// Section: For subjects under 18 years of age
guardianAuthorizationStep,

Some thoughts about step ordering: can we put the gender steps and name steps next to one another, and put the gender steps first, to warn the user if they choose the same option for both?

},
{
name: "oldGender",
label: "Current documented gender",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
label: "Current documented gender",
label: "Existing gender marker",

},
{
name: "newGender",
label: "Desired gender",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
label: "Desired gender",
label: "Desired gender marker",

Comment on lines +8 to +10
title: "Parent or guardian authorization",
description:
"At least one parent or guardian must authorize this change if you are under 18 years old.",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
title: "Parent or guardian authorization",
description:
"At least one parent or guardian must authorize this change if you are under 18 years old.",
title: "Parent or guardian authorization",
description:
"Since you are under 18 years old, at least one parent or guardian must authorize this change.",

label="Parent or guardian 1's full name"
name="guardianOneFullName"
size={24}
isRequired

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
isRequired

Ah, we actually need to remove this. We currently don't enforce fields being filled out at any point in the flow, and don't have any logic setup to handle displaying errors for required fields.

The logic is that we want people to be able to skip any fields they are uncomfortable with filling out (or unable to fill out) so that they can do it after printing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants