In HTML widget script tag is not working
Hi Developers,
Thorugh HTML text area widget i'm trying out the following html code.
<!DOCTYPE html>
<html>
<head>
<title>Axeda Developer Connection Simple Ajax HelloWorld Example</title>
</head>
<body>
<h2>Radio Buttons</h2>
<form id="mySelect" onchange="myFunction()">
<input type="radio" name="gender" value="male" checked> Male<br>
<input type="radio" name="gender" value="female"> Female<br>
<input type="radio" name="gender" value="other"> Other
</form>
<p id="demo"></p>
<script>
function myFunction() {
var x = document.getElementById("mySelect").name;
var form = document.getElementById("mySelect");
console.log("Hello world!"+form.elements["gender"].value);
document.getElementById("demo").innerHTML = "You selected: " + form.elements["gender"].value;
}
</script>
</body>
</html>
It works in w3schools editor as expected like if i make a selection, then the corresponding value of the selected radio button is displayed.
But when i try the same in HTML text area widget, the script tag is not working.
The main objective is to allow the user to make a radio button selection and pass the selected value to a service or another widget outside the html text area.
Is the above use case possible with the existing html text area?
Regards,
Saran

