
14 Aug
2004
14 Aug
'04
6:32 p.m.
Hi all! What about a one-time submit feature for the formulars in OTRS? Here's an easy javascript way: In the <head> of Header.dtl, set: <script language="JavaScript"> <!-- var UserSubmits=0; function oneSubmit(Element,Value){ if (UserSubmits!=0) return false; if (Element) with (Element) { value=Value; disabled=true; } /* insert more code here */ UserSubmits++; return true; } //--> </script> Each form you would like to protect from double submits must bear an attribute 'onSubmit':
7674
Age (days ago)
7674
Last active (days ago)
0 comments
1 participants
participants (1)
-
Robert Kehl