Click Checkbox Add 1

Learn how to modify a checkbox in Google Sheets to increment a counter only when checked from false to true, and how to uncheck it afterward using Google Apps Script.

Every time I check or uncheck the box number in A2 increases, but I wanna change this so that it only checks when it's false to true and then it uncheck false. I'll show you the code. Looks like this function on edit. We'll take the row, the column If row equals one and column equals one, then what we're doing is we're getting the value in A2, and then setting the value of A2 with that count, plus one. But what I want to do is make sure and E. value is equal to true. I also want to make sure that we're unchecking the box. So SS. getRange A1. uncheck. Every time I check, we add one to A2. One Million Checkboxes How To Make That Viral Growing Plant Progress Chart One Million Checkboxes Hidden Checkbox Until Checkbox Checked