User Experience Stack Exchange is a question and answer site for user experience researchers and experts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

What is the most preferable default button for submitting a form (like a login page)? OK or Cancel?

share|improve this question
What does the "Cancel" button add? Why would you ever click it? – Alex Feinman Aug 18 '10 at 18:38
up vote 12 down vote accepted

It depends. if the form is all about some usual data, it is OK button which has focus. but if it is an agreement or something like that, you should have Cancel button with focus on it.

share|improve this answer
Good point about the agreement. – ChrisF Aug 11 '10 at 20:57
@moteza. I think @GoodEnough has a very valid point – Sruly Aug 11 '10 at 23:02
Yes it is a good point. but when the form is a multi-step or a wizard, then at the end, when the agreement is shown, there is no problem to have the "Cancel" with focus on it. But the other solution is having the check box at the end, and focus on "OK" button. so before sending, one should make sure check box is checked. thank you. – Morteza M. Aug 12 '10 at 8:09

The default button for a form is usually "OK".

One reason for this is that if you accidentally hit return before all the data is filled in the form validation should prevent the action from completion and return you to the form ready to complete all the fields. If "Cancel" were the default you would potentially lose data and have to start all over again - not a very friendly thing to do.

share|improve this answer

Never "Cancel", it would be infuriating to fill out the whole form, press "enter" and lose everything.

If the information in the form is not too critical then there's no harm in submitting it "by mistake". If the information is critical, then there should be some kind of checkbox confirmation at the end of the form that will only be checked once the user has correctly filled out the whole form.

Always use "OK" as the default.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.