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

HTML, fieldset problem, selection not saving.

1436628945

Edited 1436628958
Hi all, I'm making my custom sheet, and I have a little problem, and I didn't found how to repair it. so here is my fieldset : <fieldset> <select name="attr_Talent" style="width: 820px" > <option value="2">Acrobatique -(Athlétique):... +2 en Acrobaties & Dance.</option> <option value="1">Agressif:... +1 en Initiative. </option> <option value="2">Amis des Animaux -(Empathique):... +2 en Équitation, +2 aux tests de Moral contre les Animaux.</option> </select> </fieldset> I've cutted it, to not mak a big thing, there's just more options (yes it's in french) So my problem is that when "in-game" if a player add one of these in his sheet it's not saving. Every time he will reload the sheet the selection will be the first one (Acrobatique -(Athlétique):... +2 en Acrobaties & Dance.). So that's my problem, any idea ?
1436630865
Lithl
Pro
Sheet Author
API Scripter
Two problems: In order to make a fieldset into a repeating section, you need to give it a class named "repeating_MyRepeatingSectionName" You have two options in your select with the same value. The system saves the value and picks which dropdown option to display based on that, it doesn't save the dropdown option selected and return that value. So, if you have two options with the same value, one will essentially "override" the other always.
1436637526
Alicia
Sheet Author
For the two options with +2 you could put a note after it like <option value="2 [Empathique]">Amis des Animaux -(Empathique):... +2 en Équitation, +2 aux tests de Moral contre les Animaux.</option> Which would then make it two different values and won't mess with any calculations.
Yeps thank you for all !