Fix Missing Field JavaScript and Multiline Options in Adobe Acrobat Pro
Question details
The user needs to locate a form field's custom JavaScript and enable multiline input in Adobe Acrobat Pro DC.

- Product
- Adobe Acrobat Pro DC
- Device & OS
- not provided
- Scenario
- Editing a PDF form field with a custom keystroke script and multiline text input.
- Observed behavior
- The expected field script or Multiline option is missing or unavailable.
Open the PDF in Adobe Acrobat Pro DC and identify the field you want to edit. Check that the PDF's security settings allow form editing under File > Properties > Security.
Check the Correct Form Field and JavaScript Event in Acrobat Pro
Use Prepare a Form to inspect the selected field's type, scripts, and multiline settings.
In Acrobat Pro, open Tools > Prepare Form, select the PDF if prompted, and start editing the form.
Double-click the intended field to open Properties. Confirm that it is a text field; Multiline is a text-field option and may not appear for other field types.
In Properties, open the Format tab and select Custom. Check Edit next to Custom Keystroke Script to view or enter the script, then confirm your changes.
If the expected script is not under Format, inspect the Calculate tab for a custom calculation script and the Actions tab for a Run a JavaScript action. Save the script in the event intended for it.
Open the text field's Options tab and select Multiline. If it is unavailable, review the other field settings and the field type; then close Properties and save the PDF.
Preview or reopen the saved form, enter text across multiple lines, and test the keystrokes that the script is supposed to handle.

Work with PDF Files and Office Documents in WPS Office
WPS Office is a free, lightweight alternative with a familiar interface for working with PDFs and Office documents. Its format compatibility makes it easy to bring existing files into your workflow. Acrobat-specific form JavaScript and field settings must still be checked in Acrobat.

Frequently Asked Questions
Where is the custom keystroke script in Acrobat Pro?
Open Tools > Prepare Form, double-click the field, and select Format > Custom. Choose Edit next to Custom Keystroke Script.
Why can't I see the Multiline option?
In Prepare Form, double-click the field and check its type. Multiline is available for text fields on the Options tab, not for every form field type.
Where else could my field JavaScript be saved?
Check the field's Calculate tab for a custom calculation script and its Actions tab for a Run a JavaScript action. A script appears under the event where it was saved.
What should I check if I can't edit the form?
Confirm that you opened the PDF in Acrobat Pro and selected Tools > Prepare Form. Then check File > Properties > Security to see whether the document permits form editing.




