How to Preserve Layer Visibility When Submitting a PDF Form
Question details
The user needs to submit form data from a layered PDF while retaining the visible layer context so the recipient sees both the fields and the selected visual section.

- Product
- PDF Editor
- Device & OS
- not provided
- Scenario
- Submitting completed data from a layered PDF form to an external recipient or department.
- Observed behavior
- Standard form-data submissions (FDF or XFDF) strip the optional content group or layer visibility context, leaving only the filled fields without the selected visual section.
Check with the receiving department to confirm whether their system requires pure extracted data (FDF/XFDF) for a database, or if they can accept a full PDF file.
Submit the Document as a Complete PDF File
Submitting the entire document instead of just the form data ensures that all layer visibility settings are preserved exactly as they appear on your screen.
A standard form submission button often sends only the raw text entered into fields. By bypassing this and sending the complete PDF file, you retain all optional content groups and visible layers.
Open your layered PDF form in your PDF editor, activate the correct layers, and fill out all necessary fields.
Instead of clicking the built-in 'Submit' button configured for form-data extraction, go to the File menu and select 'Save As' to store a completed copy on your local drive.
Attach the saved .pdf file to an email or upload it directly to your department's portal to ensure all context remains intact.

Flatten the PDF Layers Before Submission
Flattening merges all visible layers into a single static background, guaranteeing the recipient sees exactly what you intended.
Use JavaScript to Record Layer Selection
If you must submit only form data (FDF/XFDF formats), you can use a hidden text field and custom JavaScript to pass the layer selection state to the receiver.
Edit and Manage PDF Forms with WPS Office
WPS Office provides comprehensive PDF tools allowing you to view, fill, flatten, and share complex layered PDF forms. It ensures your document formatting and layered content remain intact across different platforms.
- 1. Open the layered PDF: Launch WPS Office and open your layered PDF form using the built-in PDF viewer.
- 2. Fill the form fields: Input your data into the interactive fields while ensuring the correct layer views are active.
- 3. Save or flatten: Use the standard 'Save' function to lock in layer visibility as a complete PDF, or use the print-to-pdf feature to flatten the layers entirely.
- 4. Share with recipients: Send the completed, standard PDF file directly from the WPS interface to your receiving department.

Frequently Asked Questions
Why does my PDF form lose its layout when I click submit?
If the form uses a submit button configured to send only form data (such as FDF or XFDF formats), it extracts the field text but strips away the document structure, including layer visibility and optional content groups.
What is the difference between submitting a full PDF and submitting FDF data?
Submitting a full PDF sends the entire file, including all text, layers, graphics, and filled fields. Submitting FDF data only transmits the raw text entered into the interactive boxes, which is efficient for databases but offers no visual context.
Can I make PDF layers permanent before sending the file?
Yes, you can make layers permanent by 'flattening' the PDF. This process merges all visible layers, annotations, and filled fields into a single static document layer that cannot be toggled on or off.




