Mask Text Input in an Adobe Acrobat PDF Form
Question details
The user wants to mask text as it is entered in a PDF form field while retaining the original value for submission or later display.

- Product
- Adobe Acrobat PDF forms
- Device & OS
- not provided
- Scenario
- A PDF form needs to conceal typed input without replacing the original text with masking characters.
- Observed behavior
- The proposed JavaScript overwrites the field value, which can prevent the original text from being submitted or displayed later.
Open the form in Adobe Acrobat and identify the text field and its submission method. Test the finished form in the PDF viewer recipients will use, since form and script support can vary.
Use an Acrobat Password Field to Mask Input
Use the built-in Password setting to conceal characters without writing a script that replaces the field value.
In Adobe Acrobat, open the PDF and select All tools > Prepare a form.
Double-click the text field, open the Options tab in its properties, and select Password.
In the field properties, review the Actions and related script settings and remove any custom code that replaces the entered text with masking characters.
Close the field properties, preview the form, enter a test value, and use the form's Submit button. Check the receiving system to confirm whether it receives the original value.

Review the Submission Workflow Before Displaying the Original Value
Use this approach when the original input must be shown after submission or the password field does not submit as expected.
View and Edit PDF Documents with WPS Office
WPS Office is a free, lightweight, easy-to-use Office alternative with a familiar interface. It supports common Microsoft Office formats for seamless migration and offers PDF tools, though it does not fix Acrobat-specific form scripting or password-field behavior.

Frequently Asked Questions
How do I hide characters in an Acrobat text field?
In Acrobat, choose All tools > Prepare a form, double-click the text field, and select Password on the Options tab.
Why does my masking script lose the original text?
If the script replaces the field value with masking characters, the original value is overwritten. Use the field's Password option instead of changing the value to asterisks.
Will a password field always submit the original value?
Do not assume it will work in every viewer or submission setup. Enter a non-sensitive test value, submit the form, and check what the receiving system gets.
Can I use an onkeyup handler in an Acrobat form?
Browser-style onkeyup handlers are not a reliable Acrobat JavaScript method. For simple masking, use the text field's Password option in Prepare a form.
Is a hidden PDF field a secure place to store the original value?
No. A hidden field conceals data from normal view but is not secure storage. For sensitive values, use a protected submission and storage workflow in the receiving application.




