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] using duplicate radio buttons

1444199636
vÍnce
Pro
Sheet Author
I have 2 radio input fields on the sheet.  They are identical and are located in different sections of the character sheet for convenience. I would like for the checkbox state to be displayed on both radio buttons simultaneously regardless of which location is used.  Is this possible?  Currently the state only shows on one box at a time vs both.  Thanks test code <span><input type="radio" name="attr_notes" value="0" title="@{notes}" checked="checked" /><b> None</b></span> <span><input type="radio" name="attr_notes" value="1" title="@{notes}" /><b> A. Notes</b></span> <span><input type="radio" name="attr_notes" value="2" title="@{notes}" /><b> B. Notes</b></span> <span><input type="radio" name="attr_notes" value="3" title="@{notes}" /><b> C. Notes</b></span> <br> <span><input type="radio" name="attr_notes" value="0" title="@{notes}" checked="checked" /><b> None</b></span> <span><input type="radio" name="attr_notes" value="1" title="@{notes}" /><b> A. Notes</b></span> <span><input type="radio" name="attr_notes" value="2" title="@{notes}" /><b> B. Notes</b></span> <span><input type="radio" name="attr_notes" value="3" title="@{notes}" /><b> C. Notes</b></span>
1444206902
Finderski
Plus
Sheet Author
Compendium Curator
yeah, I've found radio buttons quirky in that fashion.  In my experience, the easies solution for that would be using checkboxes like radio buttons.  Just give every checkbox the same name, but each checkbox a different value.  In other words, just change "radio" to "checkbox" and you should be good. If you want it to look like a radio button, you'd need to use CSS to change the shape of the box, though.
1444227864
vÍnce
Pro
Sheet Author
G V. said: yeah, I've found radio buttons quirky in that fashion.  In my experience, the easies solution for that would be using checkboxes like radio buttons.  Just give every checkbox the same name, but each checkbox a different value.  In other words, just change "radio" to "checkbox" and you should be good. If you want it to look like a radio button, you'd need to use CSS to change the shape of the box, though. Quirky.  Yep.  Thank you for the workaround GV.  Never thought of using checkboxes like that. Nice trick.