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

hide button for print


Level 5

Hi All.

In my form I have a button and I would like to hide it when I print the form. I select the button and go to the Object > Field tab. Then in a presence dropdown select 'Visible (screen only)'. But when I print the form the the button was printed. How to hide the button for print and show for screen?


2 Replies


Level 10

The option you set in the properties should work as expected. Not sure why the button is getting printed.

Try placing the below code in the prePrint event of the button you want to hide in printing.

     this.relevant = "-print";




Level 5

Hi Srini.

Thanks it works.