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

Something's wrong with my fieldsets

Some of my fieldsets aren't working and I don't know why. The first item sticks, but everything else doesn't save. Here's an example of what I have: <fieldset class="repeating_wb_traits"> <table border="1px"> <tr> <td>Name</td> <td>Effects</td> </tr> <tr> <td><input type="text" name="attr_wb_trait_name" style="width: 185px"/></td> <td><input type="text" name="attr_wb_trait_effect" style="width: 185px"/></td> </tr> </table> </fieldset>    I've double checked and I can't find any spelling errors. What's wrong?
1535157773
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Repeating section names can't have an underscore in them.try repeating_wb-traits
1535187191
GiGs
Pro
Sheet Author
API Scripter
To add to Scott's suggestion, if you're planning on using sheet workers with this, it's a good idea to avoid hyphens, so repeating_wbtraits might be better.
Thanks, looking at it, the ones that weren't working had the underscore.
1535208548
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
glad to help Grim. I would also recommend either expanding that wb abbreviation or removing it if you don't have multiple trait repeating sections. It is good practice to have attribute names be full words as this helps with accessibility for screen readers.