# Single click checkbox + update multiple records at once

**URL:** <https://forums.knack.com/t/single-click-checkbox-update-multiple-records-at-once/13374>\
**Category:** Ask Developers\
**Created:** [November 8, 2022, 1:56pm UTC](https://forums.knack.com/t/single-click-checkbox-update-multiple-records-at-once/13374 "2022-11-08T13:56:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Joshua](https://avatars.discourse-cdn.com/v4/letter/j/48db29/32.png) [@Joshua](https://forums.knack.com/u/Joshua)\
**Post date:** [November 8, 2022, 1:56pm UTC](https://forums.knack.com/t/single-click-checkbox-update-multiple-records-at-once/13374/1 "2022-11-08T13:56:54Z")

</div>

Hi all,  
Part of my app is used to reconcile our different credit cards. I have a table that shows all credit card transactions. I have a field called “Add to report” that is a checkbox. Right now, I have turned on inline editing and you have to click the field, and then you can click the checkbox. Is there a way to be able to just click the checkbox without having to click the field first?  
Also, I do not want any of the other fields to be changed. With inline editing turned on, someone could click and change something. Can I turn off inline editing for some fields?

Once all of the transactions are added to the report and it is reconciled, I would like a button that will update all records to change a field called “Reconciled” to “Yes”. I can’t seem to find a way to update multiple records simultaneously. Currently, I have to go into the Knack Builder and update the records from there.

Thanks.

---

<div class="post-metadata">

**Author:** ![Sunny\_Singla](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.knack.com/sunny_singla/32/1007_2.png) [@Sunny\_Singla](https://forums.knack.com/u/Sunny_Singla)\
**Post date:** [November 8, 2022, 2:35pm UTC](https://forums.knack.com/t/single-click-checkbox-update-multiple-records-at-once/13374/2 "2022-11-08T14:35:43Z")

</div>

Hello Joshua,

Yes, this can be done using some javascript. But turning off inline edit for other fields is easy to go to each field and there is an option to turn off inline edit.

Thanks,  
Sunny Singla  
[ssingla1985@gmail.com](mailto:ssingla1985@gmail.com)  
+919855089359

---

<div class="post-metadata">

**Author:** ![Joshua](https://avatars.discourse-cdn.com/v4/letter/j/48db29/32.png) [@Joshua](https://forums.knack.com/u/Joshua)\
**Post date:** [November 9, 2022, 2:34pm UTC](https://forums.knack.com/t/single-click-checkbox-update-multiple-records-at-once/13374/3 "2022-11-09T14:34:39Z")

</div>

Thanks Sunny. I found where to turn off inline editing for those other fields.

Are there any javascript examples you can point me to?

---

<div class="post-metadata">

**Author:** ![Sunny\_Singla](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.knack.com/sunny_singla/32/1007_2.png) [@Sunny\_Singla](https://forums.knack.com/u/Sunny_Singla)\
**Post date:** [November 9, 2022, 3:03pm UTC](https://forums.knack.com/t/single-click-checkbox-update-multiple-records-at-once/13374/4 "2022-11-09T15:03:45Z")

</div>

Hello Joshua,

Please check the below link

> [@Update multiple records with a checkbox](https://forums.knack.com/t/update-multiple-records-with-a-checkbox/10305):
>
> This first requires you to add the checkbox snippet from this example: &nbsp;[Add checkboxes to a table](https://docs.knack.com/docs/javascript-jquery-examples#add-checkboxes-to-a-table) This following snippet will add an "Update" button below your view header and update all checked records with the data you specify in the data&nbsp;variable. Once all records are updated, an alert will display confirming the update. Note: This still needs some work! There's no function to catch errors, etc.&nbsp;&nbsp; var addCheckboxes = function(view) { // add the checkbox to to the header to select/unsele…

Thanks,  
Sunny Singla  
[ssingla1985@gmail.com](mailto:ssingla1985@gmail.com)  
+919855089359
