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

How to maximize number of possible repetitions when using repeating_

When using repeating_ , is there a way to limit the number of repetitions and use an attribute as the maximum number of repetitions?
1586891408

Edited 1586891422
Loki
Sheet Author
Hi! Well, you could: Listen for the change event of the given repeating section Iterate through the rows with getSectionIDs If the iterator is above a given attribute (that is received via getAttrs() beforehand) then delete every row after that with removeRepeatingRow At least that's what I'd do. :) Cheers!