GiGs said: Buttons, and all attributes inside a repeating section, need to have
the a name that includes the repeating section name when using them in a sheet worker. Sometimes they need
a row id as well, but you dont need that here. Here's code that works for that specific button (whatever row its on). on(`clicked: repeating_skills :showslv`, function() { getAttrs(['repeating_skills_showslv-flag'], function(v) { const flag = +v['repeating_skills_showslv -flag '] || 0; const toggle = 1 - flag; setAttrs({ ['repeating_skills_showslv -flag ']: toggle }); }); }); Notice the event line (starting with on ) requires different syntax to the getAttrs and every other line, complicating your approach. Also when doing toggles between 1 and 0, its best to convert them into numbers so you can do a simple 1-value operation to do the toggle. Thanks for the quick response. Still not working for me. I cut and pasted the code you provided (made no other changes to HTML or CSS). The attribute is no longer updating in the attributes tab and the "X" still not showing up. I posted a snippet of the HTML before, but just in case I'm missing something, here is whole section with a screenshot for your reference. <!-- Attributes and Powers --> <div class="powers-and-attributes-area"> <div class="pos skills-area"> <div class="skills-background"> <img src="<a href="https://i.imgur.com/7WBpgm8.png" rel="nofollow">https://i.imgur.com/7WBpgm8.png</a>" alt="skills-label-img"> <span class="characteristics-label-format skills-area-label">SKILLS</span> <!-- Skills Column headers --> <div class="sheet-5colrow"> <div class="sheet-col"> <span class="roll">Roll</span> </div> <div class="sheet-col"> <span class="slv">SLV</span> </div> <div class="sheet-col"> <span class="skill-name">Skill Name</span> </div> <div class="sheet-col"> <span class="skill-value">Value</span> </div> <div class="sheet-col"> <span>Modifier</span> </div> </div> <!-- repeating skills section --> <fieldset class="repeating_skills"> <span> <button class="heroD6" type="roll" name="roll_skill" value="/em uses @{skillname}, and rolls [[3d6]]"></button> </span> <input type="hidden" class="toggle" name="attr_showslv-flag"/> <div class="slv-toggle-container"> <button type="action" name="act_showslv" class="toggle"> <span class="slv-checked">X</span> </button> </div> <input class="skill-name-format" type="text" name="attr_skillName" value=""/> <select class="skill-dropdown-format" name="attr_skillValue"> <option value="0" selected="selected"></option> <option value="1">DEX</option> <option value="2">INT</option> <option value="3">PRE</option> <option value="8">&nbsp;8-</option> <option value="10">10-</option> <option value="11">11-</option> <option value="12">12-</option> <option value="13">13-</option> <option value="14">14-</option> <option value="15">15-</option> <option value="16">16-</option> <option value="17">17-</option> <option value="18">18-</option> <option value="19">19-</option> <option value="20">20-</option> <option value="21">21-</option> <option value="22">22-</option> <option value="23">23-</option> <option value="24">24-</option> <option value="25">25-</option> </select> <select class="skill-dropdown-format" name="attr_skillMod"> <option value"-5">-5</option> <option value"-4">-4</option> <option value"-3">-3</option> <option value"-2">-2</option> <option value"-1">-1</option> <option value"0" selected="selected">0</option> <option value"1">+1</option> <option value"2">+2</option> <option value"3">+3</option> <option value"4">+4</option> <option value"5">+5</option> </select> </fieldset> </div> </div> <div> </div> </div>