Is it possible to add select all functionality on multiselect checkbox lookup table

My intention was to incorporate a selection all logic into a form that contains over 70 multiselect items. Specifically, I aimed to create an option where if the user chooses "yes," all items would be automatically selected.