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] Multiple characters open at the same time leads to wrong radio button selected

1453679769

Edited 1453679886
If I open two characters with my custom character sheet where I use the radiobuttons as in the code below for tabs, then selecting one of them changes the selected button in the wrong character. Example: Characters A,B,C opened in this order. Sometimes it leads to a state where I am not able to use the radio buttons at all. It happens always and it looks like it changes the values of the first opened character. If I close A it changes B if I close B it changes C. <input id="tab-attributes" type="radio" name="tabs" checked /> <label for="tab-attributes">Attribute</label> <input id="tab-skills" type="radio" name="tabs"/> <label for="tab-skills">Fertigkeiten</label> <input id="tab-combat"type="radio" name="tabs" /> <label for="tab-combat">Kampf</label> <input id="tab-magic" type="radio" name="tabs"/> <label for="tab-magic">Magie</label> <input id="tab-matrix" type="radio" name="tabs"/> <label for="tab-matrix">Matrix</label> <input id="tab-technomancer" type="radio" name="tabs"/> <label for="tab-technomancer">Technomancer</label> <input id="tab-social" type="radio" name="tabs"/> <label for="tab-social">Sozial</label> <input id="tab-equipment" type="radio" name="tabs"/> <label for="tab-equipment">Ausrüstung</label> Operating System Windows Windows NT 10.0 Screen Resolution 1920 x 1080 Web Browser Chrome 48.0.2564.82 Browser Size 1267 x 966 IP Address 80.110.91.9 Color Depth 24 Javascript Yes Flash Version 20.0.-1 Cookies Yes User Agent Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.82 Safari/537.36
1453681131
Pat S.
Forum Champion
Sheet Author
Moving this over to the sheet forum for them to have a go at it first. If it is an actual bug in the roll20 code, the thread can be moved back to the Bug & technical issue forum then.
1453691655

Edited 1453691860
Lithl
Pro
Sheet Author
API Scripter
Do not  use the id attribute on any element in your character sheets. IDs are supposed to be unique across the entire webpage, and all character sheets exist on the same webpage with the same source code. If you want to use label elements you can click on to select inputs (since the for  attribute requires the id  attribute, which you can't use), you can wrap the input in the label, like this: <label><input type="radio" name="tabs" checked /> Attribute</label> Note, however, that this kind of construction prevents things like using those inputs for tabs, which appears to be what you're trying to do. Also: If you want your radio button selection to be saved between sessions, it needs to be an attribute, so the name has to start with "attr_", such as name="attr_tabs"  instead of name="tabs" .
If you "pop out" the character sheets, you can open all of them to different tabs.
Hmmm. I will check it out and I am pretty sure Brian is right. How could I not think of that -.-