Skip to main content
Inspiring
October 11, 2016
Question

Obscuring 4 digit number field with asterisks

  • October 11, 2016
  • 5 replies
  • 765 views

I have seen similarly asked questions about obscuring ssn fields, but my question is about osbcuring a PIN field. I'm creating an interactive enrollment form that will auto populate other fields by means of scripting based on the four digit PIN the user enters at the beginning of the form. The 4 digit PIN serves as the trigger. Once the PIN is entered, it shows the user what his current benefit enrollment elections are and then he can continue to fill out the rest of the form for the new year.

I would like for the entry of that PIN to be replaced with **** as the user types or changes to **** once the user presses the enter key.  I'm fine with either action. I'm still very new to actions in Acrobat and Javascript, so please dumb-down your answer for me. Thanks mucho!

This topic has been closed for replies.

5 replies

Inspiring
October 12, 2016

Thank you for all of the replies, but it doesn't seem to answer my question on how to change the entry to 4 asterisks with Javascript.  Can someone send me the script on how to do this, please?

Are you saying if I set the field to a password that the field properties has a way to change it to ****?   I'm confused.

try67
Community Expert
Community Expert
October 12, 2016

Yes, if you set the Password option the value of the field is automatically displayed (NOT converted) as asterisks.

JR Boulay
Community Expert
Community Expert
October 12, 2016

Hi.

Beware that the data in a "password" field are not exported with other data when the form is submitted.

Acrobate du PDF, InDesigner et Photoshopographe
try67
Community Expert
Community Expert
October 12, 2016

Please keep in mind this a NOT a secure way of hiding the information. Anyone with access to the file would be able to easily extract the actual PIN number from it.

Inspiring
October 12, 2016

Set the field to be a password.