Expand my Community achievements bar.

SOLVED

Script Logic Printing Form (image included)

Avatar

Level 2

Hello and thank you in advance for your help!

Here is what I need accomplished:


I have a Yes/No radio button with a separate textfield (called "txtEmailPublished") to the left of it.

When the user clicks the Yes button, the textfield should be visible on the PDF as well as APPEARS on the PRINTED PAGE when user uses the print button to print it.

When the user clicks the No button, the textfield should be visible on the PDF but DOES NOT APPEAR on the PRINTED PAGE when user uses the print button to print it

Button.png

Here is what my issue is:

When I set the textfield's .relevant = "+print" and the .presence = "visible" properties, the textfield disappears. I have been playing around with several options (within the radio buttons and print button itself) but can't seem to get it the way the Client needs it to be.   Any help would be appreciated it!

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi,

I think you want

txtEmailPublished.relevant = "-print";

in you No radio button click event and

txtEmailPublished.relevant = "";

in your Yes radio button click event

(both are JavaScript)

Regards

Bruce

View solution in original post

4 Replies

Avatar

Correct answer by
Level 10

Hi,

I think you want

txtEmailPublished.relevant = "-print";

in you No radio button click event and

txtEmailPublished.relevant = "";

in your Yes radio button click event

(both are JavaScript)

Regards

Bruce

Avatar

Level 2

Hi Bruce,

Thanks for the reply! 

I did the following script as above. It "works" but doesn't "work" because I need the text to stay on the visible screen even when "no" is selected but not allow the textfield to appear on the printout. Does this make sense?

When I click "no" it doesn't appear on the print preview (which is correct), however if I click "Cancel" on the print preview it still appears "hidden" on the PDF. I would like it to "appear" on the PDF if I hit cancel.

Thanks!

Avatar

Level 10

Hi,

I don't see that behaviour ... or maybe I am misunderstanding, here is a sample with the code I suggested, https://workspaces.acrobat.com/?d=bVmIx*0-TGEw*4fPxQkoVw

Regards

Bruce

Avatar

Level 2

Hi Bruce,

I really appreciate your help and the example you provided. I don't know what was going on with my form. I copied your example into my form and it worked fine!

Thanks again for all your help!