Hi,
can I disable form submit on enter keypress when i compose a ticket?
Tanks
Roberto
Disable form submit on enter keypress
-
- Znuny expert
- Posts: 296
- Joined: 04 Jul 2010, 17:49
- Znuny Version: 3.1.x
- Real Name: Alexander Halle
- Company: radprax MVZ GmbH
- Location: Wuppertal
- Contact:
Re: Disable form submit on enter keypress
I find it difficult to understand your question. Could you please explain your use case or give some details ?
Alexander Halle
OTRS Community Links: User Meetings, Projects
- Public Relations @ OTRS Community Board / OtterHub
- 2nd-Level Support Agent @ radprax MVZ GmbH
OTRS Community Links: User Meetings, Projects
-
- Znuny expert
- Posts: 250
- Joined: 12 Oct 2010, 01:35
- Znuny Version: 3.0.9
- Company: LRS Health
Re: Disable form submit on enter keypress
If you are focused in a HTML form and hit the enter key, your browser will attempt to 'submit' the form.
It is a browser related function I think. You might be able to capture the key-press in javascript and do nothing with it....
It is a browser related function I think. You might be able to capture the key-press in javascript and do nothing with it....
OTRS: 3.0.9 & ITSM 3.0.4 - OS: Windows 7 - DB: MySQL - Heaps of random/useful hacks 
[Major Code Changes]
ArticleFreeTime1-3
Ability to search ArticleFreeText

[Major Code Changes]
ArticleFreeTime1-3
Ability to search ArticleFreeText
-
- Znuny newbie
- Posts: 37
- Joined: 31 Jan 2011, 11:25
- Znuny Version: 3.2.3
- Real Name: Dan
- Company: ANB
- Location: Bucharest, RO
Re: Disable form submit on enter keypress
Hello!
Is there a way to apply this: http://support.microsoft.com/kb/298498 on OTRS 3.2.3?
By mistake, instead on enter a new line in the response to the customer, you "press" the submit button.
Thanks a lot!
Dan
Is there a way to apply this: http://support.microsoft.com/kb/298498 on OTRS 3.2.3?
By mistake, instead on enter a new line in the response to the customer, you "press" the submit button.
Thanks a lot!
Dan
-
- Moderator
- Posts: 10170
- Joined: 04 May 2010, 18:38
- Znuny Version: 5.0.x
- Location: SouthWest Florida, USA
- Contact:
Re: Disable form submit on enter keypress
one way I know that also works is to have a field, such as the time units, as a required field. That way you *have* to put something in there (and Time Units is at the bottom, so it's typically last) and the form won't submit without data in the required field.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
-
- Znuny newbie
- Posts: 37
- Joined: 31 Jan 2011, 11:25
- Znuny Version: 3.2.3
- Real Name: Dan
- Company: ANB
- Location: Bucharest, RO
Re: Disable form submit on enter keypress
Great idea, but how can I make the time accounting a required field?
Thanks a lot! Is there in Sys Config?
Thanks a lot! Is there in Sys Config?
-
- Moderator
- Posts: 10170
- Joined: 04 May 2010, 18:38
- Znuny Version: 5.0.x
- Location: SouthWest Florida, USA
- Contact:
Re: Disable form submit on enter keypress
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask