Forum Discussion
Javascript functions not working in New Teams Tab App
- Feb 14, 2024
Hello Vaibhavi2495
Regarding alert/confirm/prompt dialogsWe got an update from engineering team that:
The alert/confirm/prompt dialogs provide a subpar user experience and present a security risk since they can be used by apps to spoof the user. We are not planning to make these APIs work in New Teams and Chromium-based browsers are on a path to deprecating this functionality too:
https://groups.google.com/a/chromium.org/g/blink-dev/c/hTOXiBj3D6A/m/JtkdpDd1BAAJ
Please either render inline dialogs within their frame or launch a Task Module (aka Dialog):
https://learn.microsoft.com/en-us/microsoftteams/platform/task-modules-and-cards/what-are-task-modulesWe have raised one bug also to add a note in the documentation:
Yes, it works fine in Web browser but not in desktop app.
We are expecting it to work in desktop app as well.
Hello Vaibhavi2495
Regarding alert/confirm/prompt dialogs
We got an update from engineering team that:
The alert/confirm/prompt dialogs provide a subpar user experience and present a security risk since they can be used by apps to spoof the user. We are not planning to make these APIs work in New Teams and Chromium-based browsers are on a path to deprecating this functionality too:
https://groups.google.com/a/chromium.org/g/blink-dev/c/hTOXiBj3D6A/m/JtkdpDd1BAAJ
Please either render inline dialogs within their frame or launch a Task Module (aka Dialog):
https://learn.microsoft.com/en-us/microsoftteams/platform/task-modules-and-cards/what-are-task-modules
We have raised one bug also to add a note in the documentation: