Looks to me as if the first item in radio button options list is selected by default.

Sure, I can make it so that it won't show any results at first (Require input before results are shown), but then again... in this case, the first option would be selected with no results are shown...

As a workaround I can enable the - Any - option (have it selected by default) and hide it with CSS, but maybe there is a better solution after all?

Ideally I'd like to have those radio buttons with none of the options selected by default.

Any ideas? Thanks,

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mareks’s picture

Issue summary: View changes
mareks’s picture

Issue summary: View changes
mikeker’s picture

Category: Support request » Feature request
Status: Active » Postponed (maintainer needs more info)

The only way to get rid of the "any" option is to make the filter "Required" and doing that means you have to select a default option, else Views throws an error when you save the filter config dialog. If you select a default option, that'll be what's initially selected when you view the display.

It's an interesting idea to add a "unselect all radios and hide -any- if -any- is selected" which to what you're asking for, right? Though I would likely implement it similar to what you were suggesting: hiding the -any- option with CSS...

mikeker’s picture

Status: Postponed (maintainer needs more info) » Closed (works as designed)

Issue queue cleanup...