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
8 replies
Subscribers
7 subscribers
Views
3203 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
User Interface
Hi all, as you know, enter key will submit the form automatically. is
eaglez
over 11 years ago
Hi all,
as you know, enter key will submit the form automatically.
is there a way to remove this function?
i tried to remove and override all inputs's event by JS, but it does not work.
is this function implemented by JS?
Any favour will be appreciated,
thanks very much.
...
OriginalPostID-88407
OriginalPostID-88407
Discussion posts and replies are publicly visible
Parents
0
Eduardo Fuentes
Appian Employee
over 11 years ago
The best option would be to enable your form as a Tempo Form and move your implementation to Tempo so the end-users can open the task there. This is disabled by default in there.
If you still need to use JavaScript, here's the function
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)
}
}
}
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
Eduardo Fuentes
Appian Employee
over 11 years ago
The best option would be to enable your form as a Tempo Form and move your implementation to Tempo so the end-users can open the task there. This is disabled by default in there.
If you still need to use JavaScript, here's the function
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)
}
}
}
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data