Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I've created a content type with a checkbox (boolea field type), leaving the default values as 0 and 1 for off and on.
I then created a view, filtering on the checkbox.
In the "Configure filter criterion" popup, there are no options visible except for select all.
The options 0 and 1 are there and clickable, but since in the field settings no on/off values were set, the options have no visible content:
<select multiple="multiple" name="options[value][]" id="edit-options-value" size="3" class="form-select">
<option value="all" selected="selected">Select all</option>
<option value="0"></option>
<option value="1"></option>
</select>
Besides this UI Bug, there's another one: selecting select all will result in an error:
No valid values found on filter: Content: test_bool.
Comment | File | Size | Author |
---|---|---|---|
#1 | invisible-options-for-bool-field.jpg | 44.36 KB | sirtet |
Comments
Comment #1
sirtetUpdated summary and metadata.