
My custom character sheet automatically deducts ammo when a weapon is fired. I've added a small “↩️ Undo” button in the chat output (inside the roll template) next to the “Ammo used / Ammo remaining” line. Ideally, clicking that button would restore the last amount of ammo spent — a helpful quality-of-life tool during testing or if someone misclicks.
I tried placing a <button type="action">
inside the roll template, and while the button appears visually, it’s not clickable and doesn’t respond. My suspicion is that buttons and inputs inside the chat window are non-functional by design, which would explain the issue.
I think this kind of thing would be possible with the API (for Pro accounts), but I’m looking for any known workarounds that might work using only standard character sheet tools. I'd like this to work out of the box for anyone who might use this custom sheet in the future.
I have all the working code finished if this behaved like a normal button inside the chat. Is there a way to create a functional interactive button within the chat — or a clever hack using Chat Menus, roll queries, or macros that can safely modify an attribute (like ammo) from a chat message?
Thanks in advance for any insight!