TX Text Control .NET Server

Javascript: Forms.getValues Method

Method|Introduced in 29.0

Description

Returns the current value, name, type, and identifier of each form field.

Syntax

<CompletedFormField[]> Forms.getValues()

Return Value

Returns the current value, name, type, and identifier of each form field.

Examples

The following example demonstrates forms.getValues in a practical Document Viewer workflow. Returns an array of all contained form fields with it's values completed by the user.

const formValues = TXDocumentViewer.forms.getValues();
console.table(formValues);