Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

Show/Hide elements in a repeating section?

I was wondering how to use checkboxes to show or hide individual sections of a repeating section. Example: Let's say my repeating section contains Moe, Curly and Larry.  I want to to have checkboxes INSIDE that repeating section that remove Curly and Larry separately. Thanks in advance!
1494203297

Edited 1494203312
Lithl
Pro
Sheet Author
API Scripter
Having a checkbox in a repeating section item that toggles the visibility of element(s) in the same repeating section item is going to be identical to visibility toggling outside a repeating section. See the CSS Wizardry thread for an example. If you wanted a checkbox outside  the repeating section which toggled visibility of items inside  the repeating section, that's doable, but requires slightly different syntax in your CSS. If you want a checkbox in repeating section item 1 to toggle visibility in repeating section item 2, that's only possible with a sheet worker script.
I've used the examples in that thread to no avail.  Many of them do not even work on their own it seems (maybe something changed). It looks like sheet worker scripts are my only option.
DMan said: I've used the examples in that thread to no avail.  Many of them do not even work on their own it seems (maybe something changed). I do this all the time with my character sheets. I use the code (with some variation) found in the Css Wizardry thread.  It does work. Using your Moe, Joe, and Curly example: Are Moe, Joe, and Curly in every repeating field, or are they three separate repeating fields?  
The stooges are three elements within a repeating field, in my example.
May I get a look at your code?
So, while grabbing the code, I noticed the issue. The element's class didn't match my CSS. Marvel at my shame!
Ah.  That has happened to us all.  Glad you found the answer.