Class: FormOption

PSPDFKit.FormOption

A form option is used to identify all possible options for the following form field types:

The index of the PSPDFKit.Annotations.WidgetAnnotation#id in the PSPDFKit.FormFields.FormField#annotationIds property is used to find the option for this widget annotation (the index is the same):

const index = formField.annotationIds.findIndex(id => id === annotation.id);
const option = formField.options.get(index);
console.log(option.value);

Constructor

new PSPDFKit.FormOption(args)

Form field options

Parameters:
Name Type Description
args object

An object of the members.

Extends

  • Immutable.Record

Members




Members

label: string

Type:
  • string

value: string

Type:
  • string