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 .
×
🍵 What is a cleric’s favorite hot drink? Divini-tea. 🍵
Create a free account

My Repeating Section/Fieldset is broken

Hello all, Maybe you can help me figure out what is going on here. I've been wracking my brain for days and cannot figure it out. I have a few repeating sections in my custom character sheet that when you try to add a second item, that item disappears. I can replicate the issue consistently. Here is a animated gif: Here is the html snippet: <fieldset class="repeating_monster_melee"> <span>Name</span><input type="text" class="monster_melee_name" name="attr_monster_melee_name" /> <span>Damage</span> <select class="monster_damage_type" name="attr_monster_damage_type"> <option selected="selected" value=""></option> <option value="Bash">Bashing</option> <option value="Cleave">Cleaving</option> <option value="Crush">Crushing</option> <option value="Pierce">Piercing</option> <option value="Slash">Slashing</option> <option value="Special">Special</option> </select> <span>CC</span><input type="number" name="attr_monster_cc_melee" value="0" /> <button type="roll" value='&{template:fbGenRoll} {{roll=[[2d6+@{monster_cc_melee}+?{Modifiers|0}]]}} {{character=@{character_name}}} {{player=GM}} {{type=Melee Combat}} {{subtype=@{monster_melee_name}}} {{notes=@{monster_damage_type} Damage}}'></button> <span>CQ</span><input type="number" name="attr_monster_cq_melee" value="0" /> <button type="roll" value='&{template:fbGenRoll} {{roll=[[2d6+@{monster_cq_melee}+?{Modifiers|0}]]}} {{character=@{character_name}}} {{player=GM}} {{type=Melee Combat}} {{subtype=@{monster_melee_name}}} {{notes=@{monster_damage_type} Damage}}'></button> <span>OG</span><input type="number" name="attr_monster_og_melee" value="0" /> <button type="roll" value='&{template:fbGenRoll} {{roll=[[2d6+@{monster_og_melee}+?{Modifiers|0}]]}} {{character=@{character_name}}} {{player=GM}} {{type=Melee Combat}} {{subtype=@{monster_melee_name}}} {{notes=@{monster_damage_type} Damage}}'></button> </fieldset> Now there is one commonality between all the repeating sections that behave this way. I have the character sheet divided into two parts: one for characters; one for monsters. I use the css display: hidden---display: block technique to switch between the two sheets. All the fieldsets work on the character side, but none work on the monster side. Any ideas? Thanks, Charles
1559616836

Edited 1559616845
Not sure if this is the cause of your problems, but the names for repeating sections should not include underscores. Try renaming "repeating_monster_melee" to just "repeating_monstermelee" or "repeating_monster-melee".
@ Rabulias, That did the trick. Thanks!