Forum Discussion

Matthew Lamb's avatar
Matthew Lamb
Copper Contributor
Nov 15, 2019

Teams App loading Microsoft Form - blank page

Hello

For my client I have built a form in Forms which has been wrapped up into a simple Teams app and added to the main navigation bar in Teams.

The app manifest just contains a single staticTab with the contentURL being the link to complete the Form, as generated by Forms (starting https://forms.microsoft.com/Pages/ResponsePage.aspx)

 

This works fine in the web Teams client.

 

However, in the desktop client, it only works if we have set the Form to "anyone with the link".

 

If we set it to "people in my organisation" then the when we load the app it shows the green "loading" message for a second, then goes completely blank. No form. I guess the problem is something to do with the authentication, but I didn't think I would have to do anything special to get this to work. Again it works perfectly in the web client, we only see this error in the desktop client.

 

Is anyone able to replicate this? Any ideas on a resolution?

Many thanks

    • Matthew Lamb's avatar
      Matthew Lamb
      Copper Contributor

      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.

      • Gousia_Begum's avatar
        Gousia_Begum
        Icon for Microsoft rankMicrosoft

        Matthew Lamb Could you please try adding Form's webApplicationInfo* section to your manifest. 

          "webApplicationInfo": {
                "id""c9a559d2-7aab-4f13-a6ed-e7e9c52aec87",
                "resource""https://forms.office.com"
              }

Resources