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

Custom Sheet - attributes inside fieldset not being saved

I'm building a custom sheet and added a few repeating sections. However, I'm not being able to use these sections. First, the section is not being saved. Second, some sections simply vanish when I click outside the box. Here is the code: <fieldset class="repeating_magiclist">      <label class="sheet-magiclisthint sheet-magiccolumntext">Nome</label>      <label class="sheet-magiclisthint sheet-magiccolumntext">Especialização</label>      <label class="sheet-magiclisthint">Custo</label>      <label class="sheet-magiclisthint">Nível</label>      <label class="sheet-magiclisthint sheet-magiccolumnshortdescription">Descrição curta</label>      <input class="sheet-magiclistinput sheet-magiccolumntext" name="attr_nomedamagia" />      <input class="sheet-magiclistinput sheet-magiccolumntext" name="attr_colegiodamagia" />      <input class="sheet-magiclistinput" name="attr_custodamagia" />      <input class="sheet-magiclistinput" name="attr_niveldamagia" />      <input class="sheet-magiclistinput sheet-magiccolumnshortdescription" name="attr_descricaocurtadamagia" />      <fieldset class="repeating_magiceffectdescription">           <label class="sheet-magiclisteffects">Efeito:</label>                <textarea class="sheet-magiclistlongeffect" name="attr_magiceffect"></textarea>                <input type="number" class="sheet-magiclisteffects" name="attr_niveldoefeito" />           </fieldset> </fieldset> What is wrong? The error is the same among all my repeating sections.
1510252415
The Aaron
Pro
API Scripter
I believe the issue is that you can't have nested field sets.
1510253037

Edited 1510253054
Fábio_CM
Sheet Author
But even those fields that are not nested are'nt being saved. This below, for example, is also failing: <!--Weapon table start-->             <label class="sheet-weapongrouptable">Tabela de armas</label>             <div class="sheet-tablebody">             <div>                 <div class="sheet-weapontablerow1 weapontablefirstline"><label class="sheet-selectedweapons sheet-weaponname">Nome</label></div>                 <div class="sheet-weapontablerow2 weapontablefirstline"><label class="sheet-selectedweapons sheet-weapontype">Tipo</label></div>                 <div class="sheet-weapontablerow3 weapontablefirstline"><label class="sheet-selectedweapons sheet-weaponbonus">Bônus</label></div>                 <div class="sheet-weapontablerow4 weapontablefirstline"><label class="sheet-selectedweapons sheet-weapontotal">Total</label></div>                 <div class="sheet-weapontablerow5 weapontablefirstline"><label class="sheet-selectedweapons sheet-weaponreach">Alcance</label></div>                 <div class="sheet-weapontablerow6 weapontablefirstline"><label class="sheet-selectedweapons sheet-weaponL">L0</label></div>                 <div class="sheet-weapontablerow7 weapontablefirstline"><label class="sheet-selectedweapons sheet-weaponM">M0</label></div>                 <div class="sheet-weapontablerow8 weapontablefirstline"><label class="sheet-selectedweapons sheet-weaponP">P0</label></div>                 <div class="sheet-weapontablerow9 weapontablefirstline"><label class="sheet-selectedweapons sheet-weapon25">25%</label></div>                 <div class="sheet-weapontablerow10 weapontablefirstline"><label class="sheet-selectedweapons sheet-weapon50">50%</label></div>                 <div class="sheet-weapontablerow11 weapontablefirstline"><label class="sheet-selectedweapons sheet-weapon75">75%</label></div>                 <div class="sheet-weapontablerow12 weapontablefirstline"><label class="sheet-selectedweapons sheet-weapon00">100%</label></div>                 <div class="sheet-weapontablerow13 weapontablefirstline"><label class="sheet-selectedweapons sheet-weaponminstrenght">TR</label></div>             </div>             <fieldset class="repeating_weaponselection">                 <input class="sheet-weapontablerow1 sheet-inputweaponproperty" name="attr_weaponname"></input>                 <input class="sheet-weapontablerow2 sheet-inputweaponproperty dropdown" name="attr_weapontype" value="CD"></input>                 <input class="sheet-weapontablerow3 sheet-inputweaponproperty" name="attr_weaponbonus" value="0"></input>                 <input class="sheet-weapontablerow4 sheet-inputweaponproperty" name="attr_weapontotal" value="0"></input>                 <input class="sheet-weapontablerow5 sheet-inputweaponproperty" name="attr_weaponreach" value="0 m"></input>                 <input class="sheet-weapontablerow6 sheet-inputweaponproperty" name="attr_weaponL" value="0"></input>                 <input class="sheet-weapontablerow7 sheet-inputweaponproperty" name="attr_weaponM" value="0"></input>                 <input class="sheet-weapontablerow8 sheet-inputweaponproperty" name="attr_weaponP" value="0"></input>                 <input class="sheet-weapontablerow9 sheet-inputweaponproperty" name="attr_weapon25d" value="0"></input>                 <input class="sheet-weapontablerow10 sheet-inputweaponproperty" name="attr_weapon50d" value="0"></input>                 <input class="sheet-weapontablerow11 sheet-inputweaponproperty" name="attr_weapon75d" value="0"></input>                 <input class="sheet-weapontablerow12 sheet-inputweaponproperty" name="attr_weapon100d" value="0"></input>                 <button type="roll" class="sheet-weapontablerow13" value="0"></input>             </fieldset>             </div> When I close and reopen the sheet, the field is empty again.
1510255247
Lithl
Pro
Sheet Author
API Scripter
Text/number inputs only save their value when they lose focus, and I believe closing the sheet causes the processing on that sheet to halt before the save occurs. Make sure to click somewhere other than the input (or simply hit [tab]) before closing the sheet, and see if that's the source of your issue.
1510255301
Jakob
Sheet Author
API Scripter
Add type="text"or type="number" to the inputs. Even though text is the default, Roll20 does not save inputs that do not have the type explicitly set. (general HTML advice, does not affect this issue) Inputs have no content and hence do not need to be closed (in fact, should not). Delete all the instances of  "</input>".
Thanks. The problem was the absent of the "type" in the input form.