PDF form events and notifications
Nutrient Flutter SDK lets you listen to various events that occur when the end user interacts with forms in a document. The following events are supported:
Listener | Description |
---|---|
formFieldValuesUpdated |
Event triggered when form field values are updated. |
formFieldSelected |
Event triggered when form fields are selected. |
formFieldDeselected |
Event triggered when form fields are deselected |
To listen to these events, you can add event listeners to the PspdfkitWidget
— for example, adding an event listener for updated form field values:
PspdfkitWidgetController.addEventListener(NutrientEvent.formFieldValuesUpdated, (event) { print('Form field values updated: $event'); });
Most use cases should be covered by these listeners, and they can be used as such. For more advanced use cases, consider exploring the Nutrient native and web SDKs for customization. Refer to the Nutrient Flutter SDK customization guide and the following documentation links for more information: