I was testing a print button that onselect will use the Print() function to print the screen. It will not work because "allow modal" is not turned on. The actual error is: Ignored call to 'print()'. The document is sandboxed, and the 'allow-modals' keyword is not set. How would I get around this?
Hi @amacaulay ,
Here is the official doc:
Known limitations:
The Print function currently doesn't work on mobile devices and on SharePoint forms.
The Print function currently doesn't work on custom pages or embedded scenarios.
The default browser printers are the ones that will be available to print to.
In some browser print dialogs, a setting called Background graphics should be enabled to see all the images and colors in the print.
Best regards,
Community Support Team _ Jeffer Ni
If this post helps, then please consider Accept it as the solution to help the other members find it.
WarrenBelz
85
Most Valuable Professional
Michael E. Gernaey
65
Super User 2025 Season 1
mmbr1606
55
Super User 2025 Season 1