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

[HELP] Inputs in repeating sections disappearing?

1540940412

Edited 1540940925
Missingquery
Pro
Sheet Author
API Scripter
So I'm attempting to throw together a character sheet, but I'm having some trouble. For some reason, if I try to fill in anything in any of the inputs in my repeating section, they automatically get cleared as soon as I click away or try to make a new repeating section. <fieldset class = "repeating_abilities"> <table> <tr> <td class = "ab-name"><input name = "attr_abilityname"></td> <td class = "ab-roll"> <select name = "attr_abilityroll"> <option>1d6</option> <option>2d6k1</option> <option selected>2d6</option> <option>3d6k2</option> <option>3d6</option> </select> </td> <td class = "ab-range"><input name = "attr_abilityrange"></td> <td class = "ab-effect"><textarea name = "attr_abilityeffect"></textarea></td> <td class = "ab-condition"><textarea name = "attr_abilitycondition"></textarea></td> </tr> </table> </fieldset> This doesn't seem to affect any other elements in the repeating row, just inputs. Help? I've checked to make sure that they're not sharing names with any other element on the sheet, so I genuinely have no idea.
1540953966

Edited 1540954698
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
your inputs need a type (text, number, radio, checkbox, or hidden). in addition, I'm not sure if those spaces around the ='s will cause issues. EDIT: I would also recommend that you take a look at the new character sheet standards that Cassie has been working on. Tables are a less than desirable way to format your sheet.
1540986183
Missingquery
Pro
Sheet Author
API Scripter
Gotcha. How would you recommend arranging layouts of more than three columns, if not by using tables? The <3colrow> approach doesn't work with more than three, obviously- it just overflows instead of arranging them neatly as desired, which the table layout does do.
1540989372
Jakob
Sheet Author
API Scripter
Marth Lowell said: Gotcha. How would you recommend arranging layouts of more than three columns, if not by using tables? The <3colrow> approach doesn't work with more than three, obviously- it just overflows instead of arranging them neatly as desired, which the table layout does do. CSS grid is the answer.
1540991004

Edited 1540991057
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Yep, or flexbox if perfect columns aren't essential. Actually for your use here, flexbox is probably better.