Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
2 replies
Subscribers
7 subscribers
Views
1129 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
User Interface
i am using embedded interface for task in html, using my forum task for exa
dayasagarreddyk
over 9 years ago
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
0
dayasagarreddyk
over 9 years ago
...been submitted!");
}
</script>
</head>
<body>
<input id="new-task" />
<button onclick="return addTask();">Embed This Task</button>
<div id="insertPoint"></div>
</body>
</html>
While clicking on Button it showing Nothing.
Task Id : 272553992
IE : 11
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
dayasagarreddyk
over 9 years ago
HTML Output
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel