# How do I implement bulk checkboxes in a smart view?

**URL:** <https://community.forestadmin.com/t/how-do-i-implement-bulk-checkboxes-in-a-smart-view/1883>\
**Category:** Help me!\
**Created:** [February 19, 2021, 6:46pm UTC](https://community.forestadmin.com/t/how-do-i-implement-bulk-checkboxes-in-a-smart-view/1883 "2021-02-19T18:46:53Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![austinrupie](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/austinrupie/32/1100_2.png) [@austinrupie](https://community.forestadmin.com/u/austinrupie)\
**Post date:** [February 19, 2021, 6:46pm UTC](https://community.forestadmin.com/t/how-do-i-implement-bulk-checkboxes-in-a-smart-view/1883/1 "2021-02-19T18:46:53Z")

</div>

I need to implement bulk checkboxes in a smart view.

I’m sure you all have a hidden component for this – can I get some guidance?

## Expected behavior

Please describe here the behavior you are expecting.

## Actual behavior

What is the current behavior?

## Failure Logs

Please include any relevant log snippets, if necessary.

## Context

Please provide any relevant information about your setup.

- Package Version:
- Express Version:
- Sequelize Version:
- Database Dialect:
- Database Version:
- Project Name:

---

<div class="post-metadata">

**Author:** ![anon16419211](https://avatars.discourse-cdn.com/v4/letter/a/7cd45c/32.png) [@anon16419211](https://community.forestadmin.com/u/anon16419211)\
**Post date:** [February 22, 2021, 9:07am UTC](https://community.forestadmin.com/t/how-do-i-implement-bulk-checkboxes-in-a-smart-view/1883/2 "2021-02-22T09:07:22Z")

</div>

Hello and welcome @austinrupie !

To make sure I understand well the problem you are facing, can you tell me more about the use case you want to set up via these bulk checkboxes ? 🙂

---

<div class="post-metadata">

**Author:** ![austinrupie](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/austinrupie/32/1100_2.png) [@austinrupie](https://community.forestadmin.com/u/austinrupie)\
**Post date:** [February 22, 2021, 6:39pm UTC](https://community.forestadmin.com/t/how-do-i-implement-bulk-checkboxes-in-a-smart-view/1883/3 "2021-02-22T18:39:22Z")

</div>

Yes, I have a card view that shows records. Like having the table view, I need to be able to select many of them and perform Bulk Actions.

Right now in Smart Views there is no obvious way to implement checkboxes that trigger the Bulk Actions dropdown.

---

<div class="post-metadata">

**Author:** ![anon90145840](https://avatars.discourse-cdn.com/v4/letter/a/ed8c4c/32.png) [@anon90145840](https://community.forestadmin.com/u/anon90145840)\
**Post date:** [February 23, 2021, 1:31pm UTC](https://community.forestadmin.com/t/how-do-i-implement-bulk-checkboxes-in-a-smart-view/1883/4 "2021-02-23T13:31:19Z")

</div>

Hello @austinrupie

You can use the

```javascript
  <BetaCheckbox
    @value={{@value}}
    @small={{true}}
    @onChange={{this.onChange}}
  />

```

In your code for the checkboxes, but you would need to implement the logic you want by yourself

---

<div class="post-metadata">

**Author:** ![austinrupie](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/austinrupie/32/1100_2.png) [@austinrupie](https://community.forestadmin.com/u/austinrupie)\
**Post date:** [February 23, 2021, 5:41pm UTC](https://community.forestadmin.com/t/how-do-i-implement-bulk-checkboxes-in-a-smart-view/1883/5 "2021-02-23T17:41:32Z")

</div>

Is there existing logic to trigger the bulk actions dropdown outside of the smart view?

---

<div class="post-metadata">

**Author:** ![remi](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/remi/32/334_2.png) [@remi](https://community.forestadmin.com/u/remi)\
**Post date:** [February 25, 2021, 10:40am UTC](https://community.forestadmin.com/t/how-do-i-implement-bulk-checkboxes-in-a-smart-view/1883/6 "2021-02-25T10:40:44Z")

</div>

Hello @austinrupie !

I’m not sure to understand your question, could you please elaborate a bit more?

---

<div class="post-metadata">

**Author:** ![austinrupie](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/austinrupie/32/1100_2.png) [@austinrupie](https://community.forestadmin.com/u/austinrupie)\
**Post date:** [February 25, 2021, 9:14pm UTC](https://community.forestadmin.com/t/how-do-i-implement-bulk-checkboxes-in-a-smart-view/1883/7 "2021-02-25T21:14:32Z")

</div>

So in a table, I can click multiple checkboxes and trigger the “Bulk Actions” dropdown.

I need to do this in a smartview, and I’m guessing it’s hidden logic you all have to make that happen.

```javascript
  <BetaCheckbox
    @value={{@value}}
    @small={{true}}
    @onChange={{this.addRecordToBulkActions record}}
  />

```

---

<div class="post-metadata">

**Author:** ![Sliman\_Medini](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/sliman_medini/32/19_2.png) [@Sliman\_Medini](https://community.forestadmin.com/u/Sliman_Medini)\
**Post date:** [March 1, 2021, 10:34am UTC](https://community.forestadmin.com/t/how-do-i-implement-bulk-checkboxes-in-a-smart-view/1883/8 "2021-03-01T10:34:50Z")

</div>

Hi @austinrupie,

I am afraid we do not have this, as said @anon90145840 you would need to implement the logic you want by yourself.

**Maybe** an alternative would be to express the overview of your needs in another post, and we may be able to suggest you a more “out-of-the-box” solution to cover it.

---

<div class="post-metadata">

**Author:** ![gaelperon](https://avatars.discourse-cdn.com/v4/letter/g/76d3ee/32.png) [@gaelperon](https://community.forestadmin.com/u/gaelperon)\
**Post date:** [March 2, 2021, 7:53am UTC](https://community.forestadmin.com/t/how-do-i-implement-bulk-checkboxes-in-a-smart-view/1883/9 "2021-03-02T07:53:02Z")

</div>

I would be interested by the same feature.

@anon90145840 , how do you retrieve the action onChange on the controller side ?

---

<div class="post-metadata">

**Author:** ![Guillaume\_Cisco](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/guillaume_cisco/32/918_2.png) [@Guillaume\_Cisco](https://community.forestadmin.com/u/Guillaume_Cisco)\
**Post date:** [March 2, 2021, 9:51am UTC](https://community.forestadmin.com/t/how-do-i-implement-bulk-checkboxes-in-a-smart-view/1883/10 "2021-03-02T09:51:39Z")

</div>

Hello @gaelperon, what @anon90145840 suggest was only an example.  
You will have to implement yourself the `onChange` action.

I hope it helps you 🙂

---

<div class="post-metadata">

**Author:** ![austinrupie](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/austinrupie/32/1100_2.png) [@austinrupie](https://community.forestadmin.com/u/austinrupie)\
**Post date:** [March 3, 2021, 8:22pm UTC](https://community.forestadmin.com/t/how-do-i-implement-bulk-checkboxes-in-a-smart-view/1883/11 "2021-03-03T20:22:39Z")

</div>

That makes literally no sense. How can we call to control features that live OUTSIDE of the forest smartview?

Controlling bulk actions is literally impossible to implement ourselves.

---

<div class="post-metadata">

**Author:** ![Arnaud\_Moncel](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/arnaud_moncel/32/24_2.png) [@Arnaud\_Moncel](https://community.forestadmin.com/u/Arnaud_Moncel)\
**Post date:** [March 5, 2021, 9:22am UTC](https://community.forestadmin.com/t/how-do-i-implement-bulk-checkboxes-in-a-smart-view/1883/12 "2021-03-05T09:22:48Z")

</div>

Hi @austinrupie 👋 to achieve you want, you must manually implement the checkboxes features.  
You can build an array of selected records and after use this documentation to call by a button or what you want the smart bulk action you want.
