feat: add name field

Adds support for a name field which will be prefilled with the recipients name if they haven't signed a form on Documenso before.
This commit is contained in:
Mythie
2023-04-19 22:48:26 +10:00
parent 5c58b32d92
commit b444d5c928
8 changed files with 151 additions and 14 deletions

View File

@ -157,7 +157,11 @@ async function postHandler(req: NextApiRequest, res: NextApiResponse) {
signedField.Signature.typedSignature,
signedField.positionX,
signedField.positionY,
signedField.page
signedField.page,
// useHandwritingFont only for typed signatures
signedField.type === FieldType.SIGNATURE,
// fontSize only for name field
signedField.type === FieldType.NAME ? 30 : undefined
);
} else {
documentWithInserts = document.document;