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

Nested fieldsets?

1477682356
Quinn
Pro
Sheet Author
Suppose you're running a system where a character can have multiple Techniques, and each Technique can have multiple Modifiers affecting what it does. Is there any way to use fieldsets for that in a character sheet? An outer "repeating_techs" fieldset, with each record inside having a "repeating_mods" fieldset. I tried nesting two fieldsets, but the inner one didn't seem to work.
1477683279
Kryx
Pro
Sheet Author
API Scripter
Correct, you cannot nest a repeating section within a repeating section. :(
Umm, yes you can. I do that frequently on my sheet. Unless I'm horribly misunderstanding, you want to create a repeating fieldset, that contains, inside it, a repeating fieldset for a different item? <fieldset name="repeating_hench66" class="repeating_hench66"><table style='border-collapse: collapse; border-spacing: 0;'>     <tr>             <td style="background-color: #00004B; color: #FFF; font-family: Arial; font-weight: bold;">Name</td>             <td style="background-color: #00004B; color: #FFF; font-family: Arial; font-weight: bold;">AC</td>             <td style="background-color: #00004B; color: #FFF; font-family: Arial; font-weight: bold;">Race</td>             <td style="background-color: #00004B; color: #FFF; font-family: Arial; font-weight: bold;">Level</td>             <td style="background-color: #00004B; color: #FFF; font-family: Arial; font-weight: bold;">HP/Max</td>     </tr>     <tr>             <td><input type="text" name="attr_henchname66" title="@{henchname66}" ></td>             <td><input type="text" name="attr_henchac66" title="@{henchac66}" class="sheet-short"></td>             <td> <input type="text" name="attr_henchrace66" title="@{henchrace66}"></td>             <td><input type="text" name="attr_henchlvl66" title="@{henchlvl66}" class="sheet-short"></td>             <td><input type="text" name="attr_henchhp66" title="@{henchhp66}" class="sheet-small"/><h4><b>/</b></h4><input type="text" name="attr_henchhp66_max" title="@{henchhp66_max}" class="sheet-small" /></td>     </tr></table><br><hr>     <br><h4><b>Weapons</b></h4><br><table style='border-collapse: collapse; border-spacing: 0;'>     <tr>             <td style="background-color: #00004B; color: #FFF; font-family: Arial; font-weight: bold;">Weapon Name</td>             <td style="background-color: #00004B; color: #FFF; font-family: Arial; font-weight: bold;"># of<br>Strikes</td>             <td style="background-color: #00004B; color: #FFF; font-family: Arial; font-weight: bold;">Attack<br>Adj.</td>             <td style="background-color: #00004B; color: #FFF; font-family: Arial; font-weight: bold;">Dam<br>Adj.</td>             <td style="background-color: #00004B; color: #FFF; font-family: Arial; font-weight: bold;">THAC0</td>             <td style="background-color: #00004B; color: #FFF; font-family: Arial; font-weight: bold;">Crit</td>             <td style="background-color: #00004B; color: #FFF; font-family: Arial; font-weight: bold;">Dam SM</td>             <td style="background-color: #00004B; color: #FFF; font-family: Arial; font-weight: bold;">Dam L</td>             <td style="background-color: #00004B; color: #FFF; font-family: Arial; font-weight: bold;">Range</td>             <td style="background-color: #00004B; color: #FFF; font-family: Arial; font-weight: bold;">Type</td>             <td style="background-color: #00004B; color: #FFF; font-family: Arial; font-weight: bold;">Speed</td>     </tr>         <tr>             <td><input type="text" name="attr_weaponnamehench66" title="@{weaponnamehench66}" class="sheet-length"></td>             <td><input type="text" name="attr_attacknumhench66" title="@{attacknumhench66}" class="sheet-small"></td>             <td><input type="text" name="attr_attackadjhench66" title="@{attackadjhench66}" class="sheet-short" value="0"></td>             <td><input type="text" name="attr_damadjhench66" title="@{damadjhench66}" class="sheet-short" value="0"></td>             <td><input type="text" name="attr_ThAC0hench66" title="@{ThAC0hench66}" class="sheet-short" value="20"><button type="roll" name="roll_hit1hench66" title="@{hit1hench66}" value="@{henchname66} hits an AC of [[@{ThAC0hench66}-(1d20cs>@{crit-thresh-hench66}+(@{attackadjhench66})+(?{Misc. bonus|0}))]] using their @{weaponnamehench66}">Hit</button></td>             <td><input type="text" name="attr_crit-thresh-hench66" title="@{crit-thresh-hench66}" class="sheet-short" value="20"></td>             <td><input type="text" name="attr_damsmhench66" title="@{damsmhench66}" class="sheet-short"><button type="roll" name="roll_attacksmhench66" title="@{attacksmhench66}" value="@{henchname66} rolls [[@{damsmhench66}+(@{damadjhench66})+(?{Misc. bonus|0})]] damage using their @{weaponnamehench66}!"></button></td>             <td><input type="text" name="attr_damlhench66" title="@{damlhench66}" class="sheet-short"><button type="roll" name="roll_attacklhench66" title="@{attacklhench66}" value="/em rolls [[@{damlhench66}+(@{damadjhench66})+(?{Misc. bonus|0})]] damage using their @{weaponnamehench66}!"></button></td>             <td><input type="text" name="attr_rangehench66" title="@{rangehench66}" class="sheet-mintext"></td>             <td><input type="text" name="attr_weaptypehench66" title="@{weaptypehench66}" class="sheet-short"></td>             <td><input type="text" name="attr_weapspeedhench66" title="@{weapspeedhench66}" class="sheet-small"><button type="roll" name="roll_inithench66" title="@{inithench66}" value="/gmroll 1d10+[[@{weapspeedhench66}-?{Misc. bonus (express bonuses as a negative)|+0}]] [Initiative (@{weaponnamehench66})]&{tracker}"></button></td>     </tr>     </table> <fieldset name="repeating_henchweaps66" class="repeating_henchweaps66"><table style='border-collapse: collapse; border-spacing: 0;'>         <tr>             <td><input type="text" name="attr_weaponnamehench66" title="@{weaponnamehench66}" class="sheet-length"></td>             <td><input type="text" name="attr_attacknumhench66" title="@{attacknumhench66}" class="sheet-small">   </td>             <td><input type="text" name="attr_attackadjhench66" title="@{attackadjhench66}" class="sheet-short" value="0"></td>             <td><input type="text" name="attr_damadjhench66" title="@{damadjhench66}" class="sheet-short" value="0"></td>             <td><input type="text" name="attr_ThAC0hench66" title="@{ThAC0hench66}" class="sheet-short" value="20"><button type="roll" name="roll_hit1hench66" title="@{hit1hench66}" value="@{henchname66} hits an AC of [[@{ThAC0hench66}-(1d20cs>@{crit-thresh-hench66}+(@{attackadjhench66})+(?{Misc. bonus|0}))]] using their @{weaponnamehench66}">Hit</button></td>             <td><input type="text" name="attr_crit-thresh-hench66" title="@{crit-thresh-hench66}" class="sheet-short" value="20"></td>             <td><input type="text" name="attr_damsmhench66" title="@{damsmhench66}" class="sheet-short"><button type="roll" name="roll_attacksmhench66" title="@{attacksmhench66}" value="@{henchname66} rolls [[@{damsmhench66}+(@{damadjhench66})+(?{Misc. bonus|0})]] damage using their @{weaponnamehench66}!"></button></td>             <td><input type="text" name="attr_damlhench66" title="@{damlhench66}" class="sheet-short"><button type="roll" name="roll_attacklhench66" title="@{attacklhench66}" value="/em rolls [[@{damlhench66}+(@{damadjhench66})+(?{Misc. bonus|0})]] damage using their @{weaponnamehench66}!"></button></td>             <td><input type="text" name="attr_rangehench66" title="@{rangehench66}" class="sheet-mintext"></td>             <td><input type="text" name="attr_weaptypehench66" title="@{weaptypehench66}" class="sheet-short"></td>             <td><input type="text" name="attr_weapspeedhench66" title="@{weapspeedhench66}" class="sheet-small"><button type="roll" name="roll_inithench66" title="@{inithench66}" value="/gmroll 1d10+[[@{weapspeedhench66}-?{Misc. bonus (express bonuses as a negative)|+0}]] [Initiative (@{weaponnamehench66})]&{tracker}"></button></td>     </tr>     </table></fieldset><br><hr> <br><h4><b>Gear</b></h4><br><table style='border-collapse: collapse; border-spacing: 0;'>     <tr>             <td style="background-color: #00004B; color: #FFF; font-family: Arial; font-weight: bold; width:120px; text-align:left;">Description</td>             <td style="background-color: #00004B; color: #FFF; font-family: Arial; font-weight: bold; width:40px;">Weight</td>             <td style="background-color: #00004B; color: #FFF; font-family: Arial; font-weight: bold; width:40px;"># Held</td>             <td style="background-color: #00004B; color: #FFF; font-family: Arial; font-weight: bold; width:40px;">Value</td>             <td style="background-color: #00004B; color: #FFF; font-family: Arial; font-weight: bold; width:120px;">Location</td>     </tr>     <tr>             <td><input type="text" name="attr_geardeschench66" title="@{geardeschench66}" placeholder="Item Name"></td>             <td><input type="text" name="attr_gearweighthench66" title="@{gearweighthench66}" class="sheet-short" placeholder="lbs."></td>             <td><input type="number" name="attr_gearqtyhench66" title="@{gearqtyhench66}" class="sheet-short" value="0"></td>             <td><input type="text" name="attr_gearvalhench66" title="@{gearvalhench66}" class="sheet-short"></td>             <td><input type="text" name="attr_gearlochench66" title="@{gearlochench66}" placeholder="Location"></td>     </tr> </table> <fieldset name="repeating_heanchgear66" class="repeating_henchgear66"><table style='border-collapse: collapse; border-spacing: 0;'>     <tr>             <td><input type="text" name="attr_geardeschench66" title="@{geardeschench66}" placeholder="Item Name"></td>             <td><input type="text" name="attr_gearweighthench66" title="@{gearweighthench66}" class="sheet-short" placeholder="lbs."></td>             <td><input type="number" name="attr_gearqtyhench66" title="@{gearqtyhench66}" class="sheet-short" value="0"></td>             <td><input type="text" name="attr_gearvalhench66" title="@{gearvalhench66}" class="sheet-short"></td>             <td><input type="text" name="attr_gearlochench66" title="@{gearlochench66}" placeholder="Location"></td>     </tr> </table></fieldset> <h4><b>Notes</b></h4><textarea name="attr_henchnotesarea66" title="@{henchnotesarea66}"></textarea><hr> </fieldset>     </div></div> </div> Here's a snippet of my sheet. It's a repeating section, with other repeating sections inside it.
1477691348

Edited 1477691661
Kryx
Pro
Sheet Author
API Scripter
What sheet is that for? What is the result? I suspect it may not be working as expected. Or perhaps this is a feature that has previously changed or maybe it worked all along. Here is a post from a year ago that also talks about it not being possible. <a href="https://app.roll20.net/forum/post/1873412/slug%7" rel="nofollow">https://app.roll20.net/forum/post/1873412/slug%7</a> EDIT: I uploaded that HTML to a new sheet and it has some problems. If I enter some data under gear or weapons for one of the top level repeating sections it replaces the data for the other levels. Definitely weird behavior going on.
It's for a beta of my sheet. Yeah, I haven't had time to fully test this, and, yeah... I'll need to find an alternate solution :/ Sorry about that, I thought I had something there.