Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Clear button in forms

Clear button in forms

Scheduled Pinned Locked Moved The Lounge
asp-netquestion
6 Posts 6 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Johann van der Smut
    wrote on last edited by
    #1

    Honestly, what's the point of having the Clear button in web forms? If the user wants to start afresh, they just have to refresh the page. What's more, the Clear button is often very close to Submit - one misclick and all the data you've entered is gone. If you think this is bad, I just encountered an internal website (no, I'm not saying where I work! :)) where there's just a single textbox to enter a string to search for, and it has its own Clear and Search buttons. (Why? How difficult is it to clear a textbox manually?) But it gets worse.... I pasted my search string there and hit Enter. It does a postback (to clear a textbox? :suss: ) and returns to the same page. Huh? Try it again, same result :~ Type my text manually, hit Enter, same result :confused: Then it dawns on me - the default action is Clear :wtf: :doh: :mad:

    I love go-o-o-o-ld!

    T P A B B 5 Replies Last reply
    0
    • J Johann van der Smut

      Honestly, what's the point of having the Clear button in web forms? If the user wants to start afresh, they just have to refresh the page. What's more, the Clear button is often very close to Submit - one misclick and all the data you've entered is gone. If you think this is bad, I just encountered an internal website (no, I'm not saying where I work! :)) where there's just a single textbox to enter a string to search for, and it has its own Clear and Search buttons. (Why? How difficult is it to clear a textbox manually?) But it gets worse.... I pasted my search string there and hit Enter. It does a postback (to clear a textbox? :suss: ) and returns to the same page. Huh? Try it again, same result :~ Type my text manually, hit Enter, same result :confused: Then it dawns on me - the default action is Clear :wtf: :doh: :mad:

      I love go-o-o-o-ld!

      T Offline
      T Offline
      TorstenH
      wrote on last edited by
      #2

      ...Pressed that one accidentally and your entered data was gone?

      regards Torsten When I'm not working

      1 Reply Last reply
      0
      • J Johann van der Smut

        Honestly, what's the point of having the Clear button in web forms? If the user wants to start afresh, they just have to refresh the page. What's more, the Clear button is often very close to Submit - one misclick and all the data you've entered is gone. If you think this is bad, I just encountered an internal website (no, I'm not saying where I work! :)) where there's just a single textbox to enter a string to search for, and it has its own Clear and Search buttons. (Why? How difficult is it to clear a textbox manually?) But it gets worse.... I pasted my search string there and hit Enter. It does a postback (to clear a textbox? :suss: ) and returns to the same page. Huh? Try it again, same result :~ Type my text manually, hit Enter, same result :confused: Then it dawns on me - the default action is Clear :wtf: :doh: :mad:

        I love go-o-o-o-ld!

        P Offline
        P Offline
        Peter_in_2780
        wrote on last edited by
        #3

        Not saying every form wants or needs one, but on some forms there is a good case for having a 'clear' button. Some of the forms I designed persist a lot of information after a POST that updates something on the server. We use these forms to do 'batches' of related updates, and it's easier to just change a couple of fields rather than re-enter 5 or 6. (The redisplay typically clears a couple of fields but leaves the 'reference' stuff alone.) So the user follows a chain of updates, then uses the 'clear' button to go start a new chain. And yes, it's located well away from the 'submit' button. Cheers, Peter

        Software rusts. Simon Stephenson, ca 1994. So does this signature. me, 2012

        1 Reply Last reply
        0
        • J Johann van der Smut

          Honestly, what's the point of having the Clear button in web forms? If the user wants to start afresh, they just have to refresh the page. What's more, the Clear button is often very close to Submit - one misclick and all the data you've entered is gone. If you think this is bad, I just encountered an internal website (no, I'm not saying where I work! :)) where there's just a single textbox to enter a string to search for, and it has its own Clear and Search buttons. (Why? How difficult is it to clear a textbox manually?) But it gets worse.... I pasted my search string there and hit Enter. It does a postback (to clear a textbox? :suss: ) and returns to the same page. Huh? Try it again, same result :~ Type my text manually, hit Enter, same result :confused: Then it dawns on me - the default action is Clear :wtf: :doh: :mad:

          I love go-o-o-o-ld!

          A Offline
          A Offline
          Andrei Straut
          wrote on last edited by
          #4

          Well, not to mention the browser auto-fill stuff. You may hit clear now, refresh the page, and find your previously POSTed info back into the form fields. But the default action as Clear? :omg: :wtf:

          Full-fledged Java/.NET lover, full-fledged PHP hater. Full-fledged Google/Microsoft lover, full-fledged Apple hater. Full-fledged Skype lover, full-fledged YM hater.

          1 Reply Last reply
          0
          • J Johann van der Smut

            Honestly, what's the point of having the Clear button in web forms? If the user wants to start afresh, they just have to refresh the page. What's more, the Clear button is often very close to Submit - one misclick and all the data you've entered is gone. If you think this is bad, I just encountered an internal website (no, I'm not saying where I work! :)) where there's just a single textbox to enter a string to search for, and it has its own Clear and Search buttons. (Why? How difficult is it to clear a textbox manually?) But it gets worse.... I pasted my search string there and hit Enter. It does a postback (to clear a textbox? :suss: ) and returns to the same page. Huh? Try it again, same result :~ Type my text manually, hit Enter, same result :confused: Then it dawns on me - the default action is Clear :wtf: :doh: :mad:

            I love go-o-o-o-ld!

            B Offline
            B Offline
            BobJanova
            wrote on last edited by
            #5

            WTF 1 - default button = 'clear' WTF 2 - clear button not actually being a clear button, but doing a postback

            1 Reply Last reply
            0
            • J Johann van der Smut

              Honestly, what's the point of having the Clear button in web forms? If the user wants to start afresh, they just have to refresh the page. What's more, the Clear button is often very close to Submit - one misclick and all the data you've entered is gone. If you think this is bad, I just encountered an internal website (no, I'm not saying where I work! :)) where there's just a single textbox to enter a string to search for, and it has its own Clear and Search buttons. (Why? How difficult is it to clear a textbox manually?) But it gets worse.... I pasted my search string there and hit Enter. It does a postback (to clear a textbox? :suss: ) and returns to the same page. Huh? Try it again, same result :~ Type my text manually, hit Enter, same result :confused: Then it dawns on me - the default action is Clear :wtf: :doh: :mad:

              I love go-o-o-o-ld!

              B Offline
              B Offline
              BillWoodruff
              wrote on last edited by
              #6

              What's stopping a programmer from intercepting a click on a 'clear button with an EventHandler, and putting up a dialog giving the user the choice to cancel, or go ahead and 'clear ? best, Bill

              "If you shoot at mimes, should you use a silencer ?" Stephen Wright

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups