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
+1
person also asked this
people also asked this
Replies
6 replies
Subscribers
8 subscribers
Views
2450 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
User Interface
#Embedded Interfaces. We are on Appian 7.11 cloud instance. We have embedded rel
sathishkumars
over 9 years ago
#Embedded Interfaces. We are on Appian 7.11 cloud instance. We have embedded related action of a record in our company portal. As per the documentation in Appian forum
forum.appian.com/.../Embedded_Interfaces.html
we can handle 3 javascript events(submit, error, dismiss). We tried the following code but the surrounding webpage was not able to capture the event ! What are we doing wrong ? has anyone implemented this successfully ? Any help will be much appreciated !
<body>
<div>
<script src="
avivadev.appiancloud.com/.../script>
<appian-related-action Id=”embeddedRA” recordTypeUrlStub="abcXYZ" recordIdentifier="37" processModelUuid="0002db32-6597-8000-f92f-7f0000014e7a" />
</div>
</body>
<script>
function submitted() {
// Place appropriate submit handling here
alert("The related action has been subm...
OriginalPostID-179843
OriginalPostID-179843
Discussion posts and replies are publicly visible
0
sathishkumars
over 9 years ago
...itted!");
}
window.onload = function () {
document.getElementById("embeddedRA").addEventListener("submit", submitted, false);
// Another try.
$("button[innerHTML='Cancel']").click(function () {
alert('Cancel!');
});
}
</script>
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Tom Ryan
Appian Employee
over 9 years ago
What behavior do you see? Is the Related Action being submitted? Is the js event being triggered and not captured, or never triggered in the first place?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
sathishkumars
over 9 years ago
Hi Tom, out of the box Appian's confirmation message is displayed on the embedded portal.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
sathishkumars
over 9 years ago
the message displayed is:
Form Complete
The form has been successfully submitted.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
neelimaj790
over 9 years ago
@Satish, If u r getting appian OOTB message, I think it is actually executing the related action. Could you please check if you have missed activity chaining in the process model for that Related Action.
Thanks
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
sathishkumars
over 9 years ago
Thanks Neelima, have checked that the activity chaining is enabled but still no luck.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel