Set Up Keyboard Shortcuts for Importing Data in Acrobat Prepare Form
Question details
Users need a quick keyboard shortcut sequence to open the Prepare Form menu, select Import Data, and choose a TXT file type for faster batch processing.

- Product
- Adobe Acrobat
- Device & OS
- Windows
- Scenario
- Processing batches of PDF forms where repetitive data import from TXT files is required.
- Observed behavior
- Acrobat lacks a built-in single keyboard shortcut for the complete sequence of importing specific form data files via the Prepare Form menu.
Ensure you have administrative privileges on your computer, as adding custom menu commands in Acrobat requires saving a script file into the application's installation directory.
Create a Custom JavaScript Menu Command
Since Acrobat does not provide a native shortcut for this multi-step sequence, you can write a folder-level JavaScript to create a custom menu item that acts as a keyboard accelerator on Windows.
Acrobat supports adding custom tools via JavaScript. By using the app.addMenuItem method, you can add an action directly to your interface. On Windows, adding an ampersand (&) in the item name creates a keyboard accelerator that can be triggered using the Alt key.
Navigate to the Acrobat installation directory on your Windows PC. The path is typically 'C:\Program Files\Adobe\Acrobat DC\Acrobat\JavaScripts'.
Open a plain text editor like Notepad and create a new file named 'importDataMenu.js'.
Insert the script: `app.addMenuItem({ cName: "Import &TXT Data", cParent: "Edit", cExec: "app.execMenuItem('ImportFormData');" });`. The ampersand before the 'T' assigns the Alt+T accelerator for this new menu item.
Save the '.js' file into the JavaScripts folder and restart Adobe Acrobat to apply the changes.
Open your PDF form. Press the Alt key to activate the menu accelerators, navigate to the Edit menu, and press 'T' to immediately trigger the data import dialog.
Streamline Your Document Workflows with WPS Office
If complex scripting and limited shortcut customizations in heavy PDF editors are slowing down your productivity, consider trying WPS Office. It provides an intuitive, lightweight, and user-friendly PDF toolkit integrated with a complete office suite, making document management and form filling seamless without advanced configurations.

Frequently Asked Questions
Why doesn't Acrobat have a default shortcut for importing PDF form data?
Acrobat natively maps keyboard shortcuts to frequent, general editing tools. Deeply nested actions like importing data in the 'Prepare Form' menu are considered specialized batch tasks, often requiring custom scripts or the Action Wizard to automate.
Can I use the Action Wizard instead of JavaScript for batch importing?
Yes. If you are using Acrobat Pro, you can use the Action Wizard (Tools > Action Wizard) to create a custom sequence that processes multiple forms, though you will still need to define the import parameters for each step.
What file formats can I import into a PDF form?
Acrobat typically supports importing form data from FDF, XFDF, XML, TXT, and CSV file formats, provided the data fields match the internal naming structure of the PDF form exactly.
How do keyboard accelerators work in Windows software?
In Windows, pressing the 'Alt' key reveals underlined letters on the application's menu bar. Pressing the corresponding letter activates that menu or command. Custom Acrobat scripts can leverage this by adding an ampersand (&) before a letter in the script's menu name.




