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 .
×

Character sheet : reset / compute button

Hi, Is it ok to add a <button> into a character sheet that will use javascript to reset or compute another input?
1588195349
GiGs
Pro
Sheet Author
API Scripter
What precisely do you mean by resetting or computing another input? The only javascript you can use in character sheets are sheet workers. They cannot change sheet structure in any way, they can only change the value of attributes.
My intention is to change values not structure. Reseting an input = setting it to its default value. Computing an input = setting it's value to a computed one with other input values.
1588527723
Andreas J.
Forum Champion
Sheet Author
Translator
To edit character sheets you need to be a Pro user. It's possible to create an Action button that triggers a sheetworker , which then sets a number of sheet attributes to predefined values, such as the default starting values they had. (I assume this is what you where asking for)