Summary

This was a quick chat about how to use Dojo to hide the print button on your XPage when printing the Page.

Live Chat – 3rd November 2013

Guest:
I would like to use a Print button to print my page, whenever i use window.print print button also come in printing format.
 
John Jardin:
Good day. So, are you saying that the window.print works, but you don’t like the output format of the printed Web Page?
 
Guest:
I just want to remove printing button on my printing format page.
 
John Jardin:
If your print button has a unique class name like <button class=”printButton”></button>…then you could do something like…
 
You can also use the button’s ID parameter, but it could cause confusion if that id is auto generated by XPages, as it could change.
 
Guest:
Thanks a lot.
 
John Jardin:
Hope you come right 🙂