Snippets Support > Snippets > Arrays
Here's a simple demo of ZAP's built in arrays capabilities. You could easily use a pagelist to generate the checkboxes, and then combine with any command that takes a CSV list in its value (most do).
Which means, combining ZAP forms with pagelists can some powerful, and dynamic forms!
CSV: Delta