diff --git a/packages/forms/src/documents/pdf/parsing-api.ts b/packages/forms/src/documents/pdf/parsing-api.ts index 3bf3ee66..2e8141cb 100644 --- a/packages/forms/src/documents/pdf/parsing-api.ts +++ b/packages/forms/src/documents/pdf/parsing-api.ts @@ -278,7 +278,27 @@ export const processApiResponse = async (json: any): Promise => { }; } } - // TODO: Look for checkbox or other element types + if (input.component_type === 'checkbox') { + const checkboxPattern = processPatternData( + defaultFormConfig, + parsedPdf, + 'checkbox', + { + label: input.label, + defaultChecked: false, + } + ); + if (checkboxPattern) { + fieldsetPatterns.push(checkboxPattern.id); + parsedPdf.outputs[checkboxPattern.id] = { + type: 'CheckBox', + name: input.id, + label: input.label, + value: false, + required: true, + }; + } + } } }