All I’m trying to do is create a checkbox in a form. It’s not an HTML form, just images from Sketch to look like a form. I really need the ability to let the user check the box by clicking and uncheck the box by clicking again.
I’ve tried setting the default, hover, pressed states but I’m struggling to figure out how to toggle between states for the same button.
Please tell me this Is possible without JavaScript.
Sorry to revive an old topic but I had a question regarding the ‘Element Checkbox.hype.zip’ file posted above. What is the best way to duplicate the checkboxes? I wanted 20-30 checkboxes that I could check and uncheck, once all the checkboxes are checked an animation or sound would play. I attempted to copy the elements but they don’t seem to function beyond the original 2.
I posted a different one here that borrows from this but uses symbols.
See updated version here
To get your all checked animation. Just add some code to count the number of selected in the window.selectedCheckBoxes array, if the number is n# then do something.