Expand my Community achievements bar.

July 31st AEM Gems Webinar: Elevate your AEM development to master the integration of private GitHub repositories within AEM Cloud Manager.

Set object to precence = 'visible' both in screen and print modes

Avatar

Level 4

Hi folks,

In my form, I have a check box which toggle visabillity of some table object.

i'm using 'visible' and 'hidden' values in the presence propery for the toggling.

It's all work fine except when i'm printing the form - the "visible" table is not printed.

How can I make it visible also for print mode?

Yair

1 Reply

Avatar

Level 10

If the table is visible, then it should print unless you have done one of the below..

1) Setting the presence property of the table to visible(Screen Only)

2) write code in prePrint event to hide the table.

If you have not done any of the above then try placing the code in the prePrint event to make the Table visible.

     You can place in the CheckBox prePrint event with JavaScript as language.

     //Check if the Check box is checked.

     if(CheckBox1.rawValue =="1")

          Table1.presence = "visible";

Thanks

Srini