From 6b337b9729d7ce6caa4df6bcd4c569310e737132 Mon Sep 17 00:00:00 2001 From: Daniel Naab Date: Mon, 25 Mar 2024 21:30:36 -0500 Subject: [PATCH] Output mapping fix --- packages/forms/src/documents/pdf/generate.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/forms/src/documents/pdf/generate.ts b/packages/forms/src/documents/pdf/generate.ts index b2380ae2..20ef721c 100644 --- a/packages/forms/src/documents/pdf/generate.ts +++ b/packages/forms/src/documents/pdf/generate.ts @@ -13,11 +13,10 @@ export const createFormOutputFieldData = ( if (docField.type === 'not-supported') { return; } - const fieldId = output.formFields[elementId]; const outputFieldId = output.formFields[elementId]; results[outputFieldId] = { type: docField.type, - value: formData[fieldId], + value: formData[elementId], }; }); return results;