Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Do not print fields

Participant ,
May 12, 2021 May 12, 2021

I recall a few years ago, I made a PDF and made it so the fields did not print.

What I want; If the user fills out the form on the PC, then print it, all the user data shows up.

 

If they just print the form to complete by hand, I do not want fields to show up.

 

Does that sound like a javascript thing?

TOPICS
Create PDFs , JavaScript , PDF forms , Print and prepress
2.4K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
2 ACCEPTED SOLUTIONS
Community Expert ,
May 12, 2021 May 12, 2021

If the fields are empty, why does it matter if they are printed out? Or do they have a fill color that blocks lines for text to be filled-in manually, or something like that?

View solution in original post

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 12, 2021 May 12, 2021

You can select multiple fields at once and edit the border color for all of them at the same time.

 

What you're describing is possible with a script, but I'm just not sure it's needed. If you do want to do it you would need to check the values of all fields (under the document's Will Print event), and if they are all empty, set them as hidden, then use the Did Print event to set them back as visible.

View solution in original post

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 12, 2021 May 12, 2021

If the fields are empty, why does it matter if they are printed out? Or do they have a fill color that blocks lines for text to be filled-in manually, or something like that?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
May 12, 2021 May 12, 2021

I suppose you have a point. Although this is a table, which already has a border, so looks chunky. If its completed first then printed, not so bad. But to just print it and having to write in the area with a pen...may be a challenge to some, and would not look the best.

I think I could go to properties and set each field to no border, but there are 30-40 fields each of the 2 forms.

So I was looking for a way to maybe, If any field is copmplete, print everything. If no fields are complete on printing, dont print the borders.

I may have to re-think this.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 12, 2021 May 12, 2021

You can select multiple fields at once and edit the border color for all of them at the same time.

 

What you're describing is possible with a script, but I'm just not sure it's needed. If you do want to do it you would need to check the values of all fields (under the document's Will Print event), and if they are all empty, set them as hidden, then use the Did Print event to set them back as visible.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 12, 2021 May 12, 2021

Another option is to add a (non-printing) button to the form that will do it, so the user can always have the option to print a blank version of the form, if they wanted to.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
May 12, 2021 May 12, 2021
LATEST

A button would not do. Already limited space. Its a gov form, they need simple. LOL

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines