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

Problem with checkboxes (am I an idiot?)

I'm creating a custom sheet for a new game. And I'm not having any issues with attributes. The sheet accepts a new entry and it just adds it to the rest. EXCEPT with checkboxes. I don't know what I'm doing wrong but checkboxes are just useless. And I need them to store a value. Nothing fancy, just stay checked the next time the players open the sheet and be able to freely toggle them. Here's my code: <td><input type="Checkbox" value="1" name="attr_AAFire"><td> Maybe the fact that it's inside a table? Please help me <3
1602556230
GiGs
Pro
Sheet Author
API Scripter
For checkboxes, the value is only applied when you tick the checkbox. It is always 0, until you check it, and then it has the value listed.
The problem is: when the checkbox is ticked, nothing happens. The value does not change.
1602558158
GiGs
Pro
Sheet Author
API Scripter
The code you have should work, except you have a capital letter in checkbox. It should be <td><input type="checkbox" value="1" name="attr_AAFire"><td> Does fixing that get it to work?
TITLE CHECKS OUT! Thank you very much. You don't know how much you made my day <3.
1602562704
GiGs
Pro
Sheet Author
API Scripter
lol, you're welcome.
1602606052
Andreas J.
Forum Champion
Sheet Author
Translator
Always remember to check the community documentation and the examples if you run into problems. <a href="https://wiki.roll20.net/Building_Character_Sheets#Checkboxes_and_Radio_Buttons" rel="nofollow">https://wiki.roll20.net/Building_Character_Sheets#Checkboxes_and_Radio_Buttons</a>
I checked the documentation but could not figure out the problem. Thank you both though.