Do your forms have Accept and Cancel buttons?

Last updated by Brady Stroud [SSW] about 1 month ago.See history

If you have a button in a form you must have an accept or a cancel button. As a result user can use "Enter" and "Esc" to control the form.

acceptbuttonexample good
Figure: Good example - Next button is set as the accept button

We have a program called SSW CodeAuditor to check for this rule.

Note: The CodeAuditor Rule will just test the buttons on the Base form and ignore all the inherit forms, because for more reusable code, the Accept and Cancel buttons should be in the base form.

Adam Cogan
We open source. Powered by GitHub