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

Custom Character Sheet Issues

Hey guys. I'm new to roll20 and html coding as well. I was going through the faqs and thought I had things pretty well, but for some reason my autocalculate fields just arent working. I even tried to do a very simple example in a seperate sheet just to see if it would work and I'm running into the same issues. Here is a very simple version of what I'm looking at. for the coding Level <input type="number" name="LVL" value="1" />  <br> Total EXP <input type="number" name="total_EXP" value="(@{LVL}*100)" disabled="true"/> The issue I'm having is that the Total EXP field is just a gray box and no matter how much I change the level, the total EXP box remains that way. The other issue is that it never saves the information on the character sheet. I can change the level setting, but then as soon as I come back, it's back to 1. Should I not have the value field entered? I thought it was just a default, but is that default overwriting the player entry every time I open the document? Whatever help can be given is super appreciated.
1571659009

Edited 1571659100
Spren
Sheet Author
The input&nbsp; name="LVL" needs to have a prefix of "attr_" , so name="attr_LVL" . Then it should work. You can see them mention it here: <a href="https://wiki.roll20.net/Building_Character_Sheets#Creating_Fields" rel="nofollow">https://wiki.roll20.net/Building_Character_Sheets#Creating_Fields</a>
Boom! That was it. Thanks so much! Question to add on though. Is it possible for an auto-calculated field to not be an attribute. Like, if I didn't want the Total EXP field to be an attribute, is there a way for it to still calculate?&nbsp;
1571662767
Andreas J.
Forum Champion
Sheet Author
Translator
It has to be an attribute so that Roll20 can save &amp; store the info on a character sheet.
1571681445
GiGs
Pro
Sheet Author
API Scripter
As Andreas says it has to be an attribute. But you dont have to display it on the character sheet. If you give the input type="hidden" instead of "number" it will be a hidden attribute, that you can refer to in calculations, and macros, it just wont be visible on the character sheet.
Thanks for the info guys. Definitely want the items to still be displayed on the sheet. I was just trying to cut down on the number of Attributes shown in the Attributes and abilities tab, but I guess that's just how things work. You guys were all very helpful. Everything is running smoothly now.
1571685666
GiGs
Pro
Sheet Author
API Scripter
When you're using a character sheet, it's best to ignore the Attributes pane of the Attributes and Abilities tab. It will get inflated with lots of stuff, and is impossible to organise (since if you reorder attributes, it will reset itself). Also many attributes (like repeating sections and autocalcs) won't show up there, which often confuses new designers. Basically: the Attributes tab is a legacy feature. It existed before we had character sheets, and is only useful for people who aren't using a character sheet. Once you have a character sheet, it is pretty redundant.
1571699749
Kraynic
Pro
Sheet Author
Marc L. said: Thanks for the info guys. Definitely want the items to still be displayed on the sheet. I was just trying to cut down on the number of Attributes shown in the Attributes and abilities tab, but I guess that's just how things work. You guys were all very helpful. Everything is running smoothly now. Keep in mind that (in essence) the html/css character sheet is really just a gui for the attributes and abilities tab.&nbsp;