Canvas app: Creating a select all/clear all option for checkboxes in a gallery

Use a button to offer a select all or clear all option for all checkboxes in a gallery