Search code examples
microsoft-teamsmicrosoft-todo

How to have control of the `Save` button while configuring new tab in MS teams


I have to build a tab in MS Teams and I am looking for how I can have control of the button seen below:

enter image description here

By control I mean how can disable and enable accordingly.

The way Microsoft Task By Planner and To-Do have

enter image description here


Solution

  • You can enable and disable the save button by changing the setValidityState proprty of microsoftTeams.settings

    For eg microsoftTeams.settings.setValidityState(false); will disable the save button and passing true value will enable it.

    Thanks