I am trying to limit the number of times the add button can be used within a given field set. My current html looks something like this; <div class="row"> <h2>CustomTemplate</h2> <input type="text" name="attr_templatename" /> <fieldset class="repeating_templaterow"> <span>Left:</span><input type="text" name="attr_rowlefttext" /> <span>Right:</span><input type="text" name="attr_rowrighttext" /> <span> Dice:</span><input type="number" name="attr_rowdice" value="0" /> <span> TN</span><input type="number" name="attr_rowbasetn" value="0" /> <span> with </span><input type="number" name="attr_rowas" value="0" /><span>AS.</span> </fieldset> <button type='roll' name='roll_mytemplate' title='%{selected|mytemplate}' value='&{template:default} {{name=@{character_name} : &#x00A;@{templatename}}} {{@{repeating_templaterow_$0_rowlefttext}=[[2D10]]}} {{@{repeating_templaterow_$1_rowlefttext}=[[2D10]]}} {{@{repeating_templaterow_$2_rowlefttext}=[[2D10]]}} {{@{repeating_templaterow_$3_rowlefttext}=[[2D10]]}}'><span>Roll </span><span name="attr_templatename"></span> </div> It works, but As there are only 0-3 in the template, I was looking for a (preferably easy) way to limit the number of rows that could be added... (I was originaly trying to do them as nested fieldsets so that the character could have N of these custom templates but given this post <a href="https://app.roll20.net/forum/post/2942465/nested-repeating-sections" rel="nofollow">https://app.roll20.net/forum/post/2942465/nested-repeating-sections</a> I gave up on that idea and am just going to add a few to the bottom of the sheet.