These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Hide Field Contents

bctflex
Registered: Aug 8 2008
Posts: 37

How can I hide the contents of a Text Field (SSN). For example, (XXX-XX-1234) when the PDF is viewed on Screen but allow the field to Print ?

Thanks

thomp
Expert
Registered: Feb 15 2006
Posts: 4411
For this you really need two fields. One that is set to Print Only and displays the full SSN and one that is set to screen only and displays the altered number. The details of how you do this are different depending on the forms technology used. Is this an Acrobat or LiveCycle form?

Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]

The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/]http://www.adobe.com/devnet/acrobat/[/url]

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

bctflex
Registered: Aug 8 2008
Posts: 37
Hello,

Yes this is a LiveCycle Form (8.0)
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
In LiveCycle you'll need to set Give both fields the same name and set them to Global Binding. To get the Print display, set the "Display Pattern" on that field. This pattern is what's called a Picture Clause and there is a document all about it. You'll need to do some reading and experimentation to get the right pattern. You can find the document here.

http://partners.adobe.com/public/developer/xml/index_arch.php

It's at the bottom of the page.

Once you get the fields to enter and display properly, then set the Presence property on the fields to get the PrintOnly and Screen only view


Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]

The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/]http://www.adobe.com/devnet/acrobat/[/url]

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script