Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

No Submit when Enter pressed in Textfield - update in 4.2?

TobiPNov 12 2012 — edited Nov 14 2012
Greetings to the Community!

There has been this issue, that unwantingly a page submits, when you press enter in a Textfield. (E.g. you want to validate the input with javascript, than give an appropriate Usermessage on error.) - Even thou you apply the option "No Submit when Enter Pressed" in the Item dialog.

There has been a workaround, that you must add a 2nd textfield to the page, so that that option takes effect. - Which appeares to me as not so nice a solution.

So I am just wondering about three things:

1) in Javascript there is the function: e.preventDefault();
I have tried this out, but its not working. Can anyone tell me, if this cant be applied in APEX at all, and for what reasons?

2) If you have an interactive report on the page, pressing enter in that search field sometimes also submits the page. So having this and a text field should stop the submit process. It still doesnt. Can anyone say what to do against it?

3) Are there plans to change this problem with the 4.2 release?

Honestly I am a bit frustrated, because validating a Date input with javascript - in APEX - without several other stuff to happen that you dont want - turns out to such a huch hassle that I am about to implement my own html input field plus my own html button. But whats the point using APEX then with all its features?

Thanks for any hints and best regards

PS: our current Apex version is 4.0.1, but we are about to upgrade to 4.2
This post has been answered by jariola on Nov 12 2012
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 12 2012
Added on Nov 12 2012
5 comments
1,815 views