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.
In a views handler, create an option, type checkbox, that has "remove" in it's name.
This CSS rule gets executed:
[class*="form-type-checkbox"][class*="remove"] {
display: none;
}
And the checkbox never gets displayed, leaving you scratching your head.
Comments
Comment #1
dawehnerThis is really possible with css? Interesting ...
The problem is only existant for the preview, right?
Sadly it's not that easy to find a good css selector, especially for the no-js case.
Comment #2
bojanz CreditAttribution: bojanz commentedAdmin only (it's in the views-admin css file). I got it for a checkbox in the VBO field settings...
Sadly, I have no idea what it's actually used for. Knowing that would help me suggest an improvement...
Comment #3
dawehnerJust sent a message via druplicon to jessebeach
Comment #4
wildermuthn CreditAttribution: wildermuthn commentedWhen I define an action with 'remove' in it, the action doesn't appear in VBO (although it is there in the html).
Comment #5
dawehnerDoes this css rule is actually correct? I can't find a remove class in the code
Comment #6
dawehnerI have no idea how to continue on this issue. For me it's kind of dangerous to remove it. what are there checkboxes which should be hidden. Anyone has a clue?
If noone has an idea, we should just remove it and see who complains :)
Comment #7
bojanz CreditAttribution: bojanz commentedAs far as I can see both from your grep and from my search, the checkbox that needs to be hidden (because its functionality is handled by JS when the "Remove' button is clicked) always has a class "views-remove-checkbox"
So let's just replace
with
and see what happens :)
Comment #8
dawehnerThere we go. Commited to 7.x-3.x. Let's see whether someone complains.
Comment #10
matt2000 CreditAttribution: matt2000 at CARD.com commentedI ran into this issue yesterday with Views 7.x-3.8Nevermind. The issue was caused by Rubik theme's views css.