You can bulk update on the list screen for kintone

![スクリーンショット 2023-05-13 4.39.43.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/3341719/d03feec3-ed4c-5bda-46b5-84fda5a9771d.png)
#### You can check all by pressing the CheckON button.
#### First,Display only Ethan
![スクリーンショット 2023-05-13 4.40.43.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/3341719/33db864e-4d1e-c382-0479-1ef31cc4e026.png)
#### Only Ethan was displayed.

![スクリーンショット 2023-05-13 4.42.11.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/3341719/f92dc63a-ab8a-a059-0088-b0ef591aaa54.png)
#### press the CheckON button please.


![スクリーンショット 2023-05-13 5.43.47.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/3341719/9da4b7b7-6166-936f-474f-4ca82935bbfe.png)
![スクリーンショット 2023-05-13 4.37.58.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/3341719/e01bc29d-0ad1-cfe8-2a1a-3451a7330310.png)

#### Only Ethan was checked.
#### Next, Let's remove the check.

![スクリーンショット 2023-05-13 6.02.35.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/3341719/5af6c76f-8328-0370-2e08-0c720701fa9d.png)

#### press the CheckOFF button to remove the check.
![スクリーンショット 2023-05-13 4.30.58.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/3341719/254c3e85-828f-fad4-9e78-5b359afb1004.png)
#### unchecked all

```javascript:JavaScript
(function() {
  'use strict';
  const getquery = function() {
    const appNo = kintone.app.getId()
    const OnBtnUpdate = document.createElement('button');
    OnBtnUpdate.innerText = 'CheckON';
    OnBtnUpdate.id = 'ONDateButton';

    const OFFBtnUpdate = document.createElement('button');
    OFFBtnUpdate.innerText = 'CheckOFF';
    OFFBtnUpdate.id = 'OFFDateButton';

    // ボタン増殖防止
    if (document.getElementById('ONDateButton') !== null) {
      return;
    }
    // ボタン増殖防止
    if (document.getElementById('OFFDateButton') !== null) {
      return;
    }

    // 絞り込み条件取得
    const queryCondition = kintone.app.getQueryCondition();

    // ONボタンクリック後の処理
    OnBtnUpdate.onclick = function() {
      const client = new KintoneRestAPIClient();
      const getnoparams = {
        app: appNo,
        query: '' + queryCondition + '',
        fields: ['$id', 'checkBox']
      };

      const checkOnRecords = [];

      client.record.getAllRecordsWithCursor(getnoparams).then((resp) => {

        // レコードの数でループ
        for (let i = 0; i < resp.length; i++) {
          checkOnRecords[i] = {
            'id': resp[i].$id.value,
            'record': {
              'checkBox': {
                'value': ['checked']
              }
            }
          };
        }
        const putrecords = {
          app: appNo,
          records: checkOnRecords
        };

        client.record.updateAllRecords(putrecords).then(() => {
          alert('Put a check mark ');
          location.reload();
        }).catch((error) => {
          alert('miss');
        });
      });
    };

    // OFFボタンクリック後の処理
    OFFBtnUpdate.onclick = function() {
      const client = new KintoneRestAPIClient();
      const getnoparams = {
        app: appNo,
        query: '' + queryCondition + '',
        fields: ['$id', 'checkBox']
      };

      const checkOffRecords = [];

      client.record.getAllRecordsWithCursor(getnoparams).then((resp) => {

        // レコードの数でループ
        for (let i = 0; i < resp.length; i++) {
          checkOffRecords[i] = {
            'id': resp[i].$id.value,
            'record': {
              'checkBox': {
                'value': []
              }
            }
          };
        }
        const putrecords = {
          app: appNo,
          records: checkOffRecords
        };

        client.record.updateAllRecords(putrecords).then((resp2) => {
          alert('uncheck all');
          location.reload();
        }).catch((error) => {
          alert('miss');
        });
      });
    };
    // ボタン設置
    kintone.app.getHeaderMenuSpaceElement().appendChild(OnBtnUpdate);
    kintone.app.getHeaderMenuSpaceElement().appendChild(OFFBtnUpdate);
  }
  const eventlist = [
    'app.record.index.show'
  ];
  kintone.events.on(eventlist, getquery);

```


#### If you want to use this kaind of functionality, it usually costs money. but This program is free :)