DocuVieware Reference Guide
RegisterOnFormFieldChanged
Reference Guides > JavaScript API > Events > RegisterOnFormFieldChanged
 RegisterOnFormFieldChanged

This function allows you trigger a function of your own when a form field value has been changed.

RegisterOnFormFieldChanged: function (docuViewareID, callback)

Parameters

docuViewareID
The identifier for the DocuVieware™ instance.
callback
The function you want to execute on event.
The callback provides an argument having a prototype { id, pageNo}.
- id specifies the form field id.
- pageNo is the page number the form field that has been changed is on.

Return Value

1 if error.