mirror of
https://github.com/documenso/documenso.git
synced 2025-11-15 09:12:02 +10:00
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:
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user