Desktop application, enabling or disabling the OK button on error?
7 May 2007 - 2:04pm
8 years ago
I am debating whether or not I should disabled the OK button on a dialog box until the fields that need to be filled are "error free". Let's assume I have two fields on a dialog box: Name and Position. On dialog open, the name is empty and the position is defaulted to a predetermined value (which is editable). Let's assume I clearly identified both fields as mandatory. Do I leave the OK disabled until a name is entered or do I enable it and provide an error message if it is selected with no name entered? I personaly prefer to disable the OK button thus preventing an error from happening but I have "strong opponents" that prefer to be prompted with an error rather than trying to figure out why the OK is disabled.