Log In
Home
Support
Demos
Documentation
Blogs
Training
Webinars
[Expand]General Information
[Collapse]WinForms Controls
  Prerequisites
 [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]Pivot Grid
  [Expand]Tree List
  [Expand]Chart Control
  [Expand]Diagrams
  [Expand]Gauges
  [Expand]Map Control
  [Expand]Scheduler
  [Expand]Spreadsheet
  [Expand]Rich Text Editor
  [Expand]Spell Checker
  [Expand]Form Layout Managers
  [Expand]Navigation Controls
  [Expand]Printing-Exporting
  [Collapse]PDF Viewer
   [Expand]Getting Started
   [Collapse]Interactive Forms
     Interactive Form Filling
     Export and Import of Interactive Form Data
   [Expand]Navigation
   [Expand]Interactivity
    Deployment
   [Expand]Examples
   Reporting
  [Expand]Snap
  [Expand]TreeMap 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]Document Server
[Expand]Reporting
[Expand]Report Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]CodeRush
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

Interactive Form Filling

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

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.

Customization

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.

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.

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

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.

How would you rate this topic?​​​​​​​