
Thanks in advance!
Radek
Disable the Enter key from saving record changes
4 posts
• Page 1 of 1
This might be an idiotic question (apologies
![]() Thanks in advance! Radek
Ah.. yes.. sounds like a pain. You can try this solution:
http://support.microsoft.com/kb/298498 In order to implement the example given in that kb article, note that you can add javascript event handlers to any fields in the fields.ini file using: widget:atts:%attname% = ... so in the kb article example, you would have widget:atts ![]() Let me know if this works for you. Best regards Steve
Here's the code I'm using to disable the Enter key on _all_ fields:
*****fields.ini widget:atts ![]() *****and javascript: function stopEnterKey(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 = stopEnterKey; }
Thanks for posting this. If you get a chance, this would make a nice little how-to article. You can post a new how-to document at:
http://framework.weblite.ca/documentation/how-to/createObject?type_name=HelpCenterHowTo Best regards Steve
4 posts
• Page 1 of 1
Who is onlineUsers browsing this forum: No registered users and 1 guest |