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
3199 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
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
0
Eduardo Fuentes
Appian Employee
over 11 years ago
This function has to be called in the load event of the form.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
eaglez
over 11 years ago
thank you very much!
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
eaglez
over 11 years ago
hi eduardo, i have another question. can you help me?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Eduardo Fuentes
Appian Employee
over 11 years ago
Sure, what's the question?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
eaglez
over 11 years ago
haha, you have already answered my question. thank you.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
eaglez
over 11 years ago
hi eduardo,are you still there?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
eaglez
over 11 years ago
hi eduardo, maybe i can use asi.confirm to replace the confirmation message configuration.
but if people click no, how can i stop submitting form?
will "return false" work?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel