Class: ResetForm

Actions. ResetForm

An action that resets form fields to their default values.

new ResetForm(options)

Creates a reset-form action.

Name Type Argument Description
options object <nullable>

A map of properties to set on the Action

Name Type Description
fields Array.<string>

The names of the fields on which the action should operate

exclude boolean

Whether the action should reset only the fields specified in fields, or all the fields except those.



onTriggered(owner, event, documentViewer)

Called when the action is triggered.

Name Type Description
owner Annotations.Forms.Field | CoreControls.DocumentViewer

The dispatcher to which this action is attached

event Annotations.Forms.PDFJS.Event

The PDFJS event to use when executing the action

documentViewer CoreControls.DocumentViewer

The DocumentViewer to use as context for the action execution

Inherited From: