i am using embedded interface for task in html, using my forum task for exa

i am using embedded interface for task in html,
using my forum task for example with the below code :

<!doctype html>
<html>
<head>
<!-- This script loads the Appian web components; change it to your Appian server's domain -->
<script src="forum.appian.com/.../script>
<script>
/* This function dynamically inserts an <appian-task> tag into the page with the user-specified taskId */
function addTask() {
var taskId = document.getElementById('new-task').value;
if (taskId) {
var newTask = document.createElement('appian-task');
newTask.setAttribute("taskId", taskId);
newTask.addEventListener("submit", handleSubmit, false);
document.body.insertBefore(newTask, document.getElementById('insertPoint'));
}
}

/* This function is called by the submit event listener */
function handleSubmit() {
alert("The task has ...

OriginalPostID-156624

OriginalPostID-156624

  Discussion posts and replies are publicly visible