How to prevent Enter key from closing form?

I have a page with a single text entry field on it. When I press enter the page closes, not saving the data (it is as if I clicked cancel). How can I change this behavior?

Hi Daveio,
Can you please let me know whether the Text Field that you have created is of type:
Text Field (always submit page when entered pressed)?
Secondly, does your page have any branches associated with it?
Tony.

Similar Messages

  • How to prevent popup dialog from closing when commandbutton clicked

    Hi,
    I have a af:commandButton inside a popup dialog and the button action calls a method in backing bean. When this button is clicked I would like to run the method in backing bean and return control to the popup window. The method seem to run fine but the popup dialog closes automatically. Is there a way to prevent popup dialog from closing for this action?
    Thank you
    Kevin

    Hi Frank,
    Thanks for the link. I am not sure how to use this in my case. Following is part of what I am trying
    <af:popup ...>
    <af:dialog>
    <af:form usesUpload="true">
    <af:inputFile ..../>
    <af:commandButton text="upload" action="#{backingbean.uploadAction}"/>
    <af:outputText value="#{backingbean.filename} was successfully uploaded"/>
    </af:form>
    </af:dialog>
    </af:popup>
    When user clicks upload button I want to display a message that the file was successfully uploaded and keep the popup window open. But what happens now is once the file upload completes, the popup window closes automatically. This file upload part is not a must, user could skip doing the upload and instead input some text in a text area below (not shown in the code above). User could also just click cancel and exit the popup any time, so there is no mandatory field that I could check before closing the popup. Is there something I could do for this?
    thanks
    Edited by: user10720929 on Dec 23, 2008 10:36 PM

  • Preventing enter key from submission-- javaScript

    Hi,
    I am using the following code for preventing enter button from submission
    It is not working for other explorer's like AOL,FIREFOX,NETSCAPE
    onkeydown="if ((event.which && event.which == 13) ||
    (event.keyCode && event.keyCode == 13))
    {document.FormName.ButtonName.click();return false;}
    else return true;"
    Can any one help me better solution than this...
    Thanks in advance...

    Double-posted:
    http://forum.java.sun.com/thread.jspa?threadID=5131933
    (And this is still a java and not javascript forum)

  • Prevent Enter key from proceeding movie

    I am using this code to get the user to enter the answer 16
    in an input text field. It works but if the user hits the enterkey
    after they've gotten the question right, the playhead starts and
    moves to incorrect. This is not happening only in the testing
    environment, the published file continues when Enter is pressed.
    Can anyone help?
    keyListener = new Object();
    keyListener.onKeyUp = function() {
    if (input_txt2.text == "16" and Key.getCode() == 13) {
    //13 is key code for 'Enter'//
    gotoAndPlay("1_3_13a");
    _root.answer1 = "Correct!";
    } else if (input_txt2.text != "16" and Key.getCode() == 13)
    //13 is key code for 'Enter'//
    _root.answer1 = "Incorrect.";
    gotoAndPlay("1_3_13b");
    Key.addListener(keyListener);

    I'm not following what "…activated when the enter key
    is pressed even after the event has occurred." means. You mean that
    even after this first entry you press enter and the value of
    input_txt2.text != "16" so it is jumping to 1_3_13B?
    I think I know what you mean, maybe. Notice how you are
    setting up a listener? Well it keeps listening, it isn't a one time
    deal. It listens for a keyUp until you tell it to stop. So just
    because it works once why would you expect it to stop working? :)
    What you need to do is either inside your conditionals or
    perhaps just inside the onKeyUp function put a
    Key.removeListener(keyListener); to tell it to stop listening. If
    you are doing some kind of remediation at 1_3_13b and then want
    them to have another try, perhaps you will want to leave the
    listener or you might want to remove it and then add it back. I
    don't know the exact structure of what you are doing, but I hope
    this points you in the correct direction.

  • Prevent ESC key from closing movie

    Hi!
    Can anyone please advise me how to stop a movie closing when the ESC key is pressed.
    I have a dialog function that opens another movie to confirm quit.
    I would prefer it to minimize instead of simply closing with no warning.
    Many Thanks
    Sarah

    You set 'the exitLock' to TRUE - check the docs for more details. Also, once the exitLock is true, you can implement an 'on closeRequest' handler to detect your using pressing the ESC key, or clicking the close box on the titlebar.

  • How to press the enter key then execution Form?

    Using:SAP B1 UI Form for C#
    How to press the enter key then execution Form?
    thanks
    Edited by: JackyChang on Jul 5, 2010 5:35 AM

    Hi JackyChang,
    Use the SendKeys method.
    VB Sample
    oApplication.SendKeys("{ENTER}")
    Regards,
    Vítor Vieira

  • How can i distingush Enter key from Numpad-Enter(Enter key on numpad)?

    How can i distingush Enter key from Numpad-Enter key(Enter key on numpad)?
    Enter KeyEvent information is identical with Numpad-Enter key(Enter key on numpad) KeyEvent.
    ( keyChar, keyCode, ..etc)
    But i must differentiate these two Enter keys.
    How can i make it?
    Thank you for your answer ahead.

    The keyCode for 1 in the numeric pad is 97 the other 1 is 49, the same with 2 98/50. The same with all other numeric keypad.
    Noah

  • How can I pass data from a form guide to another form in a business process

    How do we pass data from a form guide to another form(not necessarily a guide) without having to open the form. For example we have a small form guide to capture the contract id so we can then get data from contracts table to present to the user in a form. We want the user to open the guide (either Flex guide or form guide) to enter the contract id. Upon submission we want the process to get the contract data and put it into the form that will be opened at the next step by the user without having a user interact with the form to get the data into it. In other words we need the process to get the data and populate a different form than the form guide the contract id was entered in and this new form needs to be opened in the next step by the user.

    Firstly, I'm assuming that you have a Forms ES Server if you are rendering a Guide.  This could be either version ES1, ES2/2.5 or ES3/ADEP
    If you submit the form back to the server, you can populate a second (PDF/XDP) form with the data bound to the same schema/Data Model using Forms ES. 
    You referred to the next user in the chain - If you are using Process Management, this is very easy, as you define what form is used to render the data in the "Presentation & Data" section of the Assign Task activity

  • How can I get keys from Hashtable in the same order?

    Hello, everyone.
    I have a Hashtable containing key-value pairs, I need to get the keys in the same order as I use
    method put(key,value) to save the key-value pairs. But I can only find Hashtable.keys() to fetch the keys in form of Enumeration and when retrieve the keys from the Enumeration,they are not in the original order!
    The following is my code:
    Hashtable ht = new Hashtable();
    ht.put("Name","Harry Bott");
    ht.put("Gender","Male");
    ht.put("Age","25");
    String[] Items = new String[ht.size()];
    Enumeration e = ht.keys();
    int i = 0;
    while(e.hasMoreElements()) {
    Items[i++] =(String)(e.nextElement());
    The Items contains the keys but they are not in the original order.
    Does anyone know how to get the keys from a Hashtable in the same order when they're put?
    Thank you!

    yeah, another solution is to stored keys on a Collection at the same time you put them on the HashMap with its values.
    Then when ur going to retrieve objects from the Map u iterate the Collection that has the ordered keys and use them.

  • Pai module enter key from key board

    hi
    can any one tell me how can i display material description after entering material no in screen  .
    by just clicking enter key from keyboard .
    Regards
    Rakesh singh

    Use a case statement.
    CASE ok_code.
    When Others.
    *********Write code to read material description from table or Internal table ***********
    Pass the description to the field on the screen. To do this define a work area with same name of screen element
    End case.
    Now the value will automatically be populated.

  • How do I enter music from MacBook to 2 GB memory card in my LG Dare

    How do I enter music from MacBook to 2 GB memory card in my LG Dare? I formatted the SanDisk memory card to the phone and connected phone to MacBook. How do I get music from iTunes on my MacBook to disk on my Dare?

    Look in the Finder's sidebar or on the desktop. If the manufacturer only allows its own software to connect to the card, consult its documentation.
    (55914)

  • How do I extract email from a form and send the PDF to that user?

    How do I extract email from a form and send the PDF to that user?

    here you can add email to send to, CC, Subject, and body message
    var oDoc = event.target;
                        oDoc.mailDoc({
                                                                bUI: false,
                                                                cTo: "Agency Contact Email",
                                                                cCC: "",
                                                                cSubject: "Write your title here,
                                                                cMsg: "Dear" + AgencyContact + "(" + AgencyContactEmail + ")\nThe student, " + FirstName + " " + LastName + " has applied to work at your agency. Please confirm they can work here blah blah blah.......\n\nThanks.\n\nrespectuflly,\n\nme"

  • Prevent Ctrl-W from closing Full Acrobat Search window

    When I do a Full Acorbat Search on a folder tree, it can take quite some time for all the hits to be found, and quite some time to work through the hits.  Usually, multiple PDF files are opened as I work through the hits.  As I close the PDFs with ctrl-W, it is very easy to accidentally close the Full Acrobat Search window, which means waiting forever to re-do the search and find my way to my current spot in the list of hits.  I find it highly inappropriate for ctrl-W to close the Full Acrobat Search window in the same way that it closes PDF files.  It is especially risky in Windows 7, where the window frames are translucent and the window with the focus is highlighted in a way that makes it very difficult to distinguish from the windows without the focus.
    Is there a way to prevent ctrl-W from closing the Full Acrobat Search window?  I am using Acrobat Professional 8.

    Thanks, Dave.
    I'm finding other inconsistent behaviour that is exacerbating the problem. If I close the last PDF file with ctrl-W, the search window stays open.  If I close the last PDF file from the task bar, boom, the search window gets clobbered too, which entails another lengthy re-search.

  • How to invoke crystal reports from Oracle forms 11g R2 along with passing p

    How to invoke crystal reports from Oracle forms 11g R2 along with passing parameter to it.
    how to pass parameters to crystal report, please help.

    how to pass parameters to crystal report, please help.This would entirely depend on crystal reports and you might find informations on crystal reports related communities more likely...I for one have seen crystal reports the last time about 12 years ago. And even back then I simply acknowledged it's existence instead of working with it.
    Maybe crystal reports can be invoked via a URL call which would make it simple as you'd need simply build an URL and show the report using web.show_document. But that's pure speculation. Also you might not be the first with this requirement, so the solution to your problem might be right under your nose and just a little google search away ;)
    cheers

  • How i can enter information from Database to jtree and update it

    How i can enter information from Database to jtree and update it

    Is the memory cache enabled (about:cache)?<br />
    You can open about: pages via the location bar like you open a website.
    *http://kb.mozillazine.org/browser.cache.memory.enable

Maybe you are looking for