PDF Editing Issues

Mask Text Input in an Adobe Acrobat PDF Form

Camila MilosovichCamila Milosovich Nov 19, 2026 868 views

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.

Mask Text Input in an Adobe Acrobat PDF Form
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.
Before you start

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.

Solution 1Recommended

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.

1
Open the form editor

In Adobe Acrobat, open the PDF and select All tools > Prepare a form.

2
Change the field setting

Double-click the text field, open the Options tab in its properties, and select Password.

3
Remove the overwriting script

In the field properties, review the Actions and related script settings and remove any custom code that replaces the entered text with masking characters.

4
Test entry and submission

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.

Use an Acrobat Password Field to Mask Input
Check how sensitive data is handled: Masking only conceals characters on screen; it does not by itself secure submission or storage. Password-field behavior can vary by viewer, so verify the full workflow before relying on it.
Free Microsoft Office alternative

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.

Open and work with PDF documents alongside other office filesCompatible with Microsoft Word, Excel, and PowerPoint formats, including DOCX, XLSX, and PPTXFamiliar interface makes the transition from Microsoft Office easierFree and lightweight for everyday document work
microsoft office alternative - wps office

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.