Forum Discussion
Teams App loading Microsoft Form - blank page
I have found a method which works for embedding SharePoint pages where you set the URL of the tab to https://tenancy.sharepoint.com/_layouts/15/teamslogon.aspx?spfx=true&dest=/SitePages/New-Teams-Request.aspx which handles the authentication without causing Teams to bring down the hammer and redirects to a SharePoint page of your choosing. However this doesn't work for redirecting to Forms. And adding the Forms form to the SharePoint page using a Web Part doesn't work because it gets loaded in a frame which just gets blocked.
The only thing that works is to put a button/link on that SharePoint page which opens the Forms URL in a new tab. When in the Teams client this then launches the Form in the browser window. Not ideal though.
Matthew Lamb Could you please try adding Form's webApplicationInfo*
section to your manifest.
- Matthew LambDec 11, 2019Copper Contributor
Gousia_Begum Thanks for the suggestion but this didn't work, we get the same result. Would I need anything in the validDomains section? Do you have this working?
- Michael McNettMay 19, 2020Brass Contributor
Matthew Lamb- just checking to see if you made any progress on this. I know that Gousia stated that it couldn't be done but I figured I'd check to see if you ever found another alternative to making this work. Thanks in advance.
Mike- Matthew LambMay 19, 2020Copper ContributorHi MIchael - no, we have settled with embedding a SharePoint page with a link on it to launch the Form in a new tab.
- Gousia_BegumDec 18, 2019Iron Contributor
Matthew Lamb Thanks for trying this out. Unfortunately, after some further investigation, it appears that their is yet-another-thing: the URLs that Forms use are different than the canonical URLs you'd get from the browser. At this point, what you are trying is not supported. Even if you got the exact URL correct and are able to host Forms as your own app... there's no guarantee that Forms doesn't change this URL in a few months from now.