PDF Form Field Values JSON Format Schema

Flow Types

We use Flow type declarations to specify the format of Instant JSON records.

The optional keys are specified as follows:

{ optionalKey?: value; }

To save traffic, these keys should not be included in the record if the value is undefined.

Form Field Values

Form field values were added as new Instant types to sync form field values across different devices. The name of a form field value must always be the fully qualified name of a PDF form field:

// Example of the Instant JSON schema of a form field value:
{
	"name": "Client name",
	"type": "pspdfkit/form-field-value",
	"v": 1,
	"value": "PSPDFKit"
}
declare type FormFieldValue = {
	v: 1,
	type: 'pspdfkit/form-field-value',
	name: string,
	// Multiple values are allowed for combo boxes, list boxes, and checkboxes.
	value?: string | Array<string>,
};