title: MS Teams : We couldn't save your tab settings. Please try again
body: <p>I am trying to add a configuration tab in Teams as shown in <a href="https://docs.microsoft.com/en-us/microsoftteams/platform/concepts/tabs/tabs-configuration" rel="nofollow noreferrer">https://docs.microsoft.com/en-us/microsoftteams/platform/concepts/tabs/tabs-configuration</a> But I am getting Error as We couldn't save your tab settings. Please try again.</p>
  
  <p>Below is the Javascript</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  microsoftTeams.initialize();
  microsoftTeams.settings.registerOnSaveHandler(function (saveEvent) {
  var radios = document.getElementsByName("maptype");
  if (radios[0].checked) {
     microsoftTeams.settings.setSettings({
       entityId: "bing",
       contentUrl: "https://www.bing.com/maps/embed",
       suggestedDisplayName: "Bing Map",
       websiteUrl: "https://www.bing.com/maps",
       removeUrl: "https://teams-get-started-sample.azurewebsites.net/tabremove.html",
    });
  }
  else {
     microsoftTeams.settings.setSettings({
       entityId: "google",
       contentUrl: "https://www.google.com/maps/embed",
       suggestedDisplayName: "Google Map",
       websiteUrl: "https://www.google.com/maps",
       removeUrl: "https://teams-get-started-sample.azurewebsites.net/tabremove.html",
    });
  }
  
  saveEvent.notifySuccess();
  });
  
  function onClick() {
  microsoftTeams.settings.setValidityState(true);
  }
  &lt;/script&gt;
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/tNeFv.png" rel="nofollow noreferrer">Here is the Error image in MS Teams</a></p>