Support Article
The Flow Action is submitted when pressing the Enter Key
SA-26182
Summary
On adding one text input control in the section and hitting the enter key flow action is getting submitted. If adding two text inputs on the section then issue is not replicable.
Error Messages
Not applicable.
Steps to Reproduce
- Add one text input in the section with Edit only.
- Press Enter key.
Root Cause
Not applicable.
Resolution
Perform the below local-change steps:
- In the section containing the single text input, add a non-auto generated section say disableEnter.
- In disableEnter section, add the below code snippet.
(OR)
To disable the Enter functionality across the application, one can add the code snippet in UserWorkForm rule:
Code Snippet:
<script>
function disableEnterKey(e){
var key;
if(window.event){
key = window.event.keyCode;
}
if(key == 13){
return false;
}
return true;
}
document.onkeydown = disableEnterKey;
</script>
Published August 3, 2016 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.