Can You Collapse Sections or Questions in a Smart PDF?
Question details
Determine whether PDF sections, questions, or text can be dynamically expanded and collapsed like content in an interactive web page.

- Product
- Device & OS
- not provided
- Scenario
- Creating or interacting with an interactive PDF document where content needs to be hidden or shown on demand.
- Observed behavior
- Standard PDF forms have fixed layouts that do not automatically reflow or collapse space when content is hidden.
Identify whether you are working with a standard PDF or a dynamic XFA form, as standard PDFs do not support dynamic page reflow when content is hidden.
Use Show/Hide Actions for Form Fields
While you cannot reflow the entire page layout, you can set interactive buttons to show or hide specific form elements in a standard PDF.
Standard PDFs rely on absolute positioning. This means you can make a field invisible, but the empty space it occupied will remain. Using the Show/Hide action is the best workaround for standard PDF formats.
Open your advanced PDF editor and navigate to the Form creation tools.
Add a Button field to your document that users will click to toggle the visibility of a section.
Right-click the newly created button, select Properties, and go to the Actions tab.
Set the action trigger to 'Mouse Up' and select 'Show/hide a field' from the available actions list.
Choose the specific form fields or text boxes you want to collapse or expand, confirm your choices, and save the document.

Use Dynamic Forms for Fully Collapsible Sections
For sections that completely collapse and shift the text below them (reflow), you must use specialized dynamic form solutions rather than standard PDFs.
View and Manage PDF Forms with WPS Office
WPS Office provides a comprehensive suite of PDF tools to easily view, edit, and fill out standard PDF forms. It serves as a lightweight, highly compatible solution for everyday document needs.
- 1. Open WPS Office: Launch the WPS Office application on your computer and click on the 'PDF' tab.
- 2. Load your PDF: Select 'Open' to load your existing PDF document or interactive form.
- 3. Interact with Forms: Navigate to the 'Form' or 'Fill & Sign' tab to fill out text fields, check boxes, and interact with visible elements.
- 4. Save and Share: Once your document is complete, click 'Save' or export it to securely share with others.

Frequently Asked Questions
Why doesn't the text move up when I hide a section in my PDF?
Standard PDFs have a fixed, static layout. Hiding a form field simply makes it invisible, but it leaves a blank space because the document cannot automatically reflow the remaining text to fill the gap.
Can I make an interactive accordion menu in a standard PDF?
No, true accordion menus that push content down when expanded are not supported in standard PDFs. This functionality is typically reserved for HTML web pages or dynamic XML-based (XFA) forms.
Are dynamic XFA forms supported on mobile devices?
Most mobile PDF viewers and web browsers do not support dynamic XFA forms. Users opening these files on a phone will often see a 'Please wait...' error message asking them to use a compatible desktop PDF viewer.




