I originally posted this issue in this thread The way my forms are surfacing in teams has changed - #7 by cwalter2 but I have not received any response to date.
After some investigation it appears Teams Desktop and Mobile Apps are not allowing the forms to change HTML elements within the script. For example, I have added a <div id="myDiv"></div>
to a form in Design mode. I am unable to manipulate using jQuery:
$("#myDiv").html("<p>This is my text</p>");
nor can I use:
document.getElementById("myDiv").innerHTML = "<p>This is my text</p>";
However, if I bring the form up at teams.microsoft.com the HTML element is changed via the script. Is this a known issue? Will this change eventually propagate to the web app? This is a fairly critical development for our use.