Toggle checkboxes

If you have a group of tasks that you regularly cycle through, you can create a template script with this code:

<%*
var file = app.workspace.getActiveFile()
var t = await app.vault.read(file)
var s = t.replace(/[x]/g, “[ ]”)
app.vault.modify(file, s)
%>

This will uncheck all the boxes on your page. You can make a button for this if it’s a regular thing.

Thanks to @smurfman111

4 Likes

One can also use Task Collector to complete (and append text), reset (and remove appended text), cancel and move tasks on a page.

1 Like

Thanks. This works beautifully.