Hide checkboxes if mass actions are hidden

  • 4
  • Idea
  • Updated 2 months ago
As of 11.0.8, if you have a single Mass Action on a table, even if that mass action is hidden due to rendering conditions, you will see the checkboxes next to table rows. Would be great if those checkboxes disappeared when all mass actions are hidden. 

in screenshot below, flag selected rows for deletion is the only mass action, and it is hidden from non-admin users, but the checkboxes are still there. 

admin users get the mass action:
Photo of Jack Sanford

Jack Sanford, Champion

  • 9,582 Points 5k badge 2x thumb

Posted 1 year ago

  • 4
Photo of mB Pat Vachon

mB Pat Vachon, Champion

  • 43,186 Points 20k badge 2x thumb
Any of your fields setup to aggregate?
Photo of Jack Sanford

Jack Sanford, Champion

  • 9,570 Points 5k badge 2x thumb
Nope. And Show Export Button is not checked. Are you able to hide the checkboxes if all your mass actions are not rendered?
Photo of Matt Small

Matt Small

  • 1,182 Points 1k badge 2x thumb
You could just block with CSS?

.yourcheckboxelement {
display: none !Important; 

Photo of Chandra V

Chandra V, Champion

  • 7,560 Points 5k badge 2x thumb
Just want to say that we use this behavior on purpose ... create a mass action just to get checkboxes to show up, then we hide the action because we want the checkboxes.  Our users select the rows they want and then we use a button set to process the action - we didn't really like the mass action buttons not being visible.

So if it does change, please give us the option.  :)
Photo of Arne-Per Heurberg

Arne-Per Heurberg

  • 2,396 Points 2k badge 2x thumb
Hi Chandra, am doing same in a table in drawer...do you mind sharing how you selected the appropriate mass action button? Thanks and  Cheers :)
Photo of Chandra V

Chandra V, Champion

  • 7,560 Points 5k badge 2x thumb
We didn't use a mass action for this use case.  Users selected the rows, then we used a standard button to process the action by checking for selected rows in a snippet.
Photo of Conlan O'Rourke

Conlan O'Rourke

  • 4,326 Points 4k badge 2x thumb
+1 from me. I've had to use CSS to hide those checkboxes many times. Seems like they should just natively disappear when no mass action buttons are present.
Photo of Rob Hatch

Rob Hatch, Official Rep

  • 44,678 Points 20k badge 2x thumb
Ooh I love it when some people call it a bug,  and others call it a feature...