hi there,
I need to default the focus on the Cancel button instead of OK to prevent some 'fat fingering'. Any advice is appreciated on how to accomplish this.
There's nothing in my O'Reilly reference about this. If I was really keen on doing that, I would either create my own pop-up that mimicked a confirm box or I would change my question around so that hitting 'OK' was the way to back out of submitting.
For example, instead of: "Is this information correct? Press 'OK' to continue. Press 'Cancel' to edit your values", you could write: "Would you like to edit these values? Press 'OK' to return to the form. Press 'Cancel' to continue."
The second idea is much less-convincing to a user, however. The first method requires a little programming to get it to work just right (but it DOES allow you to label your buttons the way you want).
Obviously, the third alternative is to let the fat-fingered user beware. Are the results that dramatic if they accidentally hit 'OK' when they meant to hit 'Cancel'?
Perhaps you could add a SECOND confirm box with an "Are you sure?"-style question as a just-in-case measure.
thanks for the reply. I let you know if I find anything.
>Are the results that dramatic if they accidentally hit 'OK' when they meant to hit 'Cancel'?
The web-based app that I wrote is used to move heavy items (a couple of thousand lbs each) by cranes. It's an equipment-managed app. Yes the aftermath is dramatic.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.