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

Captions - Can I NOT print them, visible on-screen only?

poregon
Registered: Oct 27 2008
Posts: 80
Answered

Pretty straight ahead - I can't find anything in the Help files on this, and I don't see anything addressing it here (yet). :)

I have a letter laid out that the department can put name/address info in the fields.

I want those fields to print, but the captions to NOT print.

Thanks

Pat

poregon
Salix, Iowa

oksana77
Registered: Apr 24 2009
Posts: 89
If you are using Acrobat Professional than in the Print menu, you can choose "Form Fields Only" for Comments and Forms.
poregon
Registered: Oct 27 2008
Posts: 80
I'm using LiveCycle Designer 8.2

poregon
Salix, Iowa

radzmar
Expert
Registered: Nov 3 2008
Posts: 1202
You can use the parameter relevant for this.

Textfield1.relevant = "-print";

radzmar
LoveCycle Blog
Documents you need:
LiveCycle Designer ES2 Docs

poregon
Registered: Oct 27 2008
Posts: 80
Thanks, Radzmar -
Can you expand your answer a little?
Is this an "event" Javascript - and if so what event?
or....is it XML source code?

Here's what I tried

form1.Subform1[0].CurrentDate::initialize - (JavaScript, client)
xfa.host.CurrentDate.relevant = "-print";

Obviously, my guess here is wrong

Again, I want the field to print, but I just don't want the caption to print.

Pat

poregon
Salix, Iowa

radzmar
Expert
Registered: Nov 3 2008
Posts: 1202
Ok, let's return to this topic.
Now I know, that a caption is a label of a text field, not something like a subtile, as my translator means ;-)
Sorry for this misunderstanding.

The caption can't be set to screen only, because it's part of the form field.
To make only the caption invisible, you need a trick.
Changing the font color to white before you print is a simple solution for this task.
Therefore you can use the PrePrint and PostPrint events of the form itself or any other form object.

//PrePrint scriptingform1.Subform1[0].Name[0].caption.font.fill.color.value = "255,255,255"  //change font color to white

//PostPrint scriptingform1.Subform1[0].Name[0].caption.font.fill.color.value = "255,0,0"  //change font color back to red

radzmar
LoveCycle Blog
Documents you need:
LiveCycle Designer ES2 Docs

poregon
Registered: Oct 27 2008
Posts: 80
Perfect. Thanks, again, Radzmar - you're the best.

poregon
Salix, Iowa

scderacjor
Registered: Mar 27 2009
Posts: 123
An even easier trick that doesn't require scripting is to have a text field with the "caption" as the default text.

Example: A user is supposed to input their name into the text field. Set the caption (Layout) to none. Type what would have been your caption into the default area. When a user goes to fill out the form, they will just replace the text with their own.

To make this stand out for a user, you can use scripting such as highlighting borders when mouse enters and exit. I like to set the text color (initialize function) to red, and after click have it change to black.
poregon
Registered: Oct 27 2008
Posts: 80
Thanks scderacjor! I'll do both!

poregon
Salix, Iowa

scderacjor
Registered: Mar 27 2009
Posts: 123
Another things you can do to make things easier for form fillers is take advantage of the tool tips. This can be found under the "Accessibility" tab when the text field is select. Whatever text you enter in the tool tip box will appear when a user hovers over the text field. I use this for a more in depth description of what is expected to be entered into the text field and what format to use.

To be even MORE specific, you can can under the "Object" tab, "Values" and set the text field to recommended. This gives you the "Empty Message" box. If a user deletes the default message from the text field and tries to leave it blank, you can enter a personalized message such as "Please do not leave this field blank. Enter your name here."
When a user is filling this out and tries to leave a recommended box blank, a box will pop up with your message.
If they do not fill out the field at that time, the hover message will remind them what is expected for this text field.


See, you don't need to mess with captions at all! :)