Hello, I copied some sheetworker scripts from somewhere I cannot recall in the forum and I struggle with it. Here is the sheetworker part : on("change:repeating_talents", function() { getSectionIDs("repeating_talents", function(idArray) { var rollvalues = {}; for(var i=0; i < idArray.length; i++) { rollvalues["repeating_talents_$" + idArray[i] + "_talent_row"] = "repeating_talents_$" + idArray[i] + "_talent_throw"; } setAttrs(rollvalues); }); }); Here is the related html : <fieldset class="repeating_talents"> <label> <input type="text" name="attr_talent_name" placeholder="nom du talent" class="talent"> </label> <div class="grid grid-pc-attributes2" style="margin-bottom: 5px;"> <button name="roll_talent_throw" type="roll" value="&{template:face} {{name=@{character_name}}} {{rollname=@{talent_name}}} {{roll=[[@{talent_dice}]]}} {{reroll=@{talent_row}}}"> <h2><span type="text" name="attr_talent_name"></span></h2> <input type="hidden" name="attr_talent_row" value="0"> <span type="number" name="attr_talent_dice" class="attrmod"></span> </button> <label> <span>Dé</span> <select name="attr_talent_dice" type="text" placeholder="1d4" style="width: 6em"> <option value="0d0"></option> <option value="1d4">1d4</option> <option value="1d6">1d6</option> <option value="1d8">1d8</option> <option value="1d10">1d10</option> <option value="1d12">1d12</option> <option value="1d14">1d14</option> <option value="1d16">1d16</option> <option value="1d18">1d18</option> <option value="1d20">1d20</option> </select> </label> </div> </fieldset> what I want to achieve with the script : Set the value of the hidden input talent_row to repeating_talents_$i_talent_throw (i, ranging from 0 to... whatever) THX for reading :) have a nice day ! Pantoufle