You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: fern/pages/help_center/pdf-forms/fill.mdx
+69-62Lines changed: 69 additions & 62 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,84 +15,91 @@ Ensure you have the following:
15
15
16
16
### Prepare the form data as a list of object as follows
17
17
18
+
Note: if you don't know what the field names are, you should use the [mark form fields](/help_center/pdf-forms/mark) or [detect form fields](/help_center/pdf-forms/fill) API endpoints to get the field names.
19
+
20
+
Here are the most common fields and supported types:
21
+
22
+
| Field Type | Options |
23
+
| --------------- | ------------------ |
24
+
| PDFTextField |`value: string`|
25
+
| PDFOptionList |`selected: string`|
26
+
| PDFDropdownList |`selected: string`|
27
+
| PDFCheckBox |`checked: boolean`|
28
+
| PDFRadioGroup |`selected: string`|
29
+
18
30
```typescript
19
31
[
20
-
{
21
-
name: "Producer Name",
22
-
type: "PDFTextField",
23
-
value: "Titouan Launay", // fills a text field
24
-
},
25
-
{
26
-
name: "Check Box4",
27
-
type: "PDFCheckBox",
28
-
checked: false, // unchecks a box
29
-
},
30
-
]
32
+
{
33
+
name: "Producer Name",
34
+
type: "PDFTextField",
35
+
value: "Titouan Launay", // fills a text field
36
+
},
37
+
{
38
+
name: "Check Box4",
39
+
type: "PDFCheckBox",
40
+
checked: false, // unchecks a box
41
+
},
42
+
];
31
43
```
32
44
33
-
### Mark form fields from the PDF and retrieve a modified PDF
45
+
### Fill form fields from the PDF and retrieve a modified PDF
0 commit comments