Enter key causes submit action in form

Ask a Question related to Macromedia Dynamic HTML, Design and Development.

  1. #1

    Default Enter key causes submit action in form

    I've created a form using Dreamweaver 4.0 and I see that pressing the Enter key
    in any blank field in the form causes a "Submit" action. When there is no
    Submit button anywhere in the form the enter key does nothing. This form feeds
    to a cgi script on the server which sends an email to me with the user input
    from the fields in the form.
    Does anyone know how to disable the Enter key or relegate it's function to
    moving between fields?

    Thanks
    Gerry

    gerryj Guest

  2. Similar Questions and Discussions

    1. How do i programmatic-ally change the Mouse Up-triggered JavaScript Action of a Submit button in a form contained in hundreds of PDFs?
      Hi Guys! How do i programmatically change the Mouse Up-triggered JavaScript Action of a Submit button in a form contained in hundreds of PDFs? In...
    2. cf flash form submit on enter key down?
      Hey all, How can i make a flash form submit upon the user hitting the ENTER key? I would mostly like it to just be when either the last field is...
    3. disable enter button to submit form
      I'm very new to ColdFusion - I'm building forms in Deamweaver, then using Cld fusion to pass he data to an Access Database. So far, so good. But...
    4. CF submit form action
      hi. I have a site that uses a form for visitors to request information. when the SUBMIT button is clicked, the page returns to the home page... I...
    5. Q: Textbox press Enter submit form (ASCX version)
      Hello all, It's known to how to make user press enter in an asp:textbox and the form is submited by adding an attribute to the textbox with an...
  3. #2

    Default Re: Enter key causes submit action in form

    ..oO(gerryj)
    >I've created a form using Dreamweaver 4.0 and I see that pressing the Enter key
    >in any blank field in the form causes a "Submit" action.
    Pressing [enter] in any input field - blank or not - will usually cause
    the browser to submit the form.
    > Does anyone know how to disable the Enter key or relegate it's function to
    >moving between fields?
    Impossible. What's the problem actually? Incomplete submissions?

    Micha
    Michael Fesser Guest

  4. #3

    Default Re: Enter key causes submit action in form

    Michael:

    Not impossible. Try it yourself at
    [url]www.mfsaircraft.com/charfterFormOperators.html[/url]

    And, Yes the problem is incomplete form submission. In any form that I create
    if there is a "Submit" button as defined by Dreamweaver; (ie. select form
    button from the "Objects Panel", and select type of submit button) anywhere in
    the form the "Enter Key" causes a submit action.

    And pressing the Enter Key is done all to often.

    I've scoured documentation and can't find any way to overcome the problem.
    I'll appreciate any ideas.


    gerryj Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139