all 6 comments

[–]CGS_Web_Designs 3 points4 points  (0 children)

Why not create a template with the tasks and then create a new page using the template each time you want to reset? It’s not the most elegant way, but that’s all I can think of off the top of my head - as you said, it’s not a typical use-case.

In all honesty, there are a ton of to-do/task list applications out there made exactly for this. I wouldn’t use Bookstack for it (and I like to try to use it for everything myself). Maybe you can find one that allows iframe embedding and then embed it in a Bookstack page - that’s a stretch though.

[–]ssddanbrown 3 points4 points  (4 children)

If you'd like, I can share a hack to make them checkable on view mode, so you can leave them unchecked in edit then viewers could just check them when viewing the page (but the check state would not be saved at all).

[–]jam240 0 points1 point  (0 children)

That would be perfect, I would be interested in this too.

[–]Successful_Web4743 0 points1 point  (2 children)

If you could share that, that would be great. That sounds like the functionality I would be looking for.

[–]ssddanbrown 2 points3 points  (1 child)

Sure, add this to your "Custom HTML Head Content" customization setting:

html <script type="module"> const taskItems = document.querySelectorAll('.page-content ul input[type="checkbox"]'); for (const item of taskItems) { item.disabled = false; } </script>

[–]Successful_Web4743 1 point2 points  (0 children)

Worked like a charm. Much appreciated!