Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list

Printing selected check boxes


Not applicable
I am creating a form where a user can check up to 20 check boxes... How can a make it so only the SELECTED/CHECKED check boxes get printed. I think i can make a hidden subform where as the boxes are checked it populated the name of that box... then make that hidden sub field visible only at print. Can anyone give some guidance, thanks!
4 Replies


Level 5
In the 'preprint' event of each checkBox use the following JavaScript.

if (this.rawValue == 0) { //not checked

this.presence = "hidden";


also use the following in 'postprint' event of each checkBox if you wish to make all those visible.

this.presence = "visible";


Not applicable
Thanks for the reply.. so if i had a check box call 'Network' the script should look like this?

if (network.rawValue == 0) { //not checked

Network.presence = "hidden";


And the object properties in the GUI editor should be 'visible'?


Level 5
The code I had in my reply is generalized code can be used with any checkBox irrespective of name. No customizations required to get what you need. In the code "this" references the object that code is associated with hence you do not have to specify the name of the object. So use the same code over and over with each check box as indicated.