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

Printing Issue: Print specific pages depending on field value

alfette
Registered: Jun 29 2010
Posts: 13

Dear all,
I have a static form: I imported an InDesign PDF to LCD and put lots of checkboxes, textfields an radiobuttons on it. The form consists of three pages.

My question: Is the following thing possible?
If the user sets a specific radiobutton on page one to "on" it is not necessary to print page three. I don't use a print-button, the user prints the form by pressing ctrl+p. Is it possible to specify, that if that specific radiobutton is set on "on", only the first 2 pages are printed?

I know - normally it would be good to use dynamic forms for such a regard. But because I have this very tricky and elaborated corporate design to use, I had to design the form in indesign and import it to LCD...

Any help is very very much appreciated!
Thanks a lot in advance and kind regards from Cologne
Alfette

My Product Information:
LiveCycle Designer, Windows
radzmar
Expert
Registered: Nov 3 2008
Posts: 1202
Hi,

you can set a property of the page to exclude it from printing.

Page3.relevant = "-print";

radzmar
LoveCycle Blog
Documents you need:
LiveCycle Designer ES2 Docs

alfette
Registered: Jun 29 2010
Posts: 13
Hi Radzmar,
thanks for your quick answer.
Because I am a very newbee to LCD, I don't really understand, how your suggestion solves my problem: I only want to exclude page 3 from printing, if the form user has set a specific radio button on page 1 to yes / on/ true... That means: Only when this radiobutton is checked, I want to exclude Page 3 from printing.

Do I have to add a script/event directly to this button?

I am very sorry to ask this beginners question, but I can ensure, that I searched very carefully this forum (which helped me a lot) and also studied my LCD book without getting any answer.

Best wishes, Alfette
radzmar
Expert
Registered: Nov 3 2008
Posts: 1202
Hi,

well my fist suggestions has a dumb side effect, that will cause blank pages so you better leave this idea.
But, I have another one.

Select your page 3 and open the prePrint:event in the script editor to add this script.

//The reference to your check box may be different!if(Formular1.Seite1.TeilformularXYZ.Kontrollkästchen.rawValue == 1){this.presence = "hidden";}

Then select the postPrint:event of page 3 and add this script.
this.presence = "visible";
Attention: You have to select JavaScript as language for the script editor!

radzmar
LoveCycle Blog
Documents you need:
LiveCycle Designer ES2 Docs

alfette
Registered: Jun 29 2010
Posts: 13
Hi,
thanks again!!!
Unfortunately I'm not able to get it to work.
I did the following:

 topmostSubform.Page3::postPrint - (JavaScript, client)this.presence = "visible";  topmostSubform.Page3::prePrint - (JavaScript, client)if( topmostSubform.Page1.Trennungsgeld.Nein.rawValue == 1){this.presence = "hidden";}

Do I make any mistakes?
Best regards, Alfette
radzmar
Expert
Registered: Nov 3 2008
Posts: 1202
Well,

this method will only work for dynamic forms (XFA forms) not on static ones.
You will have to import your InDesign layout as dynamic PDF.

radzmar
LoveCycle Blog
Documents you need:
LiveCycle Designer ES2 Docs

alfette
Registered: Jun 29 2010
Posts: 13
Hi,
if I
1) start a new form (ctrl+n) and
2) choose the option "import PDF" and
3) choose the source of the PDF created by InDesign and
4) chooce the option "create interactive form with flexible layout"

then

I get such a destroyed form design that I can hardly imagine that it's still the same PDF we're talking about :-(

Letters are flying around, some typography is rasterised and some not - even within a word. Logos are rasterised in a very odd way.

So... Do you think there is no way to solve my problem with static forms?
Best regards, Alfette
radzmar
Expert
Registered: Nov 3 2008
Posts: 1202
No sorry.
You can't effect the printing properties if the users press "ctrl+p".
This will be only possible when the users use a method that you can control such as a button click event.

radzmar
LoveCycle Blog
Documents you need:
LiveCycle Designer ES2 Docs