Checkbox advanced prototyping

I’ve prototype with 15 checkboxes, and counter which dynamically shows how much I’ve selected so far.

I want to make all my unselected boxes to be disabled when I select max 5, and then when I click on some selected - this one and all disabled comes back to unselected.

Can somebody help me?

Thank you

Hi there,

Thanks for the post! It would be good that you can share the prototype setting so you’ll be able to get more comments from community! Some screenshots would be also helpful. Could you share more details where you have issues?

Thanks!
Toku