First Text field in page submits when Enter key is hit. Don't want Submit

Hi,
I have searched and can't find this answer I got before...
The Text field does not have the Submit always when pressed included, just a standard Text Item.
because it is the first text field in the page.. or maybe it was because its the only text field on the page that causes it to "Submit" the page when the "Enter" key is pressed.
I do not want the Enter key to Submit the page.
Was it to add a dummy hidden text field before this text field?

Awesome... I just found a post also with same answer!
Thank you very much!
http://djmein.blogspot.com/2007/04/stop-page-submission-when-enter-is.html

Similar Messages

  • How can I get a pdf. to open in Safari, all i'm getting is a new window with a black, blank page, instead of the pdf., and I don't want to save the file to the desktop, Safari didn't use to do that, and I don't have Adobe in the internet plug in folder.

    How can I get a pdf. to open in Safari, all i'm getting is a new window with a black, blank page, instead of the pdf., and I don't want to save the file to the desktop, Safari didn't use to do that, and I don't have Adobe in the internet plug in folder.

    Hi
    Please take a look to this thread Re: Can I refresh the browser rather than open a new tab?

  • Dynamically created text field doesn't appear when imported

    Greetings,
    I have 2 issues regarding dynamically created text fields.
    What I'm trying to do is to create a text field inside a swf file,
    then import that swf into another file. The main problem is, the
    text field is created and displayed perfectly when i execute the
    first swf, but when i try to import the whole thing into another
    file, the text is not displayed.
    I have to point out that, when I add "stage" before the
    addChildAt command, the text appears, but I don't want the
    coordinates of the text box depending on it's location on the
    stage.
    The second problem is, I want the scroll buttons to appear if
    the text is longer than the text box, however they appear no matter
    what. I trace the values and they are correct, so I can't really
    understand why they keep appearing.
    Thank you very much for your help.

    The same thing is happening to me and it is starting to get annoying. I too am using Chrome and I think that might just be part of the issue. I am running a Macbook Pro 2010 13". Any insight on this would be helpful. Sorry I don't have a solution, but know that your not alone in dealing eith this issue.

  • How to show a text field based on what is entered in a date field

    Hi there LiveCycle experts!
    I have a form with a text field that I want to show only if the value of the previous date field once entered is less than 1 month from today?
    Any help appreciated, been researching in vain for hours!!!
    Sarah

    Wow Steve - thanks so much this is so exciting I just love learning these new scripts.
    I assume I need to make the text field 'Hidden' - ?
    I seem to be struggling a little to get it working - are you able to have a quick squizz at my document - it is in the very early stages!
    Regards,
    Sarah Milne
    FACEBOOK : Join our  'BritBound Social Events' Group on Facebook to receive details of forthcoming social events...click here to join. 
    For a sociable & stress free arrival experience!
    BritBound London Office: Britain & London Visitor Centre, 1 Regent Street, London, SW1Y 4XT.
    Tel UK: | 0845 450 3536 | From OS + 44 (0) 20 7808 3815
    Tel OZ: | Sydney: (02) 8003 7651  | Melbourne: (03) 9005 8304 | Brisbane: (07) 3102 9766
    Tel NZ: | Auckland: (09) 889 3175 | Wellington: (04) 889 2015   | Christchurch: (03) 669 2032
    Website:        www.britbound.co.uk
    E-mail:           [email protected]
    Click Here to find out more about: | UK VISAS  | MOBILE PHONE CONTRACTS FOR NEW ARRIVALS TO THE UK  |  UK ACCOMMODATION  |  AIRPORT TRANSFERS  |  UMBRELLA COMPANIES   |  DISCOUNTED INTERNATIONAL BANK TRANSFERS  |  SOCIAL EVENTS   |  TAX REFUNDS  |  NATIONAL INSURANCE (NI) NUMBERS
    Disclaimer: The information contained in or attached to this message is intended only for the people it is addressed to. If you are not the intended recipient, any use, disclosure or copying of this information is unauthorised and prohibited. This information may be confidential or subject to legal privilege. BritBound cannot accept liability for any virus damage caused by this message. This documentation is for your general information, and is not to be construed as advice. Clients should not act on the information contained herein alone, and should seek independent advice if necessary.

  • Is there a way to have type in a text field that would disappear when you filled in the field?

    I'm trying to create a form in Acrobat X that has instructions in the text field (like account number) for instance...that would disappear when the customer starts to fill in their number or information? I've seen examples of this but cannot figure out how to make it work.

    You can use a custom Format script like:
    if (!event.value) event.value = "Instructional text goes here";

  • Can't get to Secure Area.  Was working, but now Log-in Page hangs when enter Name and Password.

    Built site using Muse, then used Business Catalyst to set up Secure Area.  Site worked for several months, but the Log-in Page looked somewhat unprofessional, since Name and Password box could appear almost anywhere on page.  Asked for Adobe Help, and Adobe tech sent 'Test' page to check presentation. Now Log-in Page doesn't work at all.  When enter Name and Password and hit Return - nothing !  Have to 'Escape' out of page - it just hangs.  So members of the community site can no longer share internal data.
    Would really appreciate any help trying to fix this issue.
    Thanks !

    Please share the link to the page where the form is placed , along with test user login details, so that we may further look into this. Also a screenshot demonstrating the issue you facing would be of great help.

  • Code to call a function when enter key is pressed

    hi all,
    In a table control program i need to call a function when i press enter key...
    but im not able to do that since the function is always called when i press a push button on the screen.... can any one help me in this.. please....

    Hi John,
          You are not getting any value in SY-UCOMM when you press "Enter",because the function code is not set for 'Enter" key in "Function Key" of the GUI-STATUS..
    First define some fucntion code say 'ENT' for the Enter button available in "Fucntion key" of the GUI status.Once you done and activate the program and test it.The function code which u defined will be coming to SY-UCOMM field when you press 'ENTER" button and you can handle the various fucntionality whichevcer you want on "ENTER" .
    Eg:
    case sy-ucomm.
    When 'ENT'.
    Endcase.
    Regards,
    Vigneswaran S

  • How to submit the login Page by pressing enter key.

    Hi,
    I am using JDev 11g TP3,JBoss 4.2.1, Trinidad 1.2.4.
    I have a login page in my project.I have a Submit button on the page.After filling in the details when I hit on the enter key my page doesn't get submitted.The submit butto does not get activated.I have to click on the submit button separately to submit the page. How should I get this working??

    Hi,
    If your page is built using ADF Faces / Trinidad, you can specify the "defaultCommand" attribute on the form component setting it to the client id of the default command component. For example:
    <af:form defaultCommand="SubmitCommandButtonId">If it is pure html (may be in a <f:verbatim /> tag), then simply having a submit button will do the trick.
    Olivier
    Message was edited by:
    Olivier Lafontaine

  • Process PBO and PAI when Enter key is pressed

    Hello everyone,
    I am making a program where there is a I/O Box component. When the user enters data in this field and hits the 'ENTER' key I want to process the PBO and the PAI of that screen.
    The problem is what should i assign in the ok_code for this?
    Please advise.
    Thanks in advance,
    Karan

    >
    Karan Kappal wrote:
    > Hello everyone,
    > I am making a program where there is a I/O Box component. When the user enters data in this field and hits the 'ENTER' key I want to process the PBO and the PAI of that screen.
    > The problem is what should i assign in the ok_code for this?
    >
    > Please advise.
    >
    > Thanks in advance,
    > Karan
    You want to Go when user Press enter.
    In PBO we will set the status,
    SET PF-STATUS 'STATUS'. " double click on it or Go to SE41
    here activate the Function code for the ENTER button.
    in the FUnction keys you can see in the Beginning First Function (Green Tick mark) Give the Function code say ENTER , and give all necessary details and Activate .
    Now Test your application.
    When your enter the data and press enter, First it Goes to PAI
    here you do what ever required based on the action code...
    in PAI
    case ok_code.
    when 'ENTER'.
    "your code here...
    endcase.
    and once it is done, Control backs to PBO ..

  • 'Confirm before sending SMS' when enter key is pre...

    Many will agree with me,
    While creating SMS we press 'Enter key' for next line, and then we realise that incomplete SMS has been sent and we got charged for it.
    There should be checkbox in Skype's Settings/Preferences for Messegeing:
    [√] "Confirm before sending SMS"
    Please push this feature if you agree with me.
    Thanks,
    Nitin

    The text of the submit button is transmitted to tell you which submit button was clicked, so naturally it doesn't send it if you don't click that button.
    The usual trick is to create an field like <INPUT TYPE="hidden" id="actionfield" name="action" value="enter">
    When an element that causes a submit, like clicking a button, happens then Javascript sets the value of the field to indicate the entry method. e.g.
    onClick="document.getElementById('actionField').value='ok'; return true"
    Obviously if the submit occurs due to hitting ENTER the action parameter will be "enter".
    Actually few forms use submit buttons these days because they look a bit clunky, most use images for buttons and power them with JavaScript.

  • Default button being clicked multiple times when enter key is pressed

    Hello,
    There seems to be a strange difference in how the default button behaves in JRE 1.4.X versus 1.3.X.
    In 1.3.X, when the enter key was pressed, the default button would be "pressed down" when the key was pressed, but wouldn't be fully clicked until the enter key was released. This means that only one event would be fired, even if the enter key was held down for a long time.
    In 1.4.X however, if the enter key is pressed and held for more than a second, then the default button is clicked multiple times until the enter key is released.
    Consider the following code (which is just a dialog with a button on it):
    public class SimpleDialog extends JDialog implements java.awt.event.ActionListener
    private JButton jButton1 = new JButton("button");
    public SimpleDialog()
    this.getContentPane().add(jButton1);
    this.getRootPane().setDefaultButton(jButton1);
    jButton1.addActionListener(this);
    this.pack();
    public void actionPerformed(ActionEvent e)
    if (e.getSource() == jButton1)
    System.out.println("button pressed");
    public static void main(String[] args)
    new SimpleDialog().show();
    When you compile and run this code under 1.3.1, and hold the enter key down for 10 seconds, you will only see one print line statement.
    However, if you compile and run this code under 1.4.1, and then hold the enter key down for 10 seconds, you will see about 100 print line statements.
    Is this a bug in 1.4.X or was this desired functionality (e.g. was it fixing some other bug)?
    Does anyone know how I can make it behave the "old way" (when the default button was only clicked once)?
    Thanks in advance if you have any advice.
    Dave

    Hello all,
    I think I have found a solution. The behaviour of the how the default button is triggered is contained withing the RootPaneUI. So, if I override the default RootPaneUI used by the UIDefaults with my own RootPaneUI, I can define that behaviour for myself.
    Here is my simple dialog with a button and a textfield (when the focus is NOT on the button, and the enter key is pressed, I don't want the actionPerformed method to be called until the enter key is released):
    package focustests;
    import java.awt.*;
    import javax.swing.*;
    import java.awt.event.*;
    import java.util.*;
    public class SimpleDialog extends JDialog implements java.awt.event.ActionListener
    private JButton jButton1 = new JButton("button");
    public SimpleDialog()
    this.getContentPane().add(new JTextField("a text field"), BorderLayout.NORTH);
    this.getContentPane().add(jButton1, BorderLayout.SOUTH);
    this.getRootPane().setDefaultButton(jButton1);
    jButton1.addActionListener(this);
    this.pack();
    public void actionPerformed(ActionEvent e)
    if (e.getSource() == jButton1)
    System.out.println("button pressed");
    public static void main(String[] args)
    javax.swing.UIManager.getDefaults().put("RootPaneUI", "focustests.MyRootPaneUI");
    new SimpleDialog().show();
    and the MyRootPaneUI class controls the behaviour for how the default button is handled:
    package focustests;
    import javax.swing.*;
    * Since we are using the Windows look and feel in our product, we should extend from the
    * Windows laf RootPaneUI
    public class MyRootPaneUI extends com.sun.java.swing.plaf.windows.WindowsRootPaneUI
    private final static MyRootPaneUI myRootPaneUI = new MyRootPaneUI();
    public static javax.swing.plaf.ComponentUI createUI(JComponent c) {
    return myRootPaneUI;
    protected void installKeyboardActions(JRootPane root) {
    super.installKeyboardActions(root);
    InputMap km = SwingUtilities.getUIInputMap(root,
    JComponent.WHEN_IN_FOCUSED_WINDOW);
    if (km == null) {
    km = new javax.swing.plaf.InputMapUIResource();
    SwingUtilities.replaceUIInputMap(root,
    JComponent.WHEN_IN_FOCUSED_WINDOW, km);
    //when the Enter key is pressed (with no modifiers), trigger a "pressed" event
    km.put(KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_ENTER,
    0, false), "pressed");
    //when the Enter key is released (with no modifiers), trigger a "release" event
    km.put(KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_ENTER,
    0, true), "released");
    ActionMap am = SwingUtilities.getUIActionMap(root);
    if (am == null) {
    am = new javax.swing.plaf.ActionMapUIResource();
    SwingUtilities.replaceUIActionMap(root, am);
    am.put("press", new HoldDefaultButtonAction(root, true));
    am.put("release", new HoldDefaultButtonAction(root, false));
    * This is a copy of the static nested class DefaultAction which was
    * contained in the JRootPane class in Java 1.3.1. Since we are
    * using Java 1.4.1, and we don't like the way the new JRE handles
    * the default button, we will replace it with the old (1.3.1) way of
    * doing things.
    static class HoldDefaultButtonAction extends AbstractAction {
    JRootPane root;
    boolean press;
    HoldDefaultButtonAction(JRootPane root, boolean press) {
    this.root = root;
    this.press = press;
    public void actionPerformed(java.awt.event.ActionEvent e) {
    JButton owner = root.getDefaultButton();
    if (owner != null && SwingUtilities.getRootPane(owner) == root) {
    ButtonModel model = owner.getModel();
    if (press) {
    model.setArmed(true);
    model.setPressed(true);
    } else {
    model.setPressed(false);
    public boolean isEnabled() {
    JButton owner = root.getDefaultButton();
    return (owner != null && owner.getModel().isEnabled());
    This seems to work. Does anyone have any comments on this solution?
    Tjacobs, I still don't see how adding a key listeners or overriding the processKeyEvent method on my button would help. The button won't receive the key event unless the focus is on the button. There is no method "enableEvents(...)" in the AWTEventMulticaster. Perhaps you have some code examples? Thanks anyway for your help.
    Dave

  • Is there a way to turn on auto complete for text that has to be entered repeatedly? I don't want to use a pop up list.

    Is there a way to turn on auto complete for text that is repeated? I don't want to use a pop up list.

    No, not in Number for iOS.

  • HT5137 The icon ..eg. Sound hound.and others.. Won't open when pressed. They just flicker with the face page briefly and won't open..don't want too loose sound hound ,as many references there .. Any ideas.

    On my  iphone3gs..some of icons aren't  opening up. Esp sound hound ,I don't want too loose it ,as have lots of references up in there .. Some of others ,like ,weather , stocks are opening.. Any ideas out there please..and thank you..

    You can also try backing up your iPhone and restoring the iOS.  This will erase everything then you can restore fomr your backup to bring back you apps and all of the associated data.  If you decide to do the easier steps of deleting and reinstalling the individual app, you will loose the data contained within that app, unless there is a log in account associated when you set up the app (like connect to facebook, or another internet account).
    How to backup and restore from a backup: http://support.apple.com/kb/ht1766
    How to restore the iOS: http://support.apple.com/kb/ht1414
    Backup, then restore iOS, then restore form backup (if you decide to do this)

  • How to make a button as a default if ENTER key it hit

    Hi,
    Currently (may be the default behavior), pressing an enter after entering the search text for example, doesn't work. I typically get the following error message:
    ERR-1777: Page 33 provided no page to branch to. Please report this error to your application administrator.
    How can I make to execute the code associated with a button (as default) when ENTER is hit.
    Appreciate your time and help with this.
    Regards
    SS

    Hey,
    When you hit the create button at the moment - this does something, I would assume something like submit the page with a request of CREATE to fire a conditional process to insert the record and maybe redirect to another page at the end?
    What you need to know - is what fires your CREATE process (my guess would be that it is the request value). My next guess would be that your create button submits with a request value of CREATE.
    So you need to create an unconditional (ie. just leave is as default) branch, maybe put it to sequence 999 and have it submit with a request value o CREATE and redirect to any page as necessary.
    Can you put an example on apex.oracle.com if this make no sense and I'll have a look for you.
    Cheers
    Ben

  • HT5622 Entering CORRECT passCODE, hitting DONE but keeps going back to énter passcode' and won't do anything else or let me in.

    Haven't used my Ipad for some time. Switched it on andup came énter PASSCODE''. I entered the correct Passcode and hit DONE but it just
    keeps going back to énter Passcode'and wont let me go any further. Can anyone assist please with a reason for this and/or how to be able to get in.
    Thanks.
    Margii13

    http://support.apple.com/kb/ht1212

Maybe you are looking for

  • Help me plz - Vendor Aging Report

    Dear Experts, When i execute report S_ALR_87012078, it gives me short dump saying : A PERFORM was used to call the routine "START" of the program "SAPMKCBR ".The current call contains 7 actual parameter(s),but the routine "START" expects 9 parameters

  • Where is this coming from?

    Hi Experts, Can you please let me know what this URL append ?blog=/pub/wlg/ and from where it's being called? Regards, RN

  • Performance: query forced to parallel and thus cost

    On a customer site and they have problem with a query, broken this down to one offending table. Put a select * from table through explain plan, result shows that parallel execution is being chosen and that the parser is pulling stats from somewhere.

  • Blackberry Media Sync not loading playlists

    I've upgraded to BB Media Sync v 3.0, and now when I load the application, it won't read my playlists from WMP. I have NO DRM music, so that can't be it. It worked fine right before the upgrade. I NEVER had a problem with it reading playlists until 3

  • Where / how to download?

    I have the full  Final Cut Studio on old Macs and I have my serial number. Now I have a new Mavericks iMac, where can I download FC Studio (specifically I just need FCP and DVD Studio Pro ) - I assume just copying them across from an old machine won'