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

Question about repeating fields

1405628840
Tom
Pro
Sheet Author
If I set up a set of repeating fields, do I have to give each entry a different attribute name? Example: I'm using repeating fields for languages. One language is assigned for Native Language, but if I assign the rest the attribute name "attr_language", is this going to cause conflicts down the road with dice rolls and the like?
1405630568
Sam M.
Pro
Sheet Author
i don't understand the question. repeating fields look like this <fieldset class="repeating_fields"> <input type="text" name="attr_language"/> </fieldset> each time you add a new field in the sheet, it will create its own unique language attribute.
For dice rolls that use those fields, you can add a dice rolling button at the end of each field.
This is where I found exactly how they're named: <a href="https://wiki.roll20.net/Character_Sheets" rel="nofollow">https://wiki.roll20.net/Character_Sheets</a> Look for the section named: Repeating Sections So, in your case the variables might look something like this: repeating_languages_0_language repeating_languages_1_language repeating_languages_2_language and so on.
1405770243
Tom
Pro
Sheet Author
Thanks guys. Appreciate the help very much.