[Expand]General Information
[Collapse]WinForms Controls
 [Expand]What's Installed
 [Expand]Build an Application
 [Collapse]Controls and Libraries
  [Expand]Forms and User Controls
  [Expand]Messages, Notifications and Dialogs
  [Expand]Editors and Simple Controls
  [Expand]Ribbon, Bars and Menu
  [Expand]Application UI Manager
  [Expand]Docking Library
  [Expand]Data Grid
  [Expand]Vertical Grid
  [Expand]Property Grid
  [Expand]Pivot Grid
  [Expand]Tree List
  [Expand]Chart Control
  [Expand]Map Control
  [Expand]Rich Text Editor
  [Expand]Spell Checker
  [Expand]Form Layout Managers
  [Expand]Navigation Controls
  [Collapse]PDF Viewer
   [Expand]Getting Started
    Coordinate Systems
   [Collapse]Access and Edit Document Content
    [Collapse]Interactive Forms
      Interactive Form Filling
      Export and Import Interactive Form Data
     File Attachment
     Text Markup Annotations
     Content Copying
  [Expand]TreeMap Control
  [Expand]Sunburst Control
 [Expand]Common Features
  Get More Help
 [Expand]API Reference
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Report and Dashboard Server
[Expand]eXpressApp Framework
[Expand]eXpress Persistent Objects
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation
View this topic on docs.devexpress.com (Learn more)

Interactive Form Filling

This document describes how to fill a document with interactive forms and customize form field behavior.

Expanded Overview

You are able to type directly into PDF documents that contain the form field information.

As you can see from the image above, each field is rendered according to its form type, providing text boxes, radio buttons and combo boxes with auto complete, check boxes and lists.

The image below shows the auto complete, combo box and check box features embedded in an address form.

Expanded Customization

Highlight Form Field

The PDF Viewer can highlight interactive form fields with a color. To enable this functionality, set the PdfViewer.HighlightFormFields property to true.

If you wish to change the default color, which is used to highlight form fields, use the PdfViewer.HighlightedFormFieldColor property.

The image below shows a form field highlighted with a red color.

Change Form Field Value

To specify a new value of the form field, use the PdfFormFieldValueChangingEventArgs.NewValue property when the PdfViewer.FormFieldValueChanging event is handled.

After a form field value is changed, the PdfViewer.FormFieldValueChanged event is raised. The PdfFormFieldValueChangedEventArgs.FieldName, PdfFormFieldValueChangedEventArgs.OldValue and PdfFormFieldValueChangedEventArgs.NewValue properties allow you to obtain the field name, the field's previous value and new value.

When a form field receives or loses the input focus, the PdfViewer.FormFieldGotFocus or PdfViewer.FormFieldLostFocus event is raised. In one of these events you can obtain a field name using the PdfFormFieldFocusEventArgs.FieldName property.

Is this topic helpful?​​​​​​​