It is OK, although not usual. You do it when you force the user to decide and choose an option without giving any default choice.
Note that when no option is selected, the 'Pizza Price' field shall be empty because you don't know the size in advance. Moreover, in some cases, you would like to keep the 'Close' button disabled, unless a choice is made (making it impossible for the user to go forward without making a choice).
The image is 'borrowed' from some other site, I just wanted to show the sample of option buttons. Please ignore the price.
I asked this question because I have noticed that if no option is selected by default, when program is run (sometimes, not always) one of the option is selected anyway (by OS?). I even have some programs where for years all options were not selected, but recently some 'got' defaults and are selected now - no change to the code.
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.