How to Use Alphabetical Bullets in Acrobat Multiline Form Fields
Question details
The user wants to automatically append alphabetical labels, such as A), B), and C), to each line of a multiline response inside a PDF form field.

- Product
- Adobe Acrobat
- Device & OS
- not provided
- Scenario
- Creating an interactive PDF form where user input spanning multiple lines needs to be automatically formatted with sequential alphabetical bullets.
- Observed behavior
- Standard multiline PDF text fields do not natively auto-bullet lines with letters; a custom formatting script is required to parse the line breaks and assign characters.
Ensure you are using Adobe Acrobat Pro or a PDF form editor that supports custom JavaScript formatting, and verify that your target text field has the 'Multi-line' option enabled.
Apply a Custom JavaScript Format Script
Use Adobe Acrobat's built-in JavaScript formatting properties to automatically split the multiline text and prepend sequential letters to each line.
By utilizing a custom format script in the text field properties, the PDF can intercept the user's input, split it at every carriage return, and map an uppercase alphabetical character to each line using ASCII codes.
Open your PDF document in Adobe Acrobat, navigate to the 'Tools' menu, and select 'Prepare Form'. Right-click the multiline text field you wish to format and select 'Properties'.
In the Text Field Properties dialog, click on the 'Options' tab and ensure the 'Multi-line' checkbox is ticked. This allows users to press Enter to create new lines.
Click on the 'Format' tab at the top of the Properties dialog. Click the 'Select format category' dropdown menu and choose 'Custom'.
Click the 'Edit' button next to 'Custom Format Script' and paste the following JavaScript code: var myVar = 0; if (event.value != "") { event.value = event.value.split(/[\\n\\r]/g).map(function(a) { myVar = myVar + 1; return String.fromCharCode(64 + myVar) + ") " + a; }).join("\\n"); }
Click 'OK' to save the script, then click 'Close' to exit the properties window. Click the 'Preview' button at the top right to test the field; typing multiple lines will now automatically prepend A), B), C), etc.

Manage and Fill Interactive PDF Forms with WPS Office
WPS Office provides a highly capable PDF toolset that allows you to easily view, fill out, and manage interactive PDF forms while maintaining full compatibility with standard Adobe PDF formats.
- 1. Open Your PDF: Launch WPS Office and open your interactive PDF document using the built-in WPS PDF tool.
- 2. Fill the Form Fields: Click directly into the text fields, checkboxes, or dropdowns to fill out the form securely.
- 3. Edit Existing Text: If you need to change the PDF's structural text, click the 'Edit' tab to modify original paragraphs and layouts.
- 4. Save Your Document: Once completed, click the 'Save' icon or press Ctrl+S to save the filled document on your device.

Frequently Asked Questions
Why does the script fail to create a new letter when I press Enter?
If new letters aren't appearing, ensure you have checked the 'Multi-line' option in the text field's 'Options' tab. Without this enabled, Acrobat restricts the input to a single line, preventing the script from detecting line breaks.
Can I modify this script to use numbers instead of letters?
Yes. To use sequential numbers (1, 2, 3), replace 'String.fromCharCode(64 + myVar)' in the script with 'myVar'. This will map the current line count directly to the output without converting it to an ASCII letter.
Will this custom JavaScript work in web browsers or mobile PDF viewers?
Custom formatting scripts rely heavily on the Acrobat JavaScript engine. While fully-featured desktop editors like Adobe Acrobat and advanced PDF tools support them, many simplified web browser PDF viewers and basic mobile apps may fail to execute form-level formatting scripts correctly.




