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

Roll button appearing in Preview but hidden in-game

1478804162
Quinn
Pro
Sheet Author
Working on a character sheet, I want a button to make a check for a given attribute. In the code, I have this snippet: <td>Strength:</td> <td> <input type="number" class="short-number" name="attr_str" value="5"> </td> <td>Muscle:</td> <td class="derived-value"> <span name="attr_mus" /> <button type="roll" value="/roll 1d10+@{mus} Muscle"></button> </td> In the preview tab, it looks like this: So far, so good. But then, I go into the game itself, and it looks like this: And now the roll button has vanished! Inspect shows no button in that td. No errors in the JS console. I've saved the sheet and refreshed the tab multiple times - the button is simply gone. Any idea what could be going on?
1478807282

Edited 1478807387
Lithl
Pro
Sheet Author
API Scripter
At a guess, your span may be screwing things up. <span> is not a self-closing tag, so the behavior of <span/> is left entirely up to the browser to guess at. Try using <span></span> instead.
1478808016
Quinn
Pro
Sheet Author
YUP, that was it. Thanks!