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
3 replies
Subscribers
8 subscribers
Views
2015 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
User Interface
Attempting to DISABLE the "Enter" button on a form. I am calling the
ryang652
over 10 years ago
Attempting to DISABLE the "Enter" button on a form. I am calling the following function from the load event of the form...
function disableEnter() {
var form = document.getElementsByTagName("form")[0];
form.onkeypress = function () {var e = event;var code = (e.keyCode) ? e.keyCode : e.which;
if (e.srcElement.type != "textarea" && (code == 13 || code == 3) )
{return false;}
else
{formListener(event)}
}
}
...I found that the ENTER button does indeed get disabled ONLY when testing the form by monitoring the process and viewing the form from the process designer. It does not seem to work when testing the form from the Application portal. Is there something different as to how Appian executes javascript when viewing the form from the process designer vs. the application? Also, a note that unfortunatly I am not able to use Tempo at this time, javascript is currently my only option. Thoughts?...
OriginalPostID-110821
OriginalPostID-110821
Discussion posts and replies are publicly visible
Parents
0
ryang652
over 10 years ago
Thanks much Eduardo, got it working...seems I need a few tweaks to the .js that I was using.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
ryang652
over 10 years ago
Thanks much Eduardo, got it working...seems I need a few tweaks to the .js that I was using.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data