Are there any standards (HTML, UI, accessibility, and such like) that stipulate that one of the radio buttons in a given group of radio buttons should be selected at all times?
I have encountered a business requirement whereby I have been asked that both radio buttons in a group be left unchecked, and then to have logic forcing the user to select one before they can continue.
While I know how to achieve this, it felt wrong, and I intimated as such, but was looking for guidelines that stipulate this more explicitly so I can feed this into our own standards.
Yes: http://www.w3.org/TR/html401/interact/forms.html#radio
The specification uses the term “user agent” for what is commonly known as “browser”. So the specification says that if none is checked, the browser will check the first.
UPDATE: note that none of the 4 Browsers i tried actually does this! They dont check the first and none of the radios are given as
=onto the server. A good web framework should do the serverside-checking (it should do it anyway because an abrupted or forged POST could cause the same).