Disable ENTER KEY on text item

All,
I am trying to disable SUBMIT on ENTER KEY for a text item on a page as below but still its submitting how can i achieve this.
I want the page to totally disable the enter key so when i press ENTER KEY nothing happens,
what i did:
1. when page loads,
$("input").keypress(function evt) {
var charCode = evt.charCode || evt.keyCode;
if (charCode  == 13) {
return false;
2.
Submit when Enter pressed
NO
APEX 4.2
thank you.

Hi,
Your code is not valid.
I'm sure it raises errors.
Place to page JavaScript -> Execute when Page Loads
$("input,select").keypress(function(e){
return e.keyCode!==13;
Regards,
Jari

Similar Messages

  • How to call another form ,if option is entered in a text item object ???

    hi ,
    I am created an application ,where in i press a button which call another form having a menu .
    I select any one of the option from the menu ....i enter a number in the text item object of this form ....depending upon what option i have typed .....i would like to call another form ...
    My questions are
    1) Which trigger of this text item should be enabled,and what code to i write in this trigger ?
    2) Since this form is not having any database insert,delete ,update or query (select)
    it should directly go to the new form,whose option i provide in the text item .
    Sunny

    hey bro, i am assuming that ur text item contains the form name, any relevant trigger can be used for user action, like key-enter, post-change or key-next-item.
    to run a form u can use functions call_form or open_form with proper paramters.
    if u want to forward the entered text in the item, use global variable for the session.
    it doesnt matter if the form contains database items or blocks, all u have to do is run the form.
    e.g,
    declare
    VAR VARCHAR2-------;
    begin
    /* u can use the variable to concatinate or modify too, also can use global variable
    var:=:urblock.uritem;
    /* use ur own relevant parameters */
    open_form(VAR,ACTIVATE,NO_SESSION);
    exception
    when---------
    end;

  • Problem with disabling "ENTER" key in JTextArea

    Hi,
    I have the following codes to disable the 'ENTER' key in the JTextArea,
    but it does not work. Does anyone know why?
    KeyStroke enterKey = KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0);
    textarea.getKeymap().removeKeyStrokeBinding(enterKey);
    textarea.addKeyListener(new KeyAdapter() {
    public void keyTyped(KeyEvent e) {
    // do something
    Thanks,
    Pin

    I don't know how you mean "disable", but if you are going to ignore the Enter key, then add a KeyListener to the text area, and in the key pressed method, consume() the key event if the VK_ENTER was pressed. That's all, and you don't have to deal with that key binding thingy.
    The other two event types (typed and released) might be ignored, the enter is processed during key press (as it is now, with the default settings).
    The reason is that processing the Enter key (and other such internally understood keys) is done by the peer, but the peer won't get the key event if it's already consumed.
    FYI: Were it a JTextField, consuming the Enter key presses would mean that the field won't fire action events any more. Since text area does not fire action events, therefore it's a non issue.
    FYI2: Consuming the event only blocks the event to be sent to the peer, all the other listeners still get it.

  • How to disable "Enter" key - urgent

    - i have on my site one site password protected. Now i don't want that users cann use Enter key when they write password. Only when the click with mouse. For that i have onClick="..."
    How can i disable only enter key?
    Thanks

    Don't want the user to press the Enter key... who
    thinks up these ideas anyway? It never ceases to
    amaze me.Internet team in one of my early carrer companies were having problems with a search field on their web project... When the user pressed enter they were getting an error, but it worked when they clicked with the mouse.
    So they decided to remove the ability of the user to press enter, rather than figure out what was wrong and fix it... But they couldn't figure out how to disable the enter button either, so they just put red text below the search field asking users to click on the button and not to press enter...
    How the hell do some people get in the door in Software Companies?

  • Restrict user to enter % sign in Text Item

    Dear All:
    I want to restrict the user to enter Percentage '%' and Under Score sign '_' in the Text Item.
    How is it possible?
    I am using Oracle Forms 10g.
    Thanks
    Hassan

    Here is a javabean solution..
    http://fdegrelle.over-blog.com/55-categorie-265996.html

  • JSF Disable Enter key on h:inputText......

    Hello All,
    Hope all of you are doing good. Currently we are using JSF 1.1 for our new application, i have got a requirement as follows. This is a weird problem i hope....
    I have a <h:inputText....> component in my page and when if user presses "Enter" key the page is getting submitted. I have tried by adding the following lines of Javascript code but still it is not working. Could you please review and suggest me on this.
    function kH(e) {
         var pK = e ? e.which : window.event.keyCode;
         return pK != 13;
    document.onkeypress = kH;
    if (document.layers) document.captureEvents(Event.KEYPRESS);
    Any suggestions are really appreciated. Thanks in advance.

    Try this and see how it works for you:
    <script language="JavaScript">
    function disableEnterKey(e)
         var key;
         if(window.event)
              key = window.event.keyCode;     //IE
         else
              key = e.which;     //firefox
         if(key == 13)
              return false;
         else
              return true;
    </script>
    <h:inputText onkeypress="return disableEnterKey(event)" />

  • How does one replace carriage returns (enter key) in text areas

    I have an address text area in one of my pages where end users are hitting enter after each part of the address. I want to replace the carriage return hex('0A') with spaces. How can I do that?

    If you're manually saving your data, you can just change your insert/update code as below:
    insert into myTable
    (myCol)
    values
    (replace(:PXX_MY_TEXT_AREA, Chr(10), ' '))
    where ...If you're building a page where you aren't directly saving your data, you can add an "on Submit/Before Computation" process that does something like:
    :PXX_MY_TEXT_AREA := replace(:PXX_MY_TEXT_AREA, Chr(10), ' ');

  • Disabling ENTER key

    Hi Experts,
    I need to disable the ENTER button (first button in application toolbar, before tcode input box) in one of my custom screen.
    Pl explain me how to disable this button.. Many thanks in advance!!!

    Benu,
    Did you set your own status in your program using set pf-status 'name'.just double click on that and check the options
    Thanks
    Bala Duvvuri

  • Disabling the enter key

    Hi, I have a jsf page that has an <h:inputText> fileld, and whenever I fill it and press enter the form gets submmited. I want to disable the enter key, so that if the user hits enter nothing will happen. This way the form will only be submmited by clicking a button with the mouse.
    Thank you,
    Komyg

    You can use javascript to do this. The merits of using javascript can be saved for another time. Simply put 'javascript disable enter key' in a Google search and you will find what you need. Here is the link at the top of that list:
    http://www.felgall.com/jstip43.htm
    Good luck.

  • Flex4.5 SDK under Flash builder Burito doesnt dispatch Enter key event in Text Area anymore

    Flex 4.5 under Flash builder Burito doesnt dispatch 'Enter' key event in Text Area anymore, in prev version 4.1 it was working properly, this stopped working after migration to Burito + Flex SDK 4.5?
    What that suppose to be?

    Hi
    That's true that Flex4.5 SDK under Flash builder Burito doesn't listen Enter key in Text Area for KeyUp or KeyDown event.
    Here I found a work around you can use.
    Add an eventlistener to the component in actionscript and set the useCapture=true next to eventlistener function. Now you can listen enter key for KeyUp or KeyDown Event
    Hope this helps
    Rush-me

  • Capturing Enter key event from text box

    In my application, there are a number of text boxes. I want to create a feature where an enter key even is seen and specific function executed depending on which text box was in focus when the enter key was pressed. Currently I am able to capture an enter key event on the whole page. How do I do that specifically for a text box?
    This application is done in HTML, javascript and Adobe AIR.
    Thanks
    Binu
    www.verseview.info

    Hi
    That's true that Flex4.5 SDK under Flash builder Burito doesn't listen Enter key in Text Area for KeyUp or KeyDown event.
    Here I found a work around you can use.
    Add an eventlistener to the component in actionscript and set the useCapture=true next to eventlistener function. Now you can listen enter key for KeyUp or KeyDown Event
    Hope this helps
    Rush-me

  • How to enter the data into data block text item which has an LOV associated

    Hi,
    I have a data block, one of the data block text item has an LOV assigned. when I populate this text item using the LOV and do "execute_query", it is taking the value in the text item and adding it to the search criteria, but when I enter a value manually in that text item and do "execute_query" it is showing me an alert(which I created) "Please enter a value".
    My question is, why is not taking the value that I enter manually? Looks like before executing the query, this field is getting empty
    How to avoid this problem and make sure that the value entered in the text item is added in the where clause of the query?
    Any advice?
    Thanks in advance
    R.G

    Problem solved!
    Before doing execute-query, all the text items are being cleared,so I used a global variable to store that value
    Thanks anyway
    R.G

  • Database input text item search?

    example:-
    if the end user enters letter in text item(PATIENTNAME) . will display records below it the list of names (eg.list item) filtered with the key typed until no same records found.
    this will help to avoid duplicates names when registering new MR.
    forms 10.1.2.0.2..

    Charles,
    Please, try to avoir titles in capital letters, and don't be so avare of kind words, like "Hello", or "Please", Or "Thank you".
    Readers will not have the impression that you are just coming here in a supermarket ;-)
    Francois

  • LM13: Verification field not cleared after [Enter] key

    Hi Experts,
    I'm facing the issue as stated in the OSS note 916654 - LM13: Verification field not cleared after [Enter] key. My current system is ECC, that is why the OSS is already applied to the ECC version. But the problem is, i still faced the problem stated in the OSS.
    Symptom
    In customizing:
    - You have defined [ENTER] in destination screen 302 to SAVE items.
    - You want to verify the destination bin information.
    You use 'Confirm Transfer Order Clustered' RF transaction LM13.
    You scan several SUs and press enter.
    You press [F4-Next pushbutton] to confirm the associated TO(s).
    In the destination screen 302, you scan the verification value for the first item and press [ENTER] key.
    ==> The item is confirmed correctly but when the system proposes the next item, the verification value of the first item is displayed.
    Anyone know how to fix this issue? Pls help.
    thanks
    Hooi Fung

    Hi,
    For example itab-matnr is your screen field
    in PAI
      field: itab-matnr,
             module check_matnr_0700.
    module check_matnr_0700 input.
      move itab_matnr to v_matnr.
    endmodule.
    in PBO.
    move v_matnr to itab-matnr.

  • Note 916654 - LM13: Verification field not cleared after [Enter] key

    Hi Experts,
    I'm facing the issue as stated in the OSS note 916654 - LM13: Verification field not cleared after [Enter] key. My current system is ECC, that is why the OSS is already applied to the ECC version. But the problem is, i still faced the problem stated in the OSS.
    Symptom
    In customizing:
    - You have defined [ENTER] in destination screen 302 to SAVE items.
    - You want to verify the destination bin information.
    You use 'Confirm Transfer Order Clustered' RF transaction LM13.
    You scan several SUs and press enter.
    You press [F4-Next pushbutton] to confirm the associated TO(s).
    In the destination screen 302, you scan the verification value for the first item and press [ENTER] key.
    ==> The item is confirmed correctly but when the system proposes the next item, the verification value of the first item is displayed.
    Anyone know how to fix this issue? Pls help.
    thanks
    Hooi Fung

    Thanks a lot for your prompt answer. Well yes if i clear in the PBO the value gets cleared, but then i wanted to get the next records value into the value field, well the problem got solved in a much easier way i put everything into one chain endchain statement.

Maybe you are looking for

  • How can I transfer data from DD & HD 3.5" floppies to my MacBook Pro running Lion?

    I hope this is the correct forum group, and if it's not, I apologize. I didn't find one that was really related to my topic. I was given lots of legacy files (mostly Eudora email messages and other text files from 1995-2000) that I need to access fro

  • Replication of line items in the PO through ME59N

    Hello everyone, I am trying to replicate( duplication of each line item  into 3 line items) the line items in the PR through ME59N. I tried to change the Build_ITEM perform and added the new line items to it. However, during validation of line items,

  • Can't Print PDF/Folders Need Password To Opem After Archive and Install

    Greetings: I did a archive and install on my 10.4.11 eMac because of ever sluggish performance and Safari 3.1.1 and QuickTime 1.4 problems (gotta be a better way than all that!). First, maybe by my shakey hand or because of bills, I somehow did the a

  • Access all users folders on MS Exchange Server

    Using the javax.mail class, I can establish a Session, connect to a Store and retrieve all messages from INBOX folder. With this approach I must know the username/password to do the connect. What I really want to do is to access the INBOX folder for

  • IPhone 6 plus stuck with apple logo, won't turn off!

    I got my new iPhone 6 plus today. I set it up as a new phone I couldn't restore from backup as I needed iOS 8.1 to restore the backup of my 5s. So after upgrading to 8.1 I reset my 6 plus to restore the backup and now its stuck on the apple logo. I c