Jump to content

daniellopez

Members
  • Content Count

    1
  • Joined

  • Last visited

  1. Need help in disabling the Enter Key from a text area in a Submission Form and an Update Form. Since I later on use that parameter to pass it on to another form and if the user used the Enter key, this passing of parameters results in an error. This is what I have on the header of the submission form but still is not working: <script language="javascript" type="text/javascript"> function stopRKey(evt) { var evt = (evt) ? evt : ((event) ? event : null); var node = (evt.target) ? evt.target : ((evt.srcElement) ? evt.srcElement : null); if ((evt.keyCode == 13) && (node.type=="text")) { return false; } } document.onkeypress = stopRKey; </script> The field I want to prevent is named as: "[@Status_trial]" I will greatly appreciate the Help!
×
×
  • Create New...