Forum Discussion
Saving checkboxes in Rise
Thanks for this Ben. I've tried your process and it does retain the checkboxes, but every time I exit and go back in, the saved checkboxes have bumped down one place. So for example, if I checked boxes 1 and 4 in a list, when I come back in, boxes 2 and 5 are now checked. Looks like something in the way it's counting the boxes? Has anyone encountered this or have any ideas of a solution? Thanks everyone.
- MeaganGriffin-f3 years agoCommunity Member
Hi Rowan, This is what I'm encountering as well. I'm hopeful someone has a solution. It's so close to perfect!
- MeaganGriffin-f3 years agoCommunity Member
Hi again, Rowan - I worked with a developer at my company, and I think we found a solution for this!
In the checkboxes.js file, locate this line: checkboxesInLesson = document.querySelectorAll('[data-lesson-id="' + currentLesson + '"]');And, REPLACE it with this line: checkboxesInLesson = document.querySelectorAll('.block-list__checkbox', '[data-lesson-id="' + currentLesson + '"]')
We hope this works for you! -Meagan & Werner- RowanTrevor3 years agoCommunity Member
Thank you Meagan, I appreciate you taking the time to send this through, I'll give it a try!
- LornaPeca3 years agoCommunity Member
Thank you Meagan! This worked, however now the last checkbox will not stay. Any ideas?