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

Repeating fieldset - Hide rows depending on a fieldset value

1589059493
Abd al Rahman
KS Backer
Sheet Author
API Scripter
Dear all, I am not sure how to archive this. I have a repeating fieldset for skills and spells in my character sheet. Bots lists can get huge.  Those lists are on a separate tab. I also have a Combat tab, which should include a subset of skills and spells. My skills look like this: <fieldset class="repeating_fertigkeiten"> <button type='roll' name="roll_ew_fertigkeit" value='&{template:default} {{name=@{character_name} würfelt auf @{Fertigkeit}}} {{Der Wurf ist um [[1d20cs16cs17cs18cs19cs20cf1cf16cf17cf18cf19 + @{FW} + @{leitE} + @{Fertigkeitsbonus} + ?{Bonus|0} -20 ]] besser als 20!}}' ></button> <input type="text" name="attr_Fertigkeit" value ="Name"/> <input type="number" name="attr_FW" value ="1"/> <select name="attr_LeitE" class="dtype"> <option value="0" selected="selected">-</option> <option value="@{LeitSt}">St</option> <option value="@{LeitGs}">Gs</option> <option value="@{LeitGw}">Gw</option> <option value="@{LeitKo}">Ko</option> <option value="@{LeitIn}">In</option> <option value="@{LeitZt}">Zt</option> <option value="@{LeitAu}">Au</option> <option value="@{LeitpA}">pA</option> <option value="@{LeitWk}">Wk</option> </select> <input type="number" name="attr_Fertigkeitsbonus" value ="0" /> <input type="checkbox" class="checkbox" value="1" name="attr_FertKB" /> <input type="number" name="attr_FertPP" value ="0" /> </fieldset> </div> The checkbox marks the entries, which should appear on the condensed combat tab. Any idea how to archive this?
1589366147
GiGs
Pro
Sheet Author
API Scripter
Can you describe what you are trying to do in more detail? Do you want to show spells from a repeating_spells section, and skills from a diffeernt repeating_skills list, in a third repeating section?
1589392153
Abd al Rahman
KS Backer
Sheet Author
API Scripter
Yes, kind of. But I found a solution. I try to implement this solution:&nbsp; <a href="https://wiki.roll20.net/CSS_Wizardry#Filter_Repeating_section_displays_according_to_criteria_within_the_repeating_items_itself" rel="nofollow">https://wiki.roll20.net/CSS_Wizardry#Filter_Repeating_section_displays_according_to_criteria_within_the_repeating_items_itself</a> and use the same repeating sections on each sheet.&nbsp;
1589415164
GiGs
Pro
Sheet Author
API Scripter
Here's a post that might demonstrate that method a little better:&nbsp; <a href="https://app.roll20.net/forum/permalink/8647076/" rel="nofollow">https://app.roll20.net/forum/permalink/8647076/</a> Also in the same thread, i post an alternative that I think is easier if you have complex filters. It's covered in two posts:&nbsp; <a href="https://app.roll20.net/forum/permalink/8642853/" rel="nofollow">https://app.roll20.net/forum/permalink/8642853/</a> &nbsp;and for handling multiple filters:&nbsp; <a href="https://app.roll20.net/forum/permalink/8648110/" rel="nofollow">https://app.roll20.net/forum/permalink/8648110/</a>
1589427225
Abd al Rahman
KS Backer
Sheet Author
API Scripter
Nice. I'll try that. Thank you, GiGs.&nbsp;
1589459633

Edited 1589459844
Andreas J.
Forum Champion
Sheet Author
Translator
GiGs, I added links to your posts in the CSS Wizardry wiki section Abd linked. Did you add that note related to buttons, variable names or something to the relevant wiki section? I've already forgotten what it was about, other than it being an undocumented issue. Something about some things should have lowercase&nbsp; names no not break something?
1589461615
GiGs
Pro
Sheet Author
API Scripter
I havent added that and am about to go to bed, so if you want to add it, it's this: fieldset class names (the actual repeating section name) should be all lower case. If not, you'll have problems with launching buttons in a repeating section from macros and scripts.
1589463617
Andreas J.
Forum Champion
Sheet Author
Translator
Thanks, that's clear enough, I'll add it to a number of relevant sections.
1589496856
GiGs
Pro
Sheet Author
API Scripter
I really appreciate your dedication to keeping the wiki helpful and useful.