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 .
×
May your rolls be merry + bright! 🎄
Create a free account

span display issue

So, not sure why this happening, but here goes. I have a build section with the following code (in a table): <tr> <!-- Strength --> <td><span style="display: inline-block; width: 80px; font-weight: bold; font-size: 12px; text-align: right;">[S]trength: </span></td> <td><input type="number" name="attr_character_strength" value="8+@{s_points}+@{s_points_bg}+@{s_points_raise}" disabled="true"></input></td> <td><input type="number" name="attr_s_points" value="0"></input></td> <td><input type="number" name="attr_s_points_bg" value="0"></input></td> <td><input type="number" name="attr_s_points_raise" value="0"></input></td> </tr> And it works, I get my attr_character_strength to calculate correctly.  It does not, however, show up in Attributes on the character tab, and the following code: <!-- Strnegth --> <span style="font-weight: bold; font-family: Papyrus; font-variant: small-caps; font-size: 12px;">Strength <span name="attr_character_strength"></span></span><br> Does not display properly; where it should display as: 'Strength 10' I instead get 'Strength 8+@{s_points}+@{s_points_bg}+@{s_points_raise}' TL/DR: How do i set a calculation as a proper attribute?
1512936872

Edited 1512937586
vÍnce
Pro
Sheet Author
I think you need to use "readonly" on your input instead of "disabled" if you want it to show on the attributes tab.&nbsp; span issue: try bookending your equation's value within parenthesis " ( a+b+c ) "&nbsp; <a href="https://wiki.roll20.net/Building_Character_Sheets#" rel="nofollow">https://wiki.roll20.net/Building_Character_Sheets#</a>...
1512940568
Jakob
Sheet Author
API Scripter
spans do not autocalculate. You need to use sheet workers to calculate Strength instead if you want to display it as a span.
1512953252

Edited 1512953351
Jakob said: spans do not autocalculate. You need to use sheet workers to calculate Strength instead if you want to display it as a span. I had a feeling after I posted this, thanks.&nbsp; I mean, I knew spans didn't, but I had a feeling that using a span to link to an autocalculated input wasn't going work since those values do not show up in attributes on the icon/sheet/character thing.