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 .
×
This post has been closed. You can still view previous posts, but you can't post any new replies.

Repeatable section buttons don't work from macro bar

I've dragged a button from a repeatable section onto the macro bar. It shows as "Lea: repeating_moves_-Laajk7euGm-T-sQWpYX_move_attack" as I would reasonably expect, since that's the ID of the repeatable row item. However, clicking it prints an error message to the chat: "No ability was found for %{Lea|repeating_moves_move_attack}" It would be nice to have the button actually work!
So it turns out on the custom sheet I had <fieldset class="repeating_moves sheet-weird-flex-but-ok"> to do some fancy styling (using CSS wizardry of my own). While this works fine for most things, it turns out that this was causing it not to be properly added to "d20.journal.customSheets.availableRolls" (it was added with the key "repeating_moves sheet-weird-flex-but-ok_move_attack"). So the fix should just be making sure availableRolls is populated using only the repeating_ class, not the entire element's class name. Should be an easy fix ;) Meanwhile, I've updated the sheet to use different CSS wizardry, and left only the "repeating_" class in there. It works now.
Hi Adam, I'm happy to see you were able to resolve the issue yourself and thank you for letting others know how you solved it in case they encounter it in the future.  I'll be closing this thread now.