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

Forms - Disable printing of non-chosen checkbox fields

lonestarcj
Registered: Jul 9 2007
Posts: 2

I have a form designed with 5 checkboxes. I want the ability for the end user to choose any or all of the five checkboxes however, if they only choose the first and the fourth items listed on the checkbox list, I do not want the second, third, or fifth item to print. How can I get the form to NOT print those items not enabled, and is there a way to close the gap of white space left when those items do not print? Thank you for any assistance you can offer. (I have Acrobat 8.0 Pro and started this form in Livecycle however, I don't care if it's Adobe form or Livecycle if someone can help me with this!).

My Product Information:
Acrobat Pro 8, Windows
pdftrainer
Expert
Registered: Dec 14 2005
Posts: 180
You'll need to write an if/then script, which is too long to get into here.

The key in Designer would be to use a formcalc script like:

YourCheckBoxName.relevant = "-print"for each unselected field. "-print" seems to be Designer formcalc for "visible but doesn't print."

A certified expert on Adobe Acrobat, Carl Young is an Adobe Acrobat and LiveCycle Designer trainer and consultant based in Phoenix. He is the producer of the [link=http://www.pdfconference.com/]PDF Conference[/link].

Patch
Registered: May 12 2009
Posts: 3
This seems to work:

TURN PRESENCE TO SCREEN ONLY

IN THE "CLICK" EVENT

if (rawValue == true) {
CheckboxName.presence = "visible";
CheckboxName.relevant = "";
}
else {
CheckboxName.presence = "visible";
CheckboxName.relevant = "-print";
}