Expand my Community achievements bar.

Radically easy to access on brand approved content for distribution and omnichannel performant delivery. AEM Assets Content Hub and Dynamic Media with OpenAPI capabilities is now GA.

New to this - hide print button

Avatar

Level 2

Hi all and sorry if this has been covered in other posts.

I have created a form using LivCycle Designer but I am a total novice when it comes to scripting. All I want to do is make it so that the printed form does not show the "print" button.

I seem to have created some code as follows but it's obviously not quite right:

form1.#subform[0].PrintButton1::click - (JavaScript, client)

xfa.host.print(1, "0", (xfa.host.numPages -1).toString(), 0, 1, 0, 0, 0);

Any help would be much appreciated.

Thanks

2 Replies

Avatar

Level 10

Hi Tim,

This is fairly straightforward and does not require scripting.

Select the print button and go to the Object > Field tab. There is a presence dropdown and you can select 'Visible (screen only)'. This will make the button visible on the screen, but will not print it.

Good luck,

Niall

Avatar

Level 2

That's great, thanks Niall. It's just knowing where to look!