Form data
Complete and export the form
Review the partner onboarding form, edit its text fields, dates, drop-downs, and check boxes, then inspect the structured data or download a flattened PDF.
Two outputsData or finished document
Keep values structured for application logic or flatten them into a PDF.
FORM
Structured resultCurrent form values
Each value retains its field identity and type.
Ready to tryUse the controls above to interact with this demo.
What this demonstrates
Export completed form values
Read all text fields, check boxes, drop-downs, and date values as structured JSON, or flatten the completed values into a downloadable PDF.
API used
TXDocumentViewer.forms.getValues
Key members
The forms collection returns values independently from the visual document, which is useful for validation, storage, and export.
const values = TXDocumentViewer.forms.getValues();
output.value = JSON.stringify(values, null, 2);
How it works
The Razor helper prepares the browser viewer and its document. Demo-specific JavaScript uses the public TXDocumentViewer API and remains encapsulated with this demo.
NuGet packages
Displays supported document and PDF formats in the browser.
dotnet add package TXTextControl.Web.DocumentViewer --version 34.2.0
Source files
See the implementation
The view, browser behavior, assets, and controller are encapsulated in Demos/DocumentViewer/FormFields/ExportValues.