How to Convert Text to Title Case in Adobe Acrobat Forms
Question details
The user needs a way to automatically convert arbitrary text inputted into an Adobe Acrobat PDF form field into Title Case, capitalizing the first letter of every word.

- Product
- Adobe Acrobat
- Device & OS
- not provided
- Scenario
- Creating or editing an interactive PDF form where specific text fields require standardized Title Case formatting for user-submitted text.
- Observed behavior
- Adobe Acrobat lacks a native, built-in text formatting option for Title Case, requiring users to manually format the text or implement a custom script to automate the process.
Ensure you are using Adobe Acrobat Pro to edit the PDF, as the free Adobe Acrobat Reader does not allow you to enter 'Prepare Form' mode or add document-level JavaScript to form fields.
Use Custom JavaScript for Title Case Conversion
Add a custom JavaScript function to your PDF form's format script to automatically capitalize the first letter of each word inputted by the user.
Because Adobe Acrobat does not provide a native 'Title Case' text format option in its field properties, you must use a short JavaScript code snippet. This script splits the entered text into individual words, capitalizes the first letter of each, and makes the rest of the letters lowercase.
Open your PDF document in Adobe Acrobat Pro, click on 'Tools' in the top menu, and select 'Prepare Form'.
Right-click the specific text field you want to format and select 'Properties' from the context menu.
Go to the 'Format' tab. From the 'Select format category' dropdown menu, choose 'Custom', and then click the 'Edit' button next to 'Custom Format Script'.
Type or paste the following script into the editor: function toTitleCase(s) { var words = s.split(' '); for (var i in words) words[i] = words[i].charAt(0).toUpperCase() + words[i].substr(1).toLowerCase(); return words.join(' '); } event.value = toTitleCase(event.value);
Click 'OK' to save the script, then click 'Close' on the Properties window. Click the 'Preview' button at the top right to test the field. Type in lowercase words, and they will automatically convert to Title Case when you click out of the box.

Use a Dropdown Menu for Strict Formatting
If arbitrary text entry causes too many formatting errors or acronym issues, use a dropdown list with pre-formatted options instead of a text field.
Edit and Manage PDF Forms Easily with WPS Office
Looking for an easier way to manage PDF documents and edit text? WPS Office provides a comprehensive, user-friendly PDF editor that lets you fill forms, edit text directly, and manage document layouts without dealing with complex coding or scripting.
- 1. Download and Install: Download and install WPS Office for free on your computer.
- 2. Open Your PDF: Launch WPS PDF and open the document or form you want to modify.
- 3. Fill or Edit: Navigate to the 'Form' tab to interact with form fields, or use the 'Edit' tab to directly modify existing PDF text to your preferred case formatting.
- 4. Save Your Changes: Click 'Save' to preserve your perfectly formatted PDF document.

Frequently Asked Questions
Why doesn't Adobe Acrobat have a native Title Case option?
Adobe Acrobat provides basic text formatting options like uppercase and lowercase but omits a native Title Case feature because true Title Case rules are complex. Standard rules often require keeping conjunctions, prepositions, and specific acronyms in different cases, which is difficult to automate natively without advanced scripting.
How do I prevent the JavaScript from changing acronyms like 'USA' to 'Usa'?
To preserve uppercase acronyms, modify the provided custom JavaScript by removing the '.toLowerCase()' method from the script. Be aware that doing this will prevent the script from fixing incorrectly capitalized letters within standard words.
Does this JavaScript formatting apply instantly as I type?
No. When applied as a Custom Format Script, the text will convert to Title Case immediately after you finish typing and either click outside the text field or press the 'Tab' key to move to the next field.




