If you don’t want to use scripting in an automation, then here’s an alternate solution.
Make a formula field named something like {Checkbox Reset}
, with a formula like this (change the field names to match your actual records):
AND({Checkbox Field}, HOUR(NOW()) = 0)
That will output a 1 when the checkbox is checked AND the current hour is midnight. However, you’ll need to adjust the “0” in the formula based on your local timezone. This is because the NOW()
function returns the current time based on GMT, not your local time. So midnight (hour 0) in GMT will be some other hour for you (assuming that you’re not in GMT). If you want it to reset at midnight in your local time, you’ll have to calculate the GMT offset and use that number. For example, I’m in the Pacific timezone which is currently GMT -7. Midnight for me is 7am GMT, so I’d use this variation:
AND({Checkbox Field}, HOUR(NOW()) = 7)
Figure out the variation that you need for your local time when making that formula field.
With that in place, modify the first automation to only update the count of how many times the record was checked. To create the second automation that resets the checkbox daily, use the “When record matches conditions” trigger, with the condition being that “Checkbox Reset” = 1. For the action use “Update record”, making sure to update the record that triggered the automation to run, and clearing that checkbox field by leaving its settings empty in the action step.
This automation should only trigger during one hour in any given day, and only on checked records. For records matching that condition, the automation will fire once, then wait until the trigger resets, which will happen once the formula outputs a 0 (the very next hour). Then it’s ready for the next day’s trigger.
The downside, as I mentioned above, is that it will use a lot of automation runs from your monthly allotment. If you check 50 records in a given day, it will run 50 times to reset them all one by one. This is why a script is preferred. A script can process multiple records, and the automation only runs once.