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

Character Sheet - type="range" ?

1473673155
PadRpg
Sheet Author
API Scripter
Hi, I would like to know if we can use correctly an input of range type (input name="attr_hp" type="range" .....) ? I put one in my character sheet to manage the hit point but it doesn't work correctly. When I move the slide, the hp of the token isn't updated but if I edit the HP in the token, the slide moves to the correct place !
1473746749
Lithl
Pro
Sheet Author
API Scripter
I suspect changes to attributes from the character sheet are handled with an event like: $('input[type=number],input[type=text],input[type=radio],input[type=checkbox],select,textarea').change(...); When an attribute changes somewhere else and the change needs to be reflected on the character sheet, I suspect the action is something like: $('[name='+attributeName + ']').each(...); This would explain the behavior you are witnessing.