Livecycle static pdf wont change presence from visable (Screen only) to Visable and viceversa

New Here ,
Apr 27, 2021 Apr 27, 2021

Copy link to clipboard

Copied

Hi

Scenario:
I want to have a button to change presence and relevant so a field is printable but if this button isnt pushed it should not be printable.

 

I tried using this script below but they dont work in a static PDF.

OBJ.presence = "visible"; OBJ.relevant = "-print";  (shouldnt be seen when printing)

OBJ.presence = "visible"; OBJ.relevant = "+print"; (  should be seen when printing)

also tried just OBJ.presence = "visible"; when default was Visible (Screen only)

 

I tried combining different variants but it seems like Adobe ignores them and keeps the standard. presence you choose in the dropdown.

Leif5C1C_0-1619532782474.png

Thankful for any suggestions.
Leif

 

TOPICS
Create PDFs, General troubleshooting, How to, JavaScript, PDF forms

Views

14

Likes

translate

Translate

Translate

Report

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
no replies

Have something to add?

Join the conversation