I put the print() in my powerapp form. When I test it in preview works great. After saving and having the user open documents and try to print, it does nothing?
I performed a testing from my end and it's showing the print options normally.
From what browser are you trying to open the App?
Have you attempted to create a basic screen with simply a label and a print button to validate if the issue could be related to the form that you are using?
Could you please provide an screen shot from the screen that you are trying to make the print from?
I use google chrome. Yes it will work if you just create a quick screen but that does not help me with the 10 apps I have in existance that I need to allow to print. All of my 10 apps start with a sharepoint list. From the sharepoint list I click power app customize form. Any of the 10 if I add the button to call print() will work while in power app design if I click preview. I get the print setup, I can print the form and it looks great. However once I save and publish. If I go back to sharepoint view and open a document and click print nothing happens.
It doesn't work with SharePoint list forms currently. There's an error: "Ignored call to 'print()'. The document is sandboxed, and the 'allow-modals' keyword is not set." if you open browser dev tools.
What do you mean by the document is sandboxed and allow modals not set. Is there something I can do in the form to fix it or am I waiting on microsoft to fix t his issue?
We can't do much, hopefully MS (SharePoint or Power Apps team) fixes this soon. I think it's a restriction related to SharePoint, iFrames and modal dialogs.. or such :). I'm currently testing a workaround where a print button launches the form to another tab with url "https://apps.powerapps.com/play/ & app id & "?id=" sharepoint list item id, but I don't know if it's going to work.
Check out new user group experience and if you are a leader please create your group
Check out how to claim yours today!
Test your skills now with the Cloud Skill Challenge.
We are excited to announce that Demo Extravaganza for 2021 has started!